mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Update TimingAttackAgainstHeader.qhelp
This commit is contained in:
committed by
Chris Smowton
parent
39e07cbc9c
commit
fa81f43694
@@ -21,7 +21,9 @@ and does not depend on the contents of the arrays.
|
||||
<p>
|
||||
The following example uses <code>Arrays.equals()</code> method for validating a csrf token.
|
||||
This method implements a non-constant-time algorithm.
|
||||
|
||||
In the same example i use a safe constant-time algorithm for validating.
|
||||
</p>
|
||||
<sample src="UnsafecsrfComparison.java" />
|
||||
<sample src="csrfComparison.java" />
|
||||
</qhelp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user