Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions other/springboot/Springboot heapdump actuator.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
metadata:
language: v1-beta
name: "Springboot heapdump actuator"
description: "Springboot heapdump actuator provides a heap dump from the application's JVM"
author: "psytester"
tags: "actuator", "springboot", "exposure", "informative"

run for each:
potential_path =
"/heapdump",
"/actuator/heapdump",
"/api/actuator/heapdump"

given host then
send request called check:
method: "GET"
path: {potential_path}

if {check.response.status_code} is "200"
and "application/octet-stream" in {check.response.headers} then
report issue:
severity: high
confidence: certain
detail: `Springboot heapdump actuator found at {potential_path}.`
remediation: "Ensure heapdump actuator is not exposed."
end if