mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
handle FN case with simple VarAccess; add draft of dataflow config to handle complex VarAccess
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @name Insufficient key size used with a cryptographic algorithm
|
||||
* @description Using cryptographic algorithms with too small of a key size can
|
||||
* allow an attacker to compromise security.
|
||||
* @kind problem
|
||||
* @kind path-problem
|
||||
* @problem.severity error
|
||||
* @precision high
|
||||
* @id java/insufficient-key-size
|
||||
@@ -13,6 +13,9 @@
|
||||
import java
|
||||
import semmle.code.java.security.InsufficientKeySizeQuery
|
||||
|
||||
from Expr e, string msg
|
||||
where hasInsufficientKeySize(e, msg)
|
||||
select e, msg
|
||||
// from Expr e, string msg
|
||||
// where hasInsufficientKeySize(e, msg)
|
||||
// select e, msg
|
||||
from AsymmetricKeyTrackingConfiguration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
|
||||
where cfg.hasFlowPath(source, sink)
|
||||
select sink, source, sink, "The size of this RSA key should be at least 2048 bits."
|
||||
|
||||
Reference in New Issue
Block a user