Skip to content

Commit 22ad8f7

Browse files
committed
Python: Remove usage of .getASuccessor() in XSLT.qll
1 parent 1e5eeb8 commit 22ad8f7

File tree

1 file changed

+1
-6
lines changed
  • python/ql/src/experimental/semmle/python/security/injection

1 file changed

+1
-6
lines changed

python/ql/src/experimental/semmle/python/security/injection/XSLT.qll

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ module XSLTInjection {
4141
}
4242

4343
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-
|
44+
exists(CallNode call | call.getFunction().(AttrNode).getObject("XML").pointsTo(etree()) |
5045
call.getArg(0) = fromnode and
5146
call = tonode
5247
)

0 commit comments

Comments
 (0)