File tree Expand file tree Collapse file tree
csharp/ql/src/Security Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import csharp
1515import semmle.code.csharp.security.dataflow.SqlInjectionQuery
1616import 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
1918
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 ( ) }
2520
2621from SqlInjection:: PathNode source , SqlInjection:: PathNode sink
2722where SqlInjection:: flowPath ( source , sink )
Original file line number Diff line number Diff line change 1212 */
1313
1414import 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
1716import semmle.code.csharp.frameworks.Format
1817import FormatString:: PathGraph
1918
@@ -31,11 +30,7 @@ module FormatStringConfig implements DataFlow::ConfigSig {
3130
3231module FormatString = TaintTracking:: Global< FormatStringConfig > ;
3332
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 ( ) }
3934
4035from FormatString:: PathNode source , FormatString:: PathNode sink
4136where FormatString:: flowPath ( source , sink )
You can’t perform that action at this time.
0 commit comments