Skip to content

Commit 3563c7e

Browse files
committed
Modify deprecated RemoteSource classes to extend DataFlow::Node directly.
Since `ThreatModelFlowSource` contains `RemoteFlowSource` by default, we can safely remove the `RemoteSource` from the default of the queries.
1 parent e64826d commit 3563c7e

13 files changed

+13
-13
lines changed

csharp/ql/lib/semmle/code/csharp/security/dataflow/CodeInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module CodeInjection = TaintTracking::Global<CodeInjectionConfig>;
5959
*
6060
* A source of remote user input.
6161
*/
62-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
62+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6363

6464
/**
6565
* DEPRECATED: Use `ThreatModelSource` instead.

csharp/ql/lib/semmle/code/csharp/security/dataflow/CommandInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module CommandInjection = TaintTracking::Global<CommandInjectionConfig>;
6969
*
7070
* A source of remote user input.
7171
*/
72-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
72+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
7373

7474
/** A source supported by the current threat model. */
7575
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

csharp/ql/lib/semmle/code/csharp/security/dataflow/ConditionalBypassQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module ConditionalBypass = TaintTracking::Global<ConditionalBypassConfig>;
6565
*
6666
* A source of remote user input.
6767
*/
68-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
68+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6969

7070
/** A source supported by the current threat model. */
7171
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

csharp/ql/lib/semmle/code/csharp/security/dataflow/LDAPInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module LdapInjection = TaintTracking::Global<LdapInjectionConfig>;
7171
*
7272
* A source of remote user input.
7373
*/
74-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
74+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
7575

7676
/** A source supported by the current threat model. */
7777
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

csharp/ql/lib/semmle/code/csharp/security/dataflow/MissingXMLValidationQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module MissingXmlValidation = TaintTracking::Global<MissingXmlValidationConfig>;
6767
*
6868
* A source of remote user input.
6969
*/
70-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
70+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
7171

7272
/**
7373
* A source supported by the current threat model.

csharp/ql/lib/semmle/code/csharp/security/dataflow/ReDoSQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module ReDoS = TaintTracking::Global<ReDoSConfig>;
6060
*
6161
* A source of remote user input.
6262
*/
63-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
63+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6464

6565
/** A source supported by the current threat model. */
6666
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

csharp/ql/lib/semmle/code/csharp/security/dataflow/RegexInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module RegexInjection = TaintTracking::Global<RegexInjectionConfig>;
5959
*
6060
* A source of remote user input.
6161
*/
62-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
62+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6363

6464
/** A source supported by the current threat model. */
6565
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

csharp/ql/lib/semmle/code/csharp/security/dataflow/ResourceInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module ResourceInjection = TaintTracking::Global<ResourceInjectionConfig>;
5858
*
5959
* A source of remote user input.
6060
*/
61-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
61+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6262

6363
/**
6464
* DEPRECATED: Use `ThreatModelSource` instead.

csharp/ql/lib/semmle/code/csharp/security/dataflow/SqlInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module SqlInjection = TaintTracking::Global<SqlInjectionConfig>;
6969
*
7070
* A source of remote user input.
7171
*/
72-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
72+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
7373

7474
/**
7575
* DEPRECATED: Use `ThreatModelSource` instead.

csharp/ql/lib/semmle/code/csharp/security/dataflow/TaintedPathQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module TaintedPath = TaintTracking::Global<TaintedPathConfig>;
6161
*
6262
* A source of remote user input.
6363
*/
64-
deprecated class RemoteSource extends Source instanceof RemoteFlowSource { }
64+
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6565

6666
/** A source supported by the current threat model. */
6767
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }

0 commit comments

Comments
 (0)