Skip to content

Commit

Permalink
defusedxml: Show correct module name (#1081)
Browse files Browse the repository at this point in the history
The module name described in the warning message is incomplete and
confusing.
  • Loading branch information
kajinamit committed Dec 21, 2023
1 parent fe9ca8b commit 8fa5788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bandit/blacklists/imports.py
Expand Up @@ -146,8 +146,8 @@
----------------------
XMLRPC is particularly dangerous as it is also concerned with communicating
data over a network. Use defused.xmlrpc.monkey_patch() function to monkey-patch
xmlrpclib and mitigate remote XML attacks.
data over a network. Use defusedxml.xmlrpc.monkey_patch() function to
monkey-patch xmlrpclib and mitigate remote XML attacks.
+------+---------------------+------------------------------------+-----------+
| ID | Name | Imports | Severity |
Expand Down Expand Up @@ -376,7 +376,7 @@ def gen_blacklist():
issue.Cwe.IMPROPER_INPUT_VALIDATION,
["xmlrpc"],
"Using {name} to parse untrusted XML data is known to be "
"vulnerable to XML attacks. Use defused.xmlrpc.monkey_patch() "
"vulnerable to XML attacks. Use defusedxml.xmlrpc.monkey_patch() "
"function to monkey-patch xmlrpclib and mitigate XML "
"vulnerabilities.",
"HIGH",
Expand Down

0 comments on commit 8fa5788

Please sign in to comment.