Skip to content

Commit 3cd165d

Browse files
RasmusWLjorgectf
andauthored
Python: Apply suggestions from code review
Co-authored-by: Jorge <[email protected]>
1 parent 683c2fa commit 3cd165d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

python/ql/src/experimental/Security/CWE-611/SimpleXmlRpcServer.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
/**
22
* @name SimpleXMLRPCServer DoS vulnerability
33
* @description SimpleXMLRPCServer is vulnerable to DoS attacks from untrusted user input
4-
* @kind path-problem
4+
* @kind problem
55
* @problem.severity warning
66
* @precision high
7-
* @id py/simple-xml-rpc-server
7+
* @id py/simple-xml-rpc-server-dos
88
* @tags security
99
* external/cwe/cwe-776
1010
*/
1111

1212
private import python
13-
private import semmle.python.dataflow.new.DataFlow
14-
private import semmle.python.Concepts
1513
private import experimental.semmle.python.Concepts
1614
private import semmle.python.ApiGraphs
1715

python/ql/src/experimental/semmle/python/Concepts.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module XML {
2222
*/
2323
class XMLVulnerabilityKind extends string {
2424
XMLVulnerabilityKind() {
25-
this in ["Billion Laughs", "Quadratic Blowup", "XXE", "DTD retrieval",]
25+
this in ["Billion Laughs", "Quadratic Blowup", "XXE", "DTD retrieval"]
2626
}
2727

2828
/** Holds for Billion Laughs vulnerability kind. */

0 commit comments

Comments
 (0)