CVE-2013-5123
Description
The mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS querying and authenticity checks which allows attackers to perform man-in-the-middle attacks.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
phlyLabs phlyMail Lite 4.03.04 - 'go' Open Redirect
phlyLabs phlyMail Lite 4.03.04 (go param) Open Redirect Vulnerability
Vendor: phlyLabs
Product web page: http://www.phlymail.com
Affected version: Lite 4.03.04
Summary: phlyMail offers you an interface in the browser to have access
to your emails, contacts, appointments, tasks, files and bookmakrs from
anyhwere, where you have internet access. This can be your home, workplace,
train station, abroad, offroad, in the woods or your own backyard.
Desc: Input passed via the 'go' parameter in 'derefer.php' script is not
properly verified before being used to redirect users. This can be exploited
to redirect a user to an arbitrary website e.g. when a user clicks a specially
crafted link to the affected script hosted on a trusted domain.
-----------------------------------------------------------------------
/frontend/derefer.php:
----------------------
33: if (!isset($_REQUEST['go'])) exit;
34: $go = preg_replace('!\r|\n|\t!', '', $_REQUEST['go']);
35: if (strlen($go) == 0) exit;
36: if (!preg_match('!^(http://|https://|ftp://)!', $go) && $go{0} != '/') $go = 'http://'.$go;
37:
38: header('Location: '.$go);
39: exit;
-----------------------------------------------------------------------
Tested on: Microsoft Windows 7 Ultimate SP1 (EN)
Apache 2.4.2 (Win32)
PHP 5.4.4
MySQL 5.5.25a
Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
@zeroscience
Advisory ID: ZSL-2013-5123
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2013-5123.php
13.01.2013
--
http://localhost/frontend/derefer.php?go=zeroscience.mk
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.4.1-1 |
| sid | Fixed | 1.4.1-1 |
| forky | Fixed | 1.4.1-1 |
| bullseye | Fixed | 1.4.1-1 |
| bookworm | Fixed | 1.4.1-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | pip | <1.5 | 1.5 |
References
- https://www.suse.com/security/cve/CVE-2013-5123.html
- https://nvd.nist.gov/vuln/detail/CVE-2013-5123
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-5123
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2013-5123
- https://github.com/advisories/GHSA-c5h8-cq4v-cvfm
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2019-160.yaml
- https://security-tracker.debian.org/tracker/CVE-2013-5123
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155248.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155291.html
- http://www.openwall.com/lists/oss-security/2013/08/21/17
- http://www.openwall.com/lists/oss-security/2013/08/21/18
- http://www.securityfocus.com/bid/77520
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.