← Java / Spring · Contents

JAVA-023 / Beginner

Exposing all Actuator endpoints

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

Why is this a problem?

/actuator/env and /heapdump leak secrets and memory dumps.

How to fix it

yaml
management.endpoints.web.exposure.include: health,info
management.endpoint.env.show-values: never

Further reading