Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Protect against XML vulnerabilities
Browse files Browse the repository at this point in the history
issue11219
issue11244
(grafted from f801a89c84e7df1e3ae00b0f91d500ed7d36a7a9)

--HG--
branch : 5.0
  • Loading branch information
cedk committed Mar 1, 2022
1 parent 0576244 commit 0729a88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Use defusedxml to parse XML (11244)

Version 5.0.11 - 2022-01-15
* Bug fixes (see mercurial logs for details)

Expand Down
4 changes: 4 additions & 0 deletions proteus/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
import xmlrpc.client
from decimal import Decimal

import defusedxml.xmlrpc

__all__ = ['set_trytond', 'set_xmlrpc', 'get_config']

defusedxml.xmlrpc.monkey_patch()


def dump_decimal(self, value, write):
value = {'__class__': 'Decimal',
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def get_require_version(name):
license='LGPL-3',
python_requires='>=3.4',
install_requires=[
'defusedxml',
"python-dateutil",
],
extras_require={
Expand Down

0 comments on commit 0729a88

Please sign in to comment.