Skip to main content

SKY-D432 · Security in code

Spring Boot Actuator wildcard exposure

MediumCWE-200

Skylos reports Spring Boot application configuration that exposes all enabled Actuator endpoints over HTTP. A finding identifies the wildcard in the file that declares it, including profile-specific files.

Languages
YAML, Java properties
Quality gate
counted toward the gate limits (full and diff scans)
Finding type
review
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

A wildcard can expose management endpoints an application did not intend to serve. The reachable endpoints and data depend on the application's dependencies, access controls and deployment settings.

What Skylos flags

src/main/resources/application.yaml · YAMLReported on line 5
management:  endpoints:    web:      exposure:        include: "*"

What Skylos leaves alone

src/main/resources/application.yaml · YAML
management:  endpoints:    web:      exposure:        include: "health,info"

Why Skylos leaves it alone

The configuration explicitly lists the two endpoints needed for monitoring.

How Skylos decides

  1. Reads conventional Spring Boot application YAML and properties files, including profile-specific names.
  2. Locates a literal wildcard on management.endpoints.web.exposure.include. A wildcard exclusion in the same configuration takes precedence.

How to fix it

List only the Actuator endpoints you need and restrict access to management endpoints in the deployed application.

When it can be wrong

  • A management listener may be reachable only on a protected network. Review the exposed endpoints and network policy for each affected profile.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • Mark the reviewed line with a rule-scoped Skylos ignore for SKY-D432. Record the evidence that justifies the exception.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.