SparkyFitness before 0.17.0 Missing Authorization via food-variants DELETE Endpoint
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CodeWithCJSparkyFitness |
< 0.17.0→ 0.17.0 |
0.17.0 |
Original description The description as published by the source.
SparkyFitness before 0.17.0 contains a missing authorization vulnerability that allows authenticated users to delete other users' food variants via the DELETE /api/foods/food-variants/:id endpoint. Attackers can use variant IDs from public food read endpoints to delete serving and nutrition variants of publicly shared foods, destroying victims' data.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com