Use `defusedxml` for XMLRPC to prevent DoS attacks
`defusedxml` is a patched XML python library that fixes many issues with the standard library XML and prevents attacks such as Billion laughs attack. https://en.wikipedia.org/wiki/Billion_laughs_attack `defusedxml` provides a `defusedxml.xmlrpc.monkey_patch` call which will patch the `xmlrpc` standard library module with the safe XML decoders. This patch enables XML protections once a Dispatcher class is initiated. The Dispatcher is the one that uses the `xmlrpc.client.loads` call to parse XML from the HTTP call.
Please register or sign in to comment