Description (CNA)
OpenHealth through 0.2.0 contains a missing authentication and authorization vulnerability in the /api/health-data/[id] GET, PATCH and DELETE handlers that query records by id without session or authorId checks. Unauthenticated attackers who know a HealthData record id can read another user's medical record data and file metadata, overwrite it with arbitrary JSON, or delete it.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| OpenHealthForAll / OpenHealth | affected 0 through 0.2.0 |
CWE
CWE-306
References
- https://hackmd.io/@hieuPenguinnn/open-health-health-data-id-missing-auth-idor
- https://github.com/OpenHealthForAll/open-health/blob/v0.2.0/src/app/api/health-data/%5Bid%5D/route.ts#L13-L43
- https://github.com/OpenHealthForAll/open-health/blob/v0.2.0/src/middleware.ts#L20
- https://github.com/OpenHealthForAll/open-health
- https://www.vulncheck.com/advisories/openhealth-through-0.2.0-missing-authentication-via-api-health-data-id-route
ADP enrichment
No English description supplied.