File tree Expand file tree Collapse file tree
csharp/ql/lib/semmle/code/csharp/security/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/** Definitions for the Insecure Direct Object Reference query */
22
33import csharp
4- import semmle.code.csharp.dataflow.flowsources.Remote
4+ import semmle.code.csharp.security.dataflow.flowsources.FlowSources
5+ deprecated import semmle.code.csharp.dataflow.flowsources.Remote
56import ActionMethods
67
78/**
@@ -17,7 +18,7 @@ private predicate needsChecks(ActionMethod m) { m.isEdit() and not m.isAdmin() }
1718 * that may indicate that it's used as the ID for some resource
1819 */
1920private predicate hasIdParameter ( ActionMethod m ) {
20- exists ( RemoteFlowSource src | src .getEnclosingCallable ( ) = m |
21+ exists ( ThreatModelFlowSource src | src .getEnclosingCallable ( ) = m |
2122 src .asParameter ( ) .getName ( ) .toLowerCase ( ) .matches ( [ "%id" , "%idx" ] )
2223 or
2324 // handle cases like `Request.QueryString["Id"]`
You can’t perform that action at this time.
0 commit comments