Convert XSS barrier to MaD · ender700/codeql@44295e4 · GitHub
Skip to content

Commit 44295e4

Browse files
owen-mcaschackmull
authored andcommitted
Convert XSS barrier to MaD
1 parent 7e562f3 commit 44295e4

3 files changed

Lines changed: 22 additions & 15 deletions

File tree

‎java/ql/lib/ext/hudson.model.yml‎

Lines changed: 6 additions & 0 deletions

‎java/ql/lib/semmle/code/java/frameworks/hudson/Hudson.qll‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,3 @@ class HudsonWebMethod extends Method {
1414
this.getDeclaringType().getASourceSupertype*().hasQualifiedName("hudson.model", "Descriptor")
1515
}
1616
}
17-
18-
private class HudsonUtilXssSanitizer extends XssSanitizer {
19-
HudsonUtilXssSanitizer() {
20-
this.asExpr()
21-
.(MethodCall)
22-
.getMethod()
23-
// Not including xmlEscape because it only accounts for >, <, and &.
24-
// It does not account for ", or ', which makes it an incomplete XSS sanitizer.
25-
.hasQualifiedName("hudson", "Util", "escape")
26-
}
27-
}

‎java/ql/lib/semmle/code/java/security/XSS.qll‎

Lines changed: 16 additions & 4 deletions

0 commit comments

Comments
 (0)