CVE-2012-5799: PrestaShop Canada Post - SSL Hostname Verification Bypass
- Cve: CVE-2012-5799
- Name: PrestaShop Canada Post - SSL Hostname Verification Bypass
- Description: The Canada Post (aka CanadaPost) module in PrestaShop 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 PHP fsockopen function.
- Impact: Attackers can perform man-in-the-middle attacks, intercepting or altering sensitive data between client and server.
- Remediation: Implement hostname verification in SSL/TLS connections and update to the latest version of the module or PrestaShop.
- Vulnerability type: misconfiguration
- Vulnerability impact: man_in_the_middle
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.8
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:N
- Epss score: 0.00759
- Epss percentile: 0.56198
- Assignee: [email protected]
- Published at: 2012-11-04T22:55:03Z
- Age in days: 5133
- Modified at: 2026-06-16T23:47:21Z
- Public exploits total: 1
- References total: 1
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-5799
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf | nvd | 2012-11-04 |
References
| Url | Source | Tags |
|---|---|---|
| http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf | nvd | Exploit |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| prestashop:prestashop | all versions | no | nvd | /v1/products/prestashop/prestashop |
| presto-changeo:canadapost | all versions | no | nvd | /v1/products/presto-changeo/canadapost |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2012-11-04
- Remote: yes
- Exposed hosts: 4438
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports