mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
Python: Fix SimpleXmlRpcServer.ql
This commit is contained in:
@@ -10,14 +10,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
private import python
|
private import python
|
||||||
private import experimental.semmle.python.Concepts
|
private import semmle.python.Concepts
|
||||||
private import semmle.python.ApiGraphs
|
private import semmle.python.ApiGraphs
|
||||||
|
|
||||||
from DataFlow::CallCfgNode call, string kinds
|
from DataFlow::CallCfgNode call, string kinds
|
||||||
where
|
where
|
||||||
call = API::moduleImport("xmlrpc").getMember("server").getMember("SimpleXMLRPCServer").getACall() and
|
call = API::moduleImport("xmlrpc").getMember("server").getMember("SimpleXMLRPCServer").getACall() and
|
||||||
kinds =
|
kinds =
|
||||||
strictconcat(ExperimentalXML::XMLParsingVulnerabilityKind kind |
|
strictconcat(XML::XMLParsingVulnerabilityKind kind |
|
||||||
kind.isBillionLaughs() or kind.isQuadraticBlowup()
|
kind.isBillionLaughs() or kind.isQuadraticBlowup()
|
||||||
|
|
|
|
||||||
kind, ", "
|
kind, ", "
|
||||||
|
|||||||
Reference in New Issue
Block a user