eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
311 stars 64 forks source link

Use defused XML to protect the parser against various XML vulnerabilities #81

Closed flupzor closed 5 years ago

flupzor commented 5 years ago

This PR replaces the sax with the sax parser drop in replacement from defusedxml which guards against various XML vulnerabilities. I've also added a bunch of tests which test for XXE local/remote quadratic blowup and billion laughs attacks.