Description
The Admin Columns plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTP_USER_AGENT' parameter in all versions up to, and including, 7.1.7 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The kses sanitization pass in classes/Sanitize/Kses.php uses wp_kses_allowed_html('post') augmented with iframe[src] and the data: protocol; because wp_kses_attr_check accepts any data-* attribute on any allowed tag without inspecting its value, a payload embedded inside a data-ac-tip attribute survives intact and is subsequently assigned to innerHTML by assets/js/table.js, bypassing the apparent mitigation entirely.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
codepress Admin Columns
Default version status: unaffected
0 to ≤ 7.1.7affected
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/8e6a4022-20e8-4102-941b-ecdf0e45671f?source=cve ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/classes/TableScreen/ManageValue/Comment.php#L43 ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/classes/Formatter/ColumnFilter.php#L37 ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/classes/Sanitize/Kses.php#L11 ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/classes/Formatter/Comment/Property.php#L23 ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/classes/ColumnFactory/Comment/AgentFactory.php#L27 ↗
- https://plugins.trac.wordpress.org/browser/codepress-admin-columns/tags/7.1.7/assets/js/table.js ↗
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3768466%40codepress-admin-columns&new=3768466%40codepress-admin-columns ↗