mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-05 02:03:35 +08:00
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
id: springboot-heapdump
|
|
|
|
info:
|
|
name: Spring Boot Actuator - Heap Dump Detection
|
|
author: that_juan_,dwisiswant0,wdahlenb
|
|
severity: critical
|
|
description: |
|
|
A Spring Boot Actuator heap dump was detected. A heap dump is a snapshot of JVM memory, which could expose environment variables and HTTP requests.
|
|
reference:
|
|
- https://github.com/pyn3rd/Spring-Boot-Vulnerability
|
|
metadata:
|
|
max-request: 3
|
|
tags: springboot,exposure,misconfig
|
|
variables:
|
|
str: "{{rand_base(6)}}"
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET /{{str}} HTTP/1.1
|
|
Host: {{Hostname}}
|
|
- |
|
|
GET /heapdump HTTP/1.1
|
|
Host: {{Hostname}}
|
|
- |
|
|
GET /actuator/heapdump HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
max-size: 2097152 # 2MB - Max Size to read from server response
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: or
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "!contains(hex_encode(body_1), '1f8b080000000000')"
|
|
- "contains(hex_encode(body_2), '1f8b080000000000')"
|
|
condition: and
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- "!contains(hex_encode(body_1), '1f8b080000000000')"
|
|
- "contains(hex_encode(body_3), '1f8b080000000000')"
|
|
condition: and
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- "contains(hex_encode(body_2), '4a4156412050524f46494c45') || contains(hex_encode(body_2), '4850524f46')"
|
|
- "contains(hex_encode(body_3), '4a4156412050524f46494c45') || contains(hex_encode(body_3), '4850524f46')"
|
|
condition: or
|
|
# digest: 4a0a00473045022100cb46df7d422144e056a61b66bbb265a9ccf8e36521f70aa4653a8ac64a5d61ad02205d1dc1ae3b84df842880d259da3bdbe0e342c3322c9fa85be74fb7d780854090:922c64590222798bb761d5b6d8e72950 |