mofh
Affected
- introduced
0, fixed1.0.1(ecosystem)
Fixed versions
1.0.1
Fix
- Fixed version
1.0.1pip install --upgrade mofh==1.0.1
Advisory
Also known as: None
mofh Vulnerable to Improper Restriction of XML External Entity Reference
The xml.etree.ElementTree module that mofh used up until version 1.0.1 implements a simple and efficient API for parsing and creating XML data. But it makes the application vulnerable to:
The Problem has been patched starting from version 1.0.1 by utilising the defusedxml package instead of xml.etree.ElementTree.
Workarounds
For this vulnerability to be exploited the user must be using a custom API URL, which has to be manually given using the api_url argument, or MyOwnFreeHost's API must be hacked. So, if the user did not use a custom API URL they _should_ be fine, however, upgrading is still advised.
Another workaround could be to call defusedxml.defuse_stdlib() before making any requests using the client.
Medium Basis: The source's own band: MODERATE
0, fixed 1.0.1 (ecosystem)1.0.1
1.0.1pip install --upgrade mofh==1.0.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0