AMP for WP-Accelerated Mobile Pagesに未認証でスクリプトを埋め込まれる脆弱性
Summary
AMP for WP-Accelerated Mobile Pagesの1.1.19以前には、未認証の攻撃者がコメント経由でWebスクリプトを埋め込める格納型のクロスサイトスクリプティングの脆弱性があります。管理者がコメントを承認したあと、埋め込まれたページを開いた利用者の側でスクリプトが実行されるおそれがあります。修正版の情報は確認できていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
AMP for WP-Accelerated Mobile Pagesの1.1.19以前には、未認証の攻撃者がコメント経由でWebスクリプトを埋め込める格納型のクロスサイトスクリプティングの脆弱性があります。管理者がコメントを承認したあと、埋め込まれたページを開いた利用者の側でスクリプトが実行されるおそれがあります。修正版の情報は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mohammed_kaludiAMP for WP – Accelerated Mobile Pages |
≤ 1.1.19→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 1.1.19 via comment content rendered on AMP post pages. The plugin registers an output-buffer callback ampforwp_the_content_filter_full() on the 'wp' action (priority 999) that applies a set of tag-agnostic and quote-agnostic regular expressions — notably /onclick=[^>]*/ — to the entire AMP page output after approved comments have already been echoed into it; these regexes do not understand HTML tag or attribute-value boundaries, so a kses-legal comment that places strings like 'onclick="' inside a title attribute value can trigger deletion of the title's closing quote, causing the browser to re-parse what was previously textual content inside the attribute value as live HTML attributes. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, after an administrator has approved the comment.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory