Skip to content

Commit ec50ef9

Browse files
committed
fix(java): Update JSP queries to fix bug
1 parent 94cdfc8 commit ec50ef9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

java/src/audit/CWE-079/XSSJSPLenient.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ module LiteralConfig {
151151
}
152152

153153
module LiteralFlow = TaintTracking::Global<LiteralConfig>;
154-
155-
import LiteralFlow::PathGraph
156154
}
157155

158156
module ContextFlow {
@@ -165,8 +163,6 @@ module ContextFlow {
165163
}
166164

167165
module ContextFlow = TaintTracking::Global<ContextFlowConfig>;
168-
169-
import ContextFlow::PathGraph
170166
}
171167

172168
class RedirectToJsp extends ReturnStmt {
@@ -183,6 +179,8 @@ class RedirectToJsp extends ReturnStmt {
183179
File getJspFile() { result = jsp }
184180
}
185181

182+
import Xss::XssFlow::PathGraph
183+
186184
from Xss::XssFlow::PathNode source, Xss::XssFlow::PathNode sink, JSPTaintStep jspts
187185
where
188186
Xss::XssFlow::flowPath(source, sink) and

java/src/security/CWE-079/XSSJSP.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ module LiteralConfig {
6868
}
6969

7070
module LiteralFlow = TaintTracking::Global<LiteralConfig>;
71-
72-
import LiteralFlow::PathGraph
7371
}
7472

7573
class RedirectToJsp extends ReturnStmt {
@@ -86,6 +84,8 @@ class RedirectToJsp extends ReturnStmt {
8684
File getJspFile() { result = jsp }
8785
}
8886

87+
import Xss::XssFlow::PathGraph
88+
8989
from Xss::XssFlow::PathNode source, Xss::XssFlow::PathNode sink, JSPTaintStep jspts
9090
where
9191
Xss::XssFlow::flowPath(source, sink) and

0 commit comments

Comments
 (0)