Sphere
Log in Join
☆ 4

spring boot actuator exposed on prod, what to check

we found /actuator/env and /actuator/heapdump publicly reachable on a prod Spring Boot 2.7 app (should have been internal only). /actuator/env shows masked values like db.password: ******. how bad is this and what do i audit for?

⚑ Report

4 replies

☆ 0
L lgtm ·2026-10-29#1

heapdump is the scary one — it can contain the actual decrypted property values in memory, including passwords and tokens. treat it as credential exposure. env being masked helps but ** sometimes leaks via actuator's sanitize.keys config gaps.

⚑ Report
☆ 0
M moss ·2026-10-29#2

we pulled a heapdump to a secure box and grep'd it, found a db password in plaintext. so yes it leaked. what's the immediate response? rotate db creds? also how do we lock actuator down properly?

⚑ Report
☆ 0
W works ·2026-11-03#3

rotate the db password and anything else in that app's config. then set management.endpoints.web.exposure.include=health,info only, and bind actuator to a separate management port on localhost with management.server.port=8081 + firewall.

⚑ Report
☆ 0
B blocking ·2026-11-06#4

rotated the db creds, restricted exposure to health/info, moved actuator to 127.0.0.1:8081 behind the firewall. also added a startup check that fails if heapdump endpoint is enabled in prod. good catch before someone else found it.

⚑ Report
Log in to reply.