Post Grid Gutenberg Blocks for News, Magazines, Blog Websites <= 5.0.31 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'moreResultsText' Block Attribute
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Ultimate Post plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'moreResultsText' block attribute of the ultimate-post/advanced-search block in versions up to and including 5.0.31. This is due to insufficient input sanitization and output escaping in the Advanced_Search::content() render callback: the attribute value is filtered with wp_kses(), which strips disallowed HTML tags but does NOT escape HTML special characters such as double quotes in plain text, and the result is then concatenated directly into the data-viewmoretext HTML attribute without 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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- wpxpo Post Grid Gutenberg Blocks – PostX
through 5.0.31
References 8
plugins.trac.wordpress.org
- browser/ultimate-post/tags/5.0.27/blocks/Advanced_Search.php#L116
- browser/ultimate-post/tags/5.0.28/blocks/Advanced_Search.php#L116
- browser/ultimate-post/tags/5.0.28/blocks/Advanced_Search.php#L108
- browser/ultimate-post/tags/5.0.28/classes/Blocks.php#L231
- browser/ultimate-post/tags/5.0.27/blocks/Advanced_Search.php#L108
- browser/ultimate-post/tags/5.0.27/classes/Blocks.php#L231
- changeset?reponame=&old=3598669%40ultimate-post&new=3598669%40ultimate-post