Fix codescanning alert by tweaking imported modules

This commit is contained in:
Joe Farebrother
2023-09-25 15:47:05 +01:00
parent 3efbbb3645
commit d7c1be40d9

View File

@@ -2,8 +2,6 @@
import csharp
import semmle.code.csharp.dataflow.flowsources.Remote
import DataFlow as DF
import TaintTracking as TT
import ActionMethods
/**
@@ -25,8 +23,8 @@ private predicate hasIdParameter(ActionMethod m) {
// handle cases like `Request.QueryString["Id"]`
exists(StringLiteral idStr, IndexerCall idx |
idStr.getValue().toLowerCase().matches(["%id", "%idx"]) and
TT::localTaint(src, DataFlow::exprNode(idx.getQualifier())) and
DF::localExprFlow(idStr, idx.getArgument(0))
TaintTracking::localTaint(src, DataFlow::exprNode(idx.getQualifier())) and
DataFlow::localExprFlow(idStr, idx.getArgument(0))
)
)
}