Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreIf an application uses <sec:intercept-url servlet-path="/servlet-path" pattern="/endpoint/**"/> to define the servlet path for computing a path matcher, then the servlet path is not included and the related authorization rules are not exercised. This can lead to an authorization bypass.
Spring Security:
Spring Security 6.x and earlier are not affected; the described issue applies to XML intercept-url servlet path handling in Spring Security 7.
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 7.0.x | 7.0.5 | OSS |
If you are not able to upgrade, you can place the servlet path directly in the URL as follows:
<sec:intercept-url pattern="/servlet-path/endpoint/**" access="authenticated"/>
Use an access expression (or other supported authorization attributes) appropriate for your application.
The issue was identified and responsibly reported by Apex, a Cantinas AppSec agent.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy