Download Manager stored XSS in file previews
codename065 Download Manager
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| codename065 Download Manager |
| No fix yet |
Original description
The Download Manager plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'file[additional_previews][]' parameter in all versions up to, and including, 7.6.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The wpdm_sanitize_array() function strips HTML tags via wp_kses but leaves bare single quotes intact and calls stripslashes_deep() which defeats WordPress magic quotes protection, allowing a single-quote-based attribute breakout payload to be stored verbatim and later rendered without escaping.
From the CVE record · Wordfence
References
- wordfence.com/threat-intel/vulnerabilities/id/b4085834-3865-4b9e-9497-f14e6e32554b?source=cve
- plugins.trac.wordpress.org/browser/download-manager/trunk/src/Package/PackageController.php#L2296
- plugins.trac.wordpress.org/browser/download-manager/trunk/src/Admin/Menu/Packages.php#L169
- plugins.trac.wordpress.org/browser/download-manager/trunk/src/Admin/Menu/Packages.php#L113
- wpdownloadmanager.com/changelogs