Skip to content

Spring Boot Actuator full exposure in properties

Description

Spring Boot Actuator is configured to expose all endpoints using `management.endpoints.web.exposure.include=*`. This setting can expose sensitive endpoints like `/env`, `/logfile`, or `/heapdump`, especially if authentication and authorization are not enforced.

Examples

Insecure Code

java
management.endpoints.web.exposure.include=*

Secure Code

java
management.endpoints.web.exposure.include=health,info,metrics

Remediation

Avoid using wildcard `*` in production environments, explicitly list only necessary endpoints like `health`, `info`, or `metrics`, and apply Spring Security or other access control to secure exposed endpoints

Rule Details

FieldValue
IDCODE-0221
CategoryAccessControl
SeverityMEDIUM
CWECWE-497
ConfidenceHIGH
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
TagsSpring Actuator, Access Control
OWASPA01:2021-Broken Access Control