Mapster WP Mapsに未認証で任意のスクリプトを仕込まれる脆弱性
Summary
WordPressのプラグイン「Mapster WP Maps」の2.0.5以前には、保存されるクロスサイトスクリプティングの脆弱性があります。認証なしの攻撃者が、ページに任意のWebスクリプトを仕込めるおそれがあります。仕込まれたページを開いた利用者の画面で、そのスクリプトが実行されます。修正版は事実に示されていないため、最新の情報を確認してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
WordPressのプラグイン「Mapster WP Maps」の2.0.5以前には、保存されるクロスサイトスクリプティングの脆弱性があります。認証なしの攻撃者が、ページに任意のWebスクリプトを仕込めるおそれがあります。仕込まれたページを開いた利用者の画面で、そのスクリプトが実行されます。修正版は事実に示されていないため、最新の情報を確認してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| mapster | Mapster WP Maps |
≤ 2.0.5 |
— |
Original description The description as published by the source.
The Mapster WP Maps plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.0.5. This is due to the /wp-json/mapster-wp-maps/save-mapmaker REST route being registered with a permission_callback that unconditionally returns true (no capability check, no nonce), together with the mapster_write_config_to_acf() helper only sanitizing string config values with sanitize_text_field() — which strips HTML tags but leaves quote characters intact — and the mapster_wp_map shortcode renderer in mapster_wordpress_maps_shortcode_display() concatenating the stored loading_background_color value into a single-quoted inline style attribute without esc_attr(). This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web security@wordfence.com
- web security@wordfence.com
- web security@wordfence.com
- web security@wordfence.com
- web security@wordfence.com
- web security@wordfence.com
- web nvd.nist.gov
- web github.com