Skip to content

Commit 6c458a1

Browse files
committed
Allow MaD sanitizers for java/mvel-expression-injection
1 parent dc83b62 commit 6c458a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/security/MvelInjection.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ private class DefaultMvelInjectionSanitizer extends MvelInjectionSanitizer {
3737
}
3838
}
3939

40+
private class ExternalMvelInjectionSanitizer extends MvelInjectionSanitizer {
41+
ExternalMvelInjectionSanitizer() { barrierNode(this, "mvel-injection") }
42+
}
43+
4044
/** A set of additional taint steps to consider when taint tracking MVEL related data flows. */
4145
private class DefaultMvelInjectionAdditionalTaintStep extends MvelInjectionAdditionalTaintStep {
4246
override predicate step(DataFlow::Node node1, DataFlow::Node node2) {

0 commit comments

Comments
 (0)