mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Python/Ruby/Swift: Rename references.
This commit is contained in:
@@ -56,7 +56,7 @@ module StoredXss {
|
||||
}
|
||||
}
|
||||
|
||||
import TaintTracking::Make<Config>
|
||||
import TaintTracking::Global<Config>
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for StoredXss */
|
||||
|
||||
@@ -304,7 +304,7 @@ private module OrmTracking {
|
||||
}
|
||||
}
|
||||
|
||||
import DataFlow::Make<Config>
|
||||
import DataFlow::Global<Config>
|
||||
}
|
||||
|
||||
/** Provides default sources, sinks and sanitizers for detecting stored cross-site scripting (XSS) vulnerabilities. */
|
||||
@@ -336,7 +336,7 @@ module StoredXss {
|
||||
private class OrmFieldAsSource extends Source instanceof DataFlow::CallNode {
|
||||
OrmFieldAsSource() {
|
||||
exists(DataFlow::CallNode subSrc |
|
||||
OrmTracking::hasFlow(subSrc, this.getReceiver()) and
|
||||
OrmTracking::flow(subSrc, this.getReceiver()) and
|
||||
subSrc.(OrmInstantiation).methodCallMayAccessField(this.getMethodName())
|
||||
)
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@ import codeql.ruby.security.StoredXSSQuery
|
||||
import StoredXss::PathGraph
|
||||
|
||||
from StoredXss::PathNode source, StoredXss::PathNode sink
|
||||
where StoredXss::hasFlowPath(source, sink)
|
||||
where StoredXss::flowPath(source, sink)
|
||||
select sink.getNode(), source, sink, "Stored cross-site scripting vulnerability due to $@.",
|
||||
source.getNode(), "stored value"
|
||||
|
||||
Reference in New Issue
Block a user