.. / CVE-2021-24940

Exploit for WordPress Persian Woocommerce <=5.8.0 - Cross-Site Scripting (CVE-2021-24940)

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.

Nuclei Template

View the template here CVE-2021-24940.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-24940.yaml
Copy

References:

https://wpscan.com/vulnerability/1980c5ca-447d-4875-b542-9212cc7ff77f
https://github.com/ARPSyndicate/cvemon
https://github.com/ARPSyndicate/kenzer-templates
https://nvd.nist.gov/vuln/detail/CVE-2021-24940