- Notifications
You must be signed in to change notification settings - Fork1.7k
Java: Promote Insecure Spring Boot Actuator Configuration query from experimental#20006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedJul 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
QHelp previews: java/ql/src/Security/CWE/CWE-200/SpringBootActuatorsConfig/SpringBootActuatorsConfig.qhelpExposed Spring Boot actuators in configuration fileSpring Boot includes features called actuators that let you monitor and interact with your web application. Exposing unprotected actuator endpoints through configuration files can lead to information disclosure or even to remote code execution. RecommendationSince actuator endpoints may contain sensitive information, carefully consider when to expose them, and secure them as you would any sensitive URL. If you need to expose actuator endpoints, use Spring Security, which secures actuators by default, or define a custom security configuration. ExampleThe following examples show
The below configurations ensure that sensitive actuator endpoints are not exposed.
To use Spring Security, which secures actuators by default, add the ... <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency><!-- GOOD: Enable Spring Security--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>... References
|
...ecurity/CWE-200/semmle/tests/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.qlref FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
d8bbc2b
tocde1939
CompareUh oh!
There was an error while loading.Please reload this page.
c0680d1
to9ac212d
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
9ac212d
to8dd8c17
Comparejava/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
8dd8c17
toc31fb17
Comparejava/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
c31fb17
to6a6b794
Comparesplitting is required to properly test each scenario
Need the existence of an ApplicationProperties File, not an ApplicationProperties ConfigPair
6a6b794
to56f667d
Compare…to align with Spring docs
56f667d
to7250265
Compare
Uh oh!
There was an error while loading.Please reload this page.
This PR promotes
java/insecure-spring-actuator-config
from experimental asjava/spring-boot-exposed-actuators-config
(original PR:#5384).Changes from the experimental query: