GHSA-2m6g-crv8-p3c6

    Dashboard / Vulnerabilities / GHSA-2m6g-crv8-p3c6

    GHSA-2m6g-crv8-p3c6

    Published: 16 Sept 2022Last Modified: 6 Dec 2023

    Summary: Parse Server vulnerable to brute force guessing of user sensitive data via search patterns

    Details: ### Impact Internal 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. ### Patches The patch requires the master key to use internal and protected fields as query constraints. ### Workarounds Implement a Parse Cloud Trigger `beforeFind` and manually remove the query constraints, such as: ```js Parse.Cloud.beforeFind('TestObject', ({ query }) => { for (const key in query._where || []) { // Repeat logic for protected fields if (key.charAt(0) === '_') { delete query._where[key]; } } }); ``` ### References - https://github.com/parse-community/parse-server/security/advisories/GHSA-2m6g-crv8-p3c6

    Affected packages

    Package

    Name: parse-server

    Purl: pkg:npm/parse-server

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -4.10.14

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-2m6g-crv8-p3c6 | CVE-DB