Skip to content

Commit 4b1c027

Browse files
committed
JS: Integrate RemoteFlowSource with ThreatModelSource
1 parent dbfbd2c commit 4b1c027

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ cached
1111
private module Cached {
1212
/** A data flow source of remote user input. */
1313
cached
14-
abstract class RemoteFlowSource extends DataFlow::Node {
15-
/** Gets a human-readable string that describes the type of this remote flow source. */
14+
abstract class RemoteFlowSource extends ThreatModelSource::Range {
1615
cached
17-
abstract string getSourceType();
16+
override string getThreatModel() { result = "remote" }
1817

1918
/**
2019
* Holds if this can be a user-controlled object, such as a JSON object parsed from user-controlled data.

0 commit comments

Comments
 (0)