File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
csharp/ql/src/Security Features Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 14
14
import csharp
15
15
import semmle.code.csharp.security.dataflow.SqlInjectionQuery
16
16
import SqlInjection:: PathGraph
17
- import semmle.code.csharp.security.dataflow.flowsources.Remote
18
- import semmle.code.csharp.security.dataflow.flowsources.Local
17
+ import semmle.code.csharp.security.dataflow.flowsources.FlowSources
19
18
20
- string getSourceType ( DataFlow:: Node node ) {
21
- result = node .( RemoteFlowSource ) .getSourceType ( )
22
- or
23
- result = node .( LocalFlowSource ) .getSourceType ( )
24
- }
19
+ string getSourceType ( DataFlow:: Node node ) { result = node .( SourceNode ) .getSourceType ( ) }
25
20
26
21
from SqlInjection:: PathNode source , SqlInjection:: PathNode sink
27
22
where SqlInjection:: flowPath ( source , sink )
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
import csharp
15
- import semmle.code.csharp.security.dataflow.flowsources.Remote
16
- import semmle.code.csharp.security.dataflow.flowsources.Local
15
+ import semmle.code.csharp.security.dataflow.flowsources.FlowSources
17
16
import semmle.code.csharp.frameworks.Format
18
17
import FormatString:: PathGraph
19
18
@@ -31,11 +30,7 @@ module FormatStringConfig implements DataFlow::ConfigSig {
31
30
32
31
module FormatString = TaintTracking:: Global< FormatStringConfig > ;
33
32
34
- string getSourceType ( DataFlow:: Node node ) {
35
- result = node .( RemoteFlowSource ) .getSourceType ( )
36
- or
37
- result = node .( LocalFlowSource ) .getSourceType ( )
38
- }
33
+ string getSourceType ( DataFlow:: Node node ) { result = node .( SourceNode ) .getSourceType ( ) }
39
34
40
35
from FormatString:: PathNode source , FormatString:: PathNode sink
41
36
where FormatString:: flowPath ( source , sink )
You can’t perform that action at this time.
0 commit comments