File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
java/ql/src/Security/CWE/CWE-352 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ result in exposure of data or unintended code execution.</p>
1010</overview >
1111
1212<recommendation >
13- <p >Cross-Site Request Forgery (CSRF) protection is enabled by default. Spring's recommendation
13+ <p >When you use Spring, Cross-Site Request Forgery (CSRF) protection is enabled by default. Spring's recommendation
1414is to use CSRF protection for any request that could be processed by a browser client by normal
1515users.</p >
1616</recommendation >
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import java
1515from MethodAccess call
1616where
1717 call .getMethod ( ) .hasName ( "disable" ) and
18- call . getReceiverType ( ) . hasQualifiedName (
19- "org.springframework.security.config.annotation.web.configurers" ,
20- "CsrfConfigurer<HttpSecurity>"
21- )
18+ call
19+ . getReceiverType ( )
20+ . hasQualifiedName ( "org.springframework.security.config.annotation.web.configurers" ,
21+ "CsrfConfigurer<HttpSecurity>" )
2222select call , "CSRF vulnerability due to protection being disabled."
You can’t perform that action at this time.
0 commit comments