Skip to content

Commit 57f936e

Browse files
committed
Closes #19179: make table of XML vulnerabilities clearer by using "everyday" booleans and explaining the table beforehand.
1 parent d8ede4f commit 57f936e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Doc/library/xml.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ access local files, to generate network connections to other machines, or
5353
to or circumvent firewalls. The attacks on XML abuse unfamiliar features
5454
like inline `DTD`_ (document type definition) with entities.
5555

56+
The following table gives an overview of the known attacks and if the various
57+
modules are vulnerable to them.
5658

5759
========================= ======== ========= ========= ======== =========
5860
kind sax etree minidom pulldom xmlrpc
5961
========================= ======== ========= ========= ======== =========
60-
billion laughs **True** **True** **True** **True** **True**
61-
quadratic blowup **True** **True** **True** **True** **True**
62-
external entity expansion **True** False (1) False (2) **True** False (3)
63-
DTD retrieval **True** False False **True** False
64-
decompression bomb False False False False **True**
62+
billion laughs **Yes** **Yes** **Yes** **Yes** **Yes**
63+
quadratic blowup **Yes** **Yes** **Yes** **Yes** **Yes**
64+
external entity expansion **Yes** No (1) No (2) **Yes** No (3)
65+
DTD retrieval **Yes** No No **Yes** No
66+
decompression bomb No No No No **Yes**
6567
========================= ======== ========= ========= ======== =========
6668

6769
1. :mod:`xml.etree.ElementTree` doesn't expand external entities and raises a

0 commit comments

Comments
 (0)