mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Merge branch 'jorgectf/python/deserialization' of https://github.com/jorgectf/codeql into jorgectf/python/deserialization
This commit is contained in:
@@ -69,8 +69,9 @@ private module XML {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* `this` would be `xml.sax.make_parser()`, `getAnInput()` would return `StringIO(xml_content)`
|
* `this` would be `xml.sax.make_parser()`, `getAnInput()` would return `StringIO(xml_content)`
|
||||||
* and `mayBeDangerous()` would succeed since `xml.sax.handler.feature_external_ges` is set to
|
* and `mayBeDangerous()` would not hold since `xml.sax.handler.feature_external_ges` is set to
|
||||||
* `False` and so it's vulnerable.
|
* `False` and so is not vulnerable.
|
||||||
|
* see https://docs.python.org/3/library/xml.sax.handler.html#xml.sax.handler.feature_external_ges
|
||||||
*/
|
*/
|
||||||
private class XMLSaxParser extends DataFlow::CallCfgNode, XMLParser::Range {
|
private class XMLSaxParser extends DataFlow::CallCfgNode, XMLParser::Range {
|
||||||
DataFlow::CallCfgNode attrCall;
|
DataFlow::CallCfgNode attrCall;
|
||||||
|
|||||||
Reference in New Issue
Block a user