GHSA-7pr3-p5fm-8r9x

Suggest an improvement
Source
https://github.com/advisories/GHSA-7pr3-p5fm-8r9x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-7pr3-p5fm-8r9x/GHSA-7pr3-p5fm-8r9x.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7pr3-p5fm-8r9x
Aliases
Published
2021-09-30T17:09:47Z
Modified
2023-12-06T00:46:30.904437Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
LiveQuery publishes user session tokens in parse-server
Details

Impact

For regular (non-LiveQuery) queries, the session token is removed from the response, but for LiveQuery payloads it is currently not. If a user has a LiveQuery subscription on the Parse.User class, all session tokens created during user sign-ups will be broadcast as part of the LiveQuery payload.

Patches

Remove session token from LiveQuery payload.

Workaround

Set user.acl(new Parse.ACL()) in a beforeSave trigger to make the user private already on sign-up.

Database specific
{
    "nvd_published_at": "2021-09-30T15:15:00Z",
    "github_reviewed_at": "2021-09-30T16:43:12Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-200"
    ]
}
References

Affected packages

npm / parse-server

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.10.4