summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-12 16:19:33 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-12 16:19:33 (GMT)
commit57f936ecdea75cfa1a7edee72fbca41b7d814796 (patch)
tree35d6c7af9566af4275dfb1f043a6a09cc3521c0b /Doc/library/xml.rst
parentd8ede4fddd5305ced045d07e95c70cdea1d097af (diff)
downloadcpython-57f936ecdea75cfa1a7edee72fbca41b7d814796.zip
cpython-57f936ecdea75cfa1a7edee72fbca41b7d814796.tar.gz
cpython-57f936ecdea75cfa1a7edee72fbca41b7d814796.tar.bz2
Closes #19179: make table of XML vulnerabilities clearer by using "everyday" booleans and explaining the table beforehand.
Diffstat (limited to 'Doc/library/xml.rst')
-rw-r--r--Doc/library/xml.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/xml.rst b/Doc/library/xml.rst
index d255f7f..d796d82 100644
--- a/Doc/library/xml.rst
+++ b/Doc/library/xml.rst
@@ -53,15 +53,17 @@ access local files, to generate network connections to other machines, or
to or circumvent firewalls. The attacks on XML abuse unfamiliar features
like inline `DTD`_ (document type definition) with entities.
+The following table gives an overview of the known attacks and if the various
+modules are vulnerable to them.
========================= ======== ========= ========= ======== =========
kind sax etree minidom pulldom xmlrpc
========================= ======== ========= ========= ======== =========
-billion laughs **True** **True** **True** **True** **True**
-quadratic blowup **True** **True** **True** **True** **True**
-external entity expansion **True** False (1) False (2) **True** False (3)
-DTD retrieval **True** False False **True** False
-decompression bomb False False False False **True**
+billion laughs **Yes** **Yes** **Yes** **Yes** **Yes**
+quadratic blowup **Yes** **Yes** **Yes** **Yes** **Yes**
+external entity expansion **Yes** No (1) No (2) **Yes** No (3)
+DTD retrieval **Yes** No No **Yes** No
+decompression bomb No No No No **Yes**
========================= ======== ========= ========= ======== =========
1. :mod:`xml.etree.ElementTree` doesn't expand external entities and raises a