File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
csharp/ql/lib/semmle/code/csharp/security/auth Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/** Definitions for the Insecure Direct Object Reference query */
2
2
3
3
import 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
5
6
import ActionMethods
6
7
7
8
/**
@@ -17,7 +18,7 @@ private predicate needsChecks(ActionMethod m) { m.isEdit() and not m.isAdmin() }
17
18
* that may indicate that it's used as the ID for some resource
18
19
*/
19
20
private predicate hasIdParameter ( ActionMethod m ) {
20
- exists ( RemoteFlowSource src | src .getEnclosingCallable ( ) = m |
21
+ exists ( ThreatModelFlowSource src | src .getEnclosingCallable ( ) = m |
21
22
src .asParameter ( ) .getName ( ) .toLowerCase ( ) .matches ( [ "%id" , "%idx" ] )
22
23
or
23
24
// handle cases like `Request.QueryString["Id"]`
You can’t perform that action at this time.
0 commit comments