Description
The Coupon Creator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'metavalue (with metakeyinput=cctor_expiration)' parameter in all versions up to, and including, 3.6.5 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit is possible because the cctor_coupon post type advertises 'custom-fields' support, enabling WordPress core's Custom Fields metabox for Contributors, and the unregistered cctor_expiration meta key causes sanitize_meta() to be a no-op, allowing raw HTML to be stored verbatim in the database via a single AJAX request.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- www.wordfence.com/threat-intel/vulnerabilities/id/b2da5fb9-6225-4b8b-9040-e083dfd597f9?sou
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.5/src/Cctor/Admin/Columns.php#L
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.5/src/Cctor/Expiration.php#L227
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.5/src/Cctor/Expiration.php#L102
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.5/plugin-engine/src/Pngx/Editor
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.5/plugin-engine/src/Pngx/Add_Ca
- plugins.trac.wordpress.org/browser/coupon-creator/tags/3.6.6
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.