Python: Fix SimpleXmlRpcServer.ql

This commit is contained in:
Rasmus Wriedt Larsen
2022-03-31 20:37:28 +02:00
parent 4abab22066
commit d2b03bb480

View File

@@ -10,14 +10,14 @@
*/
private import python
private import experimental.semmle.python.Concepts
private import semmle.python.Concepts
private import semmle.python.ApiGraphs
from DataFlow::CallCfgNode call, string kinds
where
call = API::moduleImport("xmlrpc").getMember("server").getMember("SimpleXMLRPCServer").getACall() and
kinds =
strictconcat(ExperimentalXML::XMLParsingVulnerabilityKind kind |
strictconcat(XML::XMLParsingVulnerabilityKind kind |
kind.isBillionLaughs() or kind.isQuadraticBlowup()
|
kind, ", "