Miggo Logo

CVE-2010-4237: Mercurial Improper Certificate Validation vulnerability

5.9

CVSS Score
3.1

Basic Information

EPSS Score
0.53461%
Published
4/21/2022
Updated
5/2/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
mercurialpip< 1.6.41.6.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing Common Name validation in SSL certificate checks. The commit f2937d6492c5 introduced the _verifycert function to validate the certificate's Common Name and integrated it into the BetterHTTPS.connect method. Prior to this fix, the connect method in mercurial/url.py did not include these checks, leaving the system vulnerable. The CVE description explicitly cites improper Common Name validation, which aligns with the absence of _verifycert in the vulnerable versions.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

M*r*uri*l ***or* *.*.* **ils to v*ri*y t** *ommon N*m* *i*l* o* SSL **rti*i**t*s w*i** *llows r*mot* *tt**k*rs w*o **quir* * **rti*i**t* si*n** *y * **rti*i**t* *ut*ority to p*r*orm * m*n-in-t**-mi**l* *tt**k.

Reasoning

T** vuln*r**ility st*ms *rom missin* *ommon N*m* v*li**tion in SSL **rti*i**t* ****ks. T** *ommit ************ intro*u*** t** _v*ri*y**rt *un*tion to v*li**t* t** **rti*i**t*'s *ommon N*m* *n* int**r*t** it into t** **tt*r*TTPS.*onn**t m*t*o*. Prior