-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathStoredXss.qll
More file actions
31 lines (24 loc) · 928 Bytes
/
StoredXss.qll
File metadata and controls
31 lines (24 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Provides a taint-tracking configuration for reasoning about stored
* cross-site scripting vulnerabilities.
*
* Note, for performance reasons: only import this file if
* `StoredXss::Configuration` is needed, otherwise
* `StoredXssCustomizations` should be imported instead.
*/
import go
/**
* Provides a taint-tracking configuration for reasoning about stored
* cross-site scripting vulnerabilities.
*/
module StoredXss {
import StoredXssCustomizations::StoredXss
private module Config implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node source) { source instanceof Source }
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
predicate observeDiffInformedIncrementalMode() { any() }
}
/** Tracks taint flow for reasoning about XSS. */
module Flow = TaintTracking::Global<Config>;
}