Created
August 15, 2021 14:23
-
-
Save artem-smotrakov/42ebb6118ba911821d5946862f753dde to your computer and use it in GitHub Desktop.
CodeQL query for detecting possible timing attacks in Java applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from DataFlow::PathNode source, DataFlow::PathNode sink, NonConstantTimeCryptoComparisonConfig conf | |
where conf.hasFlowPath(source, sink) | |
select sink.getNode(), source, sink, "Possible timing attack against $@ validation.", source, | |
source.getNode().(CryptoOperationSource).getCall().getResultType() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment