2021-01-28 17:43:50 +00:00
|
|
|
id: springboot-heapdump
|
2021-01-12 03:54:18 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Detect Springboot Heapdump Actuator
|
|
|
|
author: that_juan_ & dwisiswant0 & wdahlenb
|
|
|
|
severity: critical
|
|
|
|
description: Environment variables and HTTP requests can be found in the HPROF
|
2021-05-14 14:07:13 +00:00
|
|
|
tags: springboot,disclosure
|
2021-01-12 03:54:18 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/heapdump"
|
|
|
|
- "{{BaseURL}}/actuator/heapdump"
|
2021-05-14 13:52:08 +00:00
|
|
|
|
|
|
|
max-size: 2097152 # 2MB - Max Size to read from server response
|
2021-01-12 03:54:18 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: binary
|
|
|
|
part: body
|
|
|
|
binary:
|
|
|
|
- "4a4156412050524f46494c45" # "JAVA PROFILE"
|
|
|
|
- "4850524f46" # "HPROF"
|
|
|
|
- "1f8b080000000000" # Gunzip magic byte
|
|
|
|
condition: or
|
2021-05-14 13:52:08 +00:00
|
|
|
|
2021-01-12 03:54:18 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-05-14 13:52:08 +00:00
|
|
|
|
2021-01-12 03:54:18 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "application/octet-stream"
|
|
|
|
- "application/vnd.spring-boot.actuator"
|
2021-01-28 15:56:38 +00:00
|
|
|
- "application/vnd.spring-boot.actuator.v1+json"
|
2021-01-12 03:54:18 +00:00
|
|
|
part: header
|
2021-05-14 13:52:08 +00:00
|
|
|
condition: or
|
|
|
|
|
2021-01-12 03:54:18 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "len(body) >= 100000"
|
|
|
|
- "content_length >= 100000"
|
|
|
|
condition: or
|
2021-01-28 18:36:15 +00:00
|
|
|
part: header
|