-
Notifications
You must be signed in to change notification settings - Fork 1.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 our terms of service and privacy 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?
Java: Promote Insecure Spring Boot Actuator Configuration query from experimental #20006
Conversation
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. Use Spring Security, which secures actuators by default, by configuring 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
Fixed
Show fixed
Hide fixed
d8bbc2b
to
cde1939
Compare
java/ql/lib/semmle/code/java/security/SpringBootActuatorsConfigQuery.qll
Fixed
Show fixed
Hide fixed
c0680d1
to
9ac212d
Compare
java/ql/lib/semmle/code/java/security/SpringBootActuatorsConfigQuery.qll
Fixed
Show fixed
Hide fixed
java/ql/lib/semmle/code/java/security/SpringBootActuatorsConfigQuery.qll
Fixed
Show fixed
Hide fixed
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql
Fixed
Show fixed
Hide fixed
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql
Fixed
Show fixed
Hide fixed
9ac212d
to
8dd8c17
Compare
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql
Fixed
Show fixed
Hide fixed
8dd8c17
to
c31fb17
Compare
java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql
Fixed
Show fixed
Hide fixed
c31fb17
to
6a6b794
Compare
splitting is required to properly test each scenario
Need the existence of an ApplicationProperties File, not an ApplicationProperties ConfigPair
6a6b794
to
56f667d
Compare
DRAFT