{"id":"GHSA-2m6g-crv8-p3c6","summary":"Parse Server vulnerable to brute force guessing of user sensitive data via search patterns","details":"### Impact\n\nInternal fields (keys used internally by Parse Server, prefixed by `_`) and protected fields (user defined) can be used as query constraints. Internal and protected fields are removed by Parse Server from query results and are only returned to the client using a valid master key. However, using query constraints, these fields can be guessed by enumerating until Parse Server returns a response object.\n\n### Patches\n\nThe patch requires the master key to use internal and protected fields as query constraints.\n\n### Workarounds\n\nImplement a Parse Cloud Trigger `beforeFind` and manually remove the query constraints, such as:\n\n```js\nParse.Cloud.beforeFind('TestObject', ({ query }) =\u003e {\n  for (const key in query._where || []) {\n    // Repeat logic for protected fields\n    if (key.charAt(0) === '_') {\n      delete query._where[key];\n    }\n  }\n});\n```\n\n### References\n\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-2m6g-crv8-p3c6","aliases":["BIT-parse-2022-36079","CVE-2022-36079"],"modified":"2023-12-06T00:47:27.335754Z","published":"2022-09-16T21:17:44Z","database_specific":{"github_reviewed_at":"2022-09-16T21:17:44Z","nvd_published_at":"2022-09-07T21:15:00Z","cwe_ids":["CWE-200"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/parse-community/parse-server/security/advisories/GHSA-2m6g-crv8-p3c6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36079"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/issues/8143"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/issues/8144"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/commit/634c44acd18f6ee6ec60fac89a2b602d92799bec"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/commit/e39d51bd329cd978589983bd659db46e1d45aad4"},{"type":"PACKAGE","url":"https://github.com/parse-community/parse-server"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/releases/tag/4.10.14"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/releases/tag/5.2.5"}],"affected":[{"package":{"name":"parse-server","ecosystem":"npm","purl":"pkg:npm/parse-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.10.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-2m6g-crv8-p3c6/GHSA-2m6g-crv8-p3c6.json"}},{"package":{"name":"parse-server","ecosystem":"npm","purl":"pkg:npm/parse-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.2.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-2m6g-crv8-p3c6/GHSA-2m6g-crv8-p3c6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"}]}