mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Update ComparingValueOfSensetiveHeader.java
This commit is contained in:
committed by
Chris Smowton
parent
09e054ace6
commit
f96e47db09
@@ -7,7 +7,6 @@ private boolean UnsafecsrfComparison(String csrfTokenInCookie) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean safecsrfComparison(String csrfTokenInCookie) {
|
||||
String csrfTokenInRequest = request.getHeader("X-CSRF-TOKEN");
|
||||
if (csrfTokenInRequest == null || !MessageDigest.isEqual(
|
||||
|
||||
Reference in New Issue
Block a user