CVE-2018-20852
Last modified
CVE-2018-20852 is a vulnerability of currently unknown severity. http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). EPSS estimates a 3.88% chance of exploitation in the next 30 days.
Description
http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Python | >= 2.0, <= 2.7.16 |
| Python | Python | >= 3.0.0, < 3.4.10 |
| Python | Python | >= 3.5.0, < 3.5.7 |
| Python | Python | >= 3.6.0, < 3.6.9 |
| Python | Python | >= 3.7.0, < 3.7.3 |
References
- https://bugs.python.org/issue35121Exploit, Issue Tracking, Vendor Advisory
- https://bugs.python.org/issue35121Exploit, Issue Tracking, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2018-20852?
How severe is CVE-2018-20852?
How do I fix CVE-2018-20852?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2018
- CVE-2018-20847An improper computation of p_tx0, p_tx1, p_ty0 and p_ty1 in …8.8
- CVE-2018-20848Advisto PEEL SHOPPING 9.0.0 has CSRF via en/achat/caddie_ajo…
- CVE-2018-20849Arastta eCommerce 1.6.2 is vulnerable to XSS via the PATH_IN…
- CVE-2018-2085Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultI…
- CVE-2018-20850Stormshield Network Security 2.0.0 through 2.13.0 and 3.0.0 …
- CVE-2018-20851Helpy before 2.2.0 allows agents to edit admins.
- CVE-2018-20853An issue was discovered in the MailPoet Newsletters (aka wys…5.3
- CVE-2018-20854An issue was discovered in the Linux kernel before 4.20. dri…
- CVE-2018-20855An issue was discovered in the Linux kernel before 4.18.7. I…3.3
- CVE-2018-20856An issue was discovered in the Linux kernel before 4.18.7. I…
- CVE-2018-20857Zendesk Samlr before 2.6.2 allows an XML nodes comment attac…
- CVE-2018-20858Recommender before 2018-07-18 allows XSS.
Are you affected by CVE-2018-20852?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
