AMP for WP <= 1.1.16 - Unauthenticated Stored Cross-Site Scripting via Comment Content Regex Transformation
- 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: yes
- Technical impact: partial
Summary
The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content via Regex Transformation in all versions up to, and including, 1.1.16 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 crafted payload uses only WordPress-permitted comment tags and attributes (an anchor with href and title), and the AMP sanitizer pipeline omits javascript: protocol blocking, meaning neither the comment save filter nor the AMP output stage removes the malicious URI introduced by the transformation.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- mohammed_kaludi AMP for WP – Accelerated Mobile Pages
through 1.1.16
References 8
plugins.trac.wordpress.org
- browser/accelerated-mobile-pages/tags/1.1.15/templates/features.php#L8823
- browser/accelerated-mobile-pages/tags/1.1.15/components/comments/comments.php#L89
- browser/accelerated-mobile-pages/tags/1.1.15/includes/features/functions.php#L314
- browser/accelerated-mobile-pages/tags/1.1.14/templates/features.php#L8823
- browser/accelerated-mobile-pages/tags/1.1.14/components/comments/comments.php#L89
- browser/accelerated-mobile-pages/tags/1.1.14/includes/features/functions.php#L314
- changeset?reponame=&old=3689899%40accelerated-mobile-pages&new=3689899%40accelerated-mobile-pages