Post Export Import with Media <= 1.13.1 - Authenticated (Administrator+) Arbitrary File Upload via Trailing-Dot Filename Bypass in ZIP Media Import
- 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: total
Summary
The Post Export Import with Media plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 1.13.1 via the import_media_file_secure function. This is due to insufficient file extension validation caused by a trailing-dot filename bypass, where the extension allow-list check in ajax_import_media_start() uses pathinfo() on the raw ZIP entry name (e.g., 'shell.php.'), which returns an empty string for the extension, causing the allow-list guard to be skipped and the file to be extracted to a temporary location, after which import_media_file_secure() copies it into the WordPress uploads directory without re-validating the extension. This makes it possible for authenticated attackers, with administrator-level access and above, to upload files that may be executable, which makes remote code execution possible.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- wpazleen Post Export Import with Media
through 1.13.1
References 7
plugins.trac.wordpress.org
- browser/post-export-import-with-media/tags/1.13.1/includes/class-media-handler.php#L364
- browser/post-export-import-with-media/tags/1.13.1/includes/class-media-handler.php#L789
- browser/post-export-import-with-media/tags/1.13.1/includes/class-media-handler.php#L389
- browser/post-export-import-with-media/tags/1.13.1/includes/class-media-handler.php#L444
- browser/post-export-import-with-media/tags/1.13.1/includes/class-media-handler.php#L268
- changeset?reponame=&old=3600506%40post-export-import-with-media&new=3600506%40post-export-import-with-media