File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/semmle/python/frameworks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ private module Lxml {
23
23
* A class constructor compiling an XPath expression.
24
24
*
25
25
* from lxml import etree
26
- * root = etree.XML("<xmlContent>")
27
26
* find_text = etree.XPath("`sink`")
28
27
* find_text = etree.ETXPath("`sink`")
29
28
*
@@ -38,7 +37,7 @@ private module Lxml {
38
37
39
38
override DataFlow:: Node getXPath ( ) { result in [ this .getArg ( 0 ) , this .getArgByName ( "path" ) ] }
40
39
41
- override string getName ( ) { result = "Lxml .etree" }
40
+ override string getName ( ) { result = "lxml .etree" }
42
41
}
43
42
44
43
/**
@@ -72,6 +71,6 @@ private module Lxml {
72
71
// TODO: implement when we get call nodes
73
72
override DataFlow:: Node getTree ( ) { none ( ) }
74
73
75
- override string getName ( ) { result = "Lxml .etree" }
74
+ override string getName ( ) { result = "lxml .etree" }
76
75
}
77
76
}
Original file line number Diff line number Diff line change 4
4
* malicious Xpath code by the user.
5
5
* @kind path-problem
6
6
* @problem.severity error
7
+ * @security-severity 9.8
7
8
* @precision high
8
9
* @id py/xpath-injection
9
10
* @tags security
You can’t perform that action at this time.
0 commit comments