We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b813a commit f87cd16Copy full SHA for f87cd16
javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/extraction/ExtractEndpointData.qll
@@ -75,7 +75,11 @@ private DataFlow::Node getANotASink(NotASinkReason reason) {
75
*/
76
private DataFlow::Node getAnUnknown(Query query) {
77
getAtmCfg(query).isEffectiveSink(result) and
78
+ // Effective sinks should exclude sinks but this is a defensive requirement
79
not result = getASink(query) and
80
+ // Effective sinks should exclude NotASink but for some queries (e.g. Xss) this is currently not always the case and
81
+ // so this is a defensive requirement
82
+ not result = getANotASink(_) and
83
// Only consider the source code for the project being analyzed.
84
exists(result.getFile().getRelativePath())
85
}
0 commit comments