Miggo Logo

CVE-2023-22963: personnummer/dart vulnerable to Improper Input Validation

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.22696%
Published
9/19/2022
Updated
1/11/2023
KEV Status
No
Technology
TechnologyDart

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
personnummerpub< 3.0.33.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from an insufficient regular expression pattern in the validation logic. The core function responsible for validation (Personnummer.valid) likely contained a regex pattern that accepted '000' as the first three digits in the last four-digit group of a personnummer. This matches the described vulnerability where numbers ending with '000x' were improperly validated as legitimate. The workaround and patch both focus on correcting this specific regex pattern, indicating the validation function itself was the primary vulnerable component.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T*is vuln*r**ility w*s r*port** to t** p*rsonnumm*r t**m in Jun* ****. T** slow r*spons* w*s *u* to lo*k** own*rs*ip o* som* o* t** *****t** p**k***s, w*i** **us** **l*ys to up**t* p**k***s prior to *is*losur*. T** vuln*r**ility is **t*rmin** to **

Reasoning

T** vuln*r**ility st*ms *rom *n insu**i*i*nt r**ul*r *xpr*ssion p*tt*rn in t** v*li**tion lo*i*. T** *or* *un*tion r*sponsi*l* *or v*li**tion (`P*rsonnumm*r.v*li*`) lik*ly *ont*in** * r***x p*tt*rn t**t ****pt** '***' *s t** *irst t*r** *i*its in t**