Protect against XML vulnerabilities
issue11219 issue11244 (grafted from f801a89c84e7df1e3ae00b0f91d500ed7d36a7a9) --HG-- branch : 6.0
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
* Use defusedxml to parse XML (11244)
|
||||
|
||||
Version 6.0.4 - 2022-01-15
|
||||
* Bug fixes (see mercurial logs for details)
|
||||
|
||||
|
||||
@@ -11,8 +11,12 @@ import urllib.parse
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user