Post Snippets <= 4.2.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
- 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 Post Snippets – Custom WordPress Code Snippets Customizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Shortcode Attributes in all versions up to, and including, 4.2.4 due to insufficient input sanitization and output escaping. 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. Entity-encoded payloads such as <script>...</script> survive WordPress's wp_kses_post on-save sanitization because kses does not decode HTML entities, and are only converted back into executable HTML tags at render time by the plugin's own shortcode filter. This requires snippet shortcodes to be enabled.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- saadiqbal Post Snippets – Custom WordPress Code Snippets Customizer
through 4.2.4
References 10
plugins.trac.wordpress.org
- browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L183
- browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L183
- browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L140
- browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L70
- browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L29
- browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L140
- browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L70
- browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L29
- changeset/3759640/post-snippets/trunk/src/PostSnippets/Shortcode.php