33 "qhelp.dtd">
44<qhelp>
55<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>
99</overview>
1010
1111<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+
1918</recommendation>
2019
2120<example>
2221<p>In the first example, the custom security configuration allows unauthenticated access to all
2322actuator endpoints. This may lead to sensitive information disclosure and should be avoided.</p>
23+
2424<p>In the second example, only users with <code>ENDPOINT_ADMIN</code> role are allowed to access
2525the actuator endpoints.</p>
2626
@@ -29,11 +29,8 @@ the actuator endpoints.</p>
2929
3030<references>
3131<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>.
3734</li>
3835</references>
3936</qhelp>
0 commit comments