AMP for WP <= 1.1.17 - Unauthenticated Stored Cross-Site Scripting via 'headline-*' Shortcode Attribute
What fixes it
No source in this snapshot names a fixed version.
Description
The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'headline-*' Shortcode Attribute in all versions up to, and including, 1.1.17 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. A Subscriber-level user can store a malicious shortcode in their biographical info field; because WordPress core's wp_filter_kses() only strips HTML tags and not shortcode syntax, and because AMP content sanitizers run before do_shortcode() processes the archive description, the synthesized markup is never post-sanitized.
Text from CVE List
Affected versions 1
- AMP for WP – Accelerated Mobile Pagesaffected: all versions through 1.1.17CVE List
References 5
- wordfence.com/threat-intel/vulnerabilities/id/be16349f-31aa-41b8-a4fa-95db3141ba9b?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/accelerated-mobile-pages/tags/1.1.17/includes/thirdparty-compatibility.php#L1594Referencevia CVE List
- plugins.trac.wordpress.org/browser/accelerated-mobile-pages/tags/1.1.17/includes/thirdparty-compatibility.php#L1565Referencevia CVE List
- plugins.trac.wordpress.org/browser/accelerated-mobile-pages/tags/1.1.17/components/loop/loop.php#L69Referencevia CVE List
- plugins.trac.wordpress.org/changeset?reponame=&old=3722863%40accelerated-mobile-pages&new=3722863%40accelerated-mobile-pagesReferencevia CVE List