Description
The WP Optin Wheel – Gamified Optin Email Marketing Tool for WordPress and WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'custom_fields[].value (XML-RPC wp.newPost -> post meta 'options' -> JSON->theme)' parameter in all versions up to, and including, 1.5.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 payload is stored via the XML-RPC wp.newPost endpoint, which bypasses Admin_Controller::sanitize_options() entirely because the CPT inherits default 'post' capabilities, making any Author-level account sufficient to write the malicious 'theme' value.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| maartenbelmans | WP Optin Wheel – Gamified Optin Email Marketing Tool for WordPress and WooCommerce | ≤ 1.5.3 | — |
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/c71171f3-fc03-45bc-b78b-c41e36059bd4?source=cve
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/tags/1.5.3/admin/views/all_wheels.php#L16
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/tags/1.5.3/code/services/class-wheel-service.php#L114
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/tags/1.5.3/code/services/class-wheel-service.php#L229
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/tags/1.5.3/code/controllers/class-admin-controller.php#L142
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/tags/1.5.3/class-wheel-of-fortune.php#L155
- https://plugins.trac.wordpress.org/browser/wp-optin-wheel/
- https://plugins.trac.wordpress.org/changeset/3815170/wp-optin-wheel/trunk/admin/views/all_wheels.php