We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5eeb8 commit 22ad8f7Copy full SHA for 22ad8f7
python/ql/src/experimental/semmle/python/security/injection/XSLT.qll
@@ -41,12 +41,7 @@ module XSLTInjection {
41
}
42
43
private predicate etreeXML(ControlFlowNode fromnode, CallNode tonode) {
44
- exists(CallNode call, AttrNode atr |
45
- atr = etree().getAReference().getASuccessor() and
46
- // XML(text, parser=None, base_url=None)
47
- atr.getName() = "XML" and
48
- atr = call.getFunction()
49
- |
+ exists(CallNode call | call.getFunction().(AttrNode).getObject("XML").pointsTo(etree()) |
50
call.getArg(0) = fromnode and
51
call = tonode
52
)
0 commit comments