← Java / Spring · 目录

JAVA-024 / 高级

Actuator heapdump 无认证访问

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

为什么存在问题?

堆转储中以明文保留数据库口令、会话令牌及密钥。

如何修复

yaml
management.endpoints.web.exposure.include: health
management.server.port: 9090   # 内网专用端口及防火墙

延伸阅读