← Java / Spring · 目次

JAVA-024 / 上級

認証なしの Actuator heapdump 提供

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

なぜ問題になるのか?

ヒープダンプに DB パスワード、セッショントークン、鍵が平文で残ります。

修正方法

yaml
management.endpoints.web.exposure.include: health
management.server.port: 9090   # 内部ネットワーク専用ポートとファイアウォール

参考資料