Enable Media Replace <= 4.2.2 - Missing Authorization to Authenticated (Author+) Post Content Modification via Media Replacement Workflow
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Enable Media Replace plugin for WordPress, up to and including version 4.2.2, is affected. A logged-in user with Author-level access or higher can exploit a missing permission check to alter the content of published posts, including posts owned by administrators, and those changes are visible to anyone visiting the site.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
The Enable Media Replace plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 4.2.2. This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for authenticated attackers, with author-level access and above, to modify the post_content of any published post referencing the replaced media — including Administrator-owned posts — making changes immediately visible to unauthenticated visitors. The doReplaceQuery() method performs a database-wide search-and-replace across all posts containing the old media URL without any per-post capability check, meaning a single Author-triggered request can silently overwrite a large number of posts that WordPress's standard admin UI and REST API would otherwise forbid that user from editing.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- shortpixel Enable Media Replace
through 4.2.2
References 10
plugins.trac.wordpress.org
- browser/enable-media-replace/tags/4.2.2/build/shortpixel/replacer/src/Replacer.php#L250
- browser/enable-media-replace/tags/4.2.2/classes/ViewController/UploadViewController.php#L59
- browser/enable-media-replace/tags/4.2.2/classes/ViewController/UploadViewController.php#L66
- browser/enable-media-replace/tags/4.2.2/classes/Controller/ReplaceController.php#L253
- browser/enable-media-replace/tags/4.1.9/build/shortpixel/replacer/src/Replacer.php#L250
- browser/enable-media-replace/tags/4.1.9/classes/ViewController/UploadViewController.php#L59
- browser/enable-media-replace/tags/4.1.9/classes/ViewController/UploadViewController.php#L66
- browser/enable-media-replace/tags/4.1.9/classes/Controller/ReplaceController.php#L253