Skip to content

Commit ebb33d2

Browse files
Merge pull request #255 from psytester/patch-1
Create Springboot heapdump actuator.bcheck
2 parents 475b7c0 + 73d4b87 commit ebb33d2

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
metadata:
2+
language: v1-beta
3+
name: "Springboot heapdump actuator"
4+
description: "Springboot heapdump actuator provides a heap dump from the application's JVM"
5+
author: "psytester"
6+
tags: "actuator", "springboot", "exposure", "informative"
7+
8+
run for each:
9+
potential_path =
10+
"/heapdump",
11+
"/actuator/heapdump",
12+
"/api/actuator/heapdump"
13+
14+
given host then
15+
send request called check:
16+
method: "GET"
17+
path: {potential_path}
18+
19+
if {check.response.status_code} is "200"
20+
and "application/octet-stream" in {check.response.headers} then
21+
report issue:
22+
severity: high
23+
confidence: certain
24+
detail: `Springboot heapdump actuator found at {potential_path}.`
25+
remediation: "Ensure heapdump actuator is not exposed."
26+
end if

0 commit comments

Comments
 (0)