{ "schema_version": "1.4.0", "id": "GHSA-vm5r-c87r-pf6x", "modified": "2023-02-04T00:14:05Z", "published": "2023-01-31T22:21:48Z", "aliases": [ "CVE-2023-22474" ], "summary": "Parse Server option `masterKeyIps` vulnerability to IP spoofing", "details": "### Impact\n\nParse Server uses the request header `x-forwarded-for` to determine the client IP address. If Parse Server doesn't run behind a proxy server, then a client can set this header and Parse Server will trust the value of the header. The incorrect client IP address will be used by various features in Parse Server. This allows to circumvent the security mechanism of the Parse Server option `masterKeyIps` by setting an allowed IP address as the `x-forwarded-for` header value.\n\n### Patches\n\nThe mechanism to determine the client IP address has been rewritten. The correct IP address determination now requires to set the Parse Server option `trustProxy` accordingly, see the express framework's [trust proxy](https://expressjs.com/en/guide/behind-proxies.html) setting.\n\n### References\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-vm5r-c87r-pf6x\n- https://expressjs.com/en/guide/behind-proxies.html", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "parse-server" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "5.4.1" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/parse-community/parse-server/security/advisories/GHSA-vm5r-c87r-pf6x" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22474" }, { "type": "WEB", "url": "https://github.com/parse-community/parse-server/commit/e016d813e083ce6828f9abce245d15b681a224d8" }, { "type": "PACKAGE", "url": "https://github.com/parse-community/parse-server" } ], "database_specific": { "cwe_ids": [ "CWE-290" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2023-01-31T22:21:48Z", "nvd_published_at": "2023-02-03T20:15:00Z" } }