Description
The Magazine Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the News Ticker block's clientId attribute in versions up to, and including, 1.8.6. This is due to insufficient input sanitization and output escaping in the NewsTicker::render() method, which concatenates the clientId block attribute into an HTML class attribute without applying esc_attr(). 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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
wpblockart Magazine Blocks – Blog Designer, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks, Post Grid
Default version status: unaffected
0 to ≤ 1.8.6affected
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/34e0862d-55d3-4bc7-ba26-309ef1567e2b?source=cve ↗
- https://plugins.trac.wordpress.org/browser/magazine-blocks/tags/1.8.5/includes/BlockTypes/NewsTicker.php#L43 ↗
- https://plugins.trac.wordpress.org/browser/magazine-blocks/tags/1.8.6/includes/BlockTypes/NewsTicker.php#L43 ↗
- https://plugins.trac.wordpress.org/browser/magazine-blocks/tags/1.8.6/includes/BlockTypes/NewsTicker.php#L106 ↗
- https://plugins.trac.wordpress.org/browser/magazine-blocks/tags/1.8.5/includes/BlockTypes/NewsTicker.php#L106 ↗
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3656574%40magazine-blocks&new=3656574%40magazine-blocks ↗