Description
SparkyFitness before 1.12.0 contains a mass assignment vulnerability that allows authenticated users to modify mfaTotpEnabled, mfaEmailEnabled and lastLoginAt fields through the POST /api/auth/update-user endpoint. Attackers can set MFA flags without enrolling a TOTP secret or verifying email, misrepresenting their account's MFA state in the mfa-factors endpoint and admin views.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
CodeWithCJ SparkyFitness
Default version status: unaffected
0 to < 1.12.0affected
pkg:github/CodeWithCJ/SparkyFitnessReferences
- https://github.com/CodeWithCJ/SparkyFitness/security/advisories/GHSA-q9p4-6p37-mm2g ↗
- https://github.com/CodeWithCJ/SparkyFitness/commit/932833dad62f104fc334772f88bff745f6556ae8 ↗
- https://github.com/CodeWithCJ/SparkyFitness/blob/v1.11.0/SparkyFitnessServer/auth.ts#L543-L564 ↗
- https://github.com/CodeWithCJ/SparkyFitness/releases/tag/v1.12.0 ↗
- https://www.vulncheck.com/advisories/sparkyfitness-before-1.12.0-mass-assignment-of-mfa-status-fields-via-update-user ↗