The Twenty Eleven Theme Extensions plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'custom-css, headline-text (plus action=save & embed-custom-css=on / headline=on)' parameter in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The capability argument passed to add_appearance_page() governs only menu-item visibility and does not gate the handler, meaning a Subscriber-level user can successfully write a payload to the moztheme2011 option even when the HTTP response returns 403 Forbidden.
References
- plugins.trac.wordpress.org/browser/twenty-elev…ztheme2011.php#L135
- plugins.trac.wordpress.org/browser/twenty-elev…ztheme2011.php#L164
- plugins.trac.wordpress.org/browser/twenty-elev…e2011admin.php#L136
- plugins.trac.wordpress.org/browser/twenty-elev…s/mozadmin.php#L75
- plugins.trac.wordpress.org/browser/twenty-elev…s/mozstore.php#L48
- wordfence.com/threat-intel/vulnerabilities/id/…504?source=cve