@@ -13,6 +13,8 @@ import semmle.javascript.security.dataflow.NosqlInjection
13
13
import semmle.javascript.security.dataflow.SqlInjection
14
14
import semmle.javascript.security.dataflow.TaintedPath
15
15
import semmle.javascript.security.dataflow.DomBasedXss
16
+ import semmle.javascript.security.dataflow.StoredXss
17
+ import semmle.javascript.security.dataflow.XssThroughDom
16
18
import evaluation.EndToEndEvaluation
17
19
18
20
int numAlerts ( DataFlow:: Configuration cfg ) {
@@ -26,6 +28,8 @@ select numAlerts(any(NosqlInjection::Configuration cfg)) as numNosqlAlerts,
26
28
numAlerts ( any ( SqlInjection:: Configuration cfg ) ) as numSqlAlerts ,
27
29
numAlerts ( any ( TaintedPath:: Configuration cfg ) ) as numTaintedPathAlerts ,
28
30
numAlerts ( any ( DomBasedXss:: Configuration cfg ) ) as numXssAlerts ,
31
+ numAlerts ( any ( StoredXss:: Configuration cfg ) ) as numStoredXssAlerts ,
32
+ numAlerts ( any ( XssThroughDom:: Configuration cfg ) ) as numXssThroughDomAlerts ,
29
33
count ( DataFlow:: Node sink |
30
34
exists ( NosqlInjection:: Configuration cfg | cfg .isSink ( sink ) or cfg .isSink ( sink , _) )
31
35
) as numNosqlSinks ,
@@ -37,4 +41,10 @@ select numAlerts(any(NosqlInjection::Configuration cfg)) as numNosqlAlerts,
37
41
) as numTaintedPathSinks ,
38
42
count ( DataFlow:: Node sink |
39
43
exists ( DomBasedXss:: Configuration cfg | cfg .isSink ( sink ) or cfg .isSink ( sink , _) )
40
- ) as numXssSinks
44
+ ) as numXssSinks ,
45
+ count ( DataFlow:: Node sink |
46
+ exists ( StoredXss:: Configuration cfg | cfg .isSink ( sink ) or cfg .isSink ( sink , _) )
47
+ ) as numStoredXssSinks ,
48
+ count ( DataFlow:: Node sink |
49
+ exists ( XssThroughDom:: Configuration cfg | cfg .isSink ( sink ) or cfg .isSink ( sink , _) )
50
+ ) as numXssThroughDomSinks
0 commit comments