GHSA-65p7-pjj8-ggmr

Suggest an improvement
Source
https://github.com/advisories/GHSA-65p7-pjj8-ggmr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-65p7-pjj8-ggmr/GHSA-65p7-pjj8-ggmr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-65p7-pjj8-ggmr
Published
2021-09-23T23:18:42Z
Modified
2021-09-23T21:14:22Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Member account takeover
Details

Impact

An error in the implementation of the member email change functionality allows unauthenticated users to change the email address of arbitrary member accounts to one they control by crafting a request to the relevant API endpoint, and validating the new address via magic link sent to the new email address.

Ghost(Pro) has already been patched. Self-hosters are impacted if running Ghost a version between 3.18.0 and 4.15.0 with members functionality enabled.

Patches

Fixed in 4.15.1, all 4.x sites should upgrade as soon as possible. Fixed in 3.42.6, all 3.x sites should upgrade as soon as possible.

Workarounds

The patch in 4.15.1 and 3.42.6 adds a new authenticated endpoint for updating member email addresses. Updating Ghost is the quickest complete solution.

As a workaround, if for any reason you cannot update your Ghost instance, you can block the POST /members/api/send-magic-link/ endpoint, which will also disable member login and signup for your site.

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-09-23T21:14:22Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / ghost

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.18.0
Fixed
3.42.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-65p7-pjj8-ggmr/GHSA-65p7-pjj8-ggmr.json"

npm / ghost

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
4.15.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-65p7-pjj8-ggmr/GHSA-65p7-pjj8-ggmr.json"