mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Note that FEATURE_SECURE_PROCESSING isn't a sufficient defence against XXE
This commit is contained in:
@@ -159,15 +159,6 @@ private class ConstantStringExpr extends Expr {
|
||||
Expr singleSafeConfig() {
|
||||
result.(ConstantStringExpr).getStringValue() =
|
||||
"http://apache.org/xml/features/disallow-doctype-decl"
|
||||
or
|
||||
result.(ConstantStringExpr).getStringValue() =
|
||||
"http://javax.xml.XMLConstants/feature/secure-processing"
|
||||
or
|
||||
exists(Field f |
|
||||
result = f.getAnAccess() and
|
||||
f.hasName("FEATURE_SECURE_PROCESSING") and
|
||||
f.getDeclaringType().hasQualifiedName("javax.xml", "XMLConstants")
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user