CVE-2023-22474: Parse Server option `masterKeyIps` vulnerability to IP spoofing
8.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.17444%
CWE
Published
1/31/2023
Updated
2/4/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| parse-server | npm | < 5.4.1 | 5.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from how client IPs were determined. The original getClientIp function in middlewares.js directly used x-forwarded-for header and other network properties without proper proxy configuration checks. This allowed attackers to spoof IPs by manipulating headers when trustProxy wasn't set. The commit patched this by removing custom IP resolution logic and delegating to Express's req.ip which respects the trustProxy setting. The removed test cases in Middlewares.spec.js further confirm these IP resolution paths were considered vulnerable.