3
3
"qhelp.dtd">
4
4
<qhelp >
5
5
<overview >
6
- <p >Spring Boot includes a number of additional features called actuators that let you monitor
7
- and interact with your web application. Exposing unprotected actuator endpoints via JXM or HTTP
8
- can, however, lead to information disclosure or even to remote code execution vulnerability .</p >
6
+ <p >Spring Boot includes features called actuators that let you monitor and interact with your
7
+ web application. Exposing unprotected actuator endpoints can lead to information disclosure or
8
+ even to remote code execution.</p >
9
9
</overview >
10
10
11
11
<recommendation >
12
- <p >Since actuator endpoints may contain sensitive information, careful consideration should be
13
- given about when to expose them. You should take care to secure exposed HTTP endpoints in the same
14
- way that you would any other sensitive URL. If Spring Security is present, endpoints are secured by
15
- default using Spring Security’s content-negotiation strategy. If you wish to configure custom
16
- security for HTTP endpoints, for example, only allow users with a certain role to access them,
17
- Spring Boot provides some convenient <code >RequestMatcher</code > objects that can be used in
18
- combination with Spring Security.</p >
12
+ <p >Since actuator endpoints may contain sensitive information, carefully consider when to expose them,
13
+ and secure them as you would any sensitive URL. Actuators are secured by default when using Spring
14
+ Security without a custom configuration. If you wish to define a custom security configuration,
15
+ consider only allowing users with certain roles access to the endpoints.
16
+ </p >
17
+
19
18
</recommendation >
20
19
21
20
<example >
22
21
<p >In the first example, the custom security configuration allows unauthenticated access to all
23
22
actuator endpoints. This may lead to sensitive information disclosure and should be avoided.</p >
23
+
24
24
<p >In the second example, only users with <code >ENDPOINT_ADMIN</code > role are allowed to access
25
25
the actuator endpoints.</p >
26
26
@@ -29,11 +29,8 @@ the actuator endpoints.</p>
29
29
30
30
<references >
31
31
<li >
32
- Spring Boot documentation:
33
- <a href =" https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html" >Actuators</a >.
34
- </li >
35
- <li >
36
- <a href =" https://www.veracode.com/blog/research/exploiting-spring-boot-actuators" >Exploiting Spring Boot Actuators</a >
32
+ Spring Boot Reference Documentation:
33
+ <a href =" https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" >Endpoints</a >.
37
34
</li >
38
35
</references >
39
36
</qhelp >
0 commit comments