GitHub Advisoryadvisory · PyPI
GHSA-pwx5-xg7g-wpc5 Tweepy does not verify SSL Certificate
MEDIUM
Official page ↗
- Aliases
- CVE-2012-5825
- Ecosystem
- PyPI
- Packages
- tweepy
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-20
- Reviewed
- 2023-08-29
Affected packages
• PyPI tweepy: < 3.0 → fixed in 3.0
Description
Tweepy does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate, related to use of the Python httplib library.
Related
Alias · CVE (1)
- CVE-2012-5825 Tweepy does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-5825 advisory
- https://github.com/tweepy/tweepy/issues/279 web
- https://github.com/tweepy/tweepy/pull/400 web
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79831 web
- https://github.com/pypa/advisory-database/tree/main/vulns/tweepy/PYSEC-2012-17.yaml web
- https://github.com/tweepy/tweepy package
- http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf web