← Java / Spring · Contents

JAVA-024 / Advanced

Unauthenticated Actuator heapdump

A05:2021 Security Misconfiguration · CWE-200 Exposure of Sensitive Information

Why is this a problem?

Heap dumps contain DB passwords, session tokens and keys in plaintext.

How to fix it

yaml
management.endpoints.web.exposure.include: health
management.server.port: 9090   # Internal-network-only port and firewall

Further reading