Description (CNA)
KitchenAsty through 0.3.0 contains a broken object level authorization (IDOR) vulnerability in the reservations API. The endpoint GET /api/reservations/:id in packages/server applies the authenticate middleware but performs no ownership or role check, and the getReservation handler in packages/server/src/controllers/reservation.controller.ts returns the record retrieved by the client-supplied identifier without comparing reservation.customerId to the authenticated principal
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| n/a / n/a | affected n/a |
CWE
No CWE identifiers supplied.
References
- https://github.com/mighty840/kitchenasty
- https://github.com/mighty840/kitchenasty/pull/43
- https://github.com/mighty840/kitchenasty/blob/main/packages/server/src/routes/reservation.routes.ts
- https://github.com/mighty840/kitchenasty/blob/main/packages/server/src/controllers/reservation.controller.ts
- https://github.com/mighty840/kitchenasty/security/advisories/GHSA-2w4m-hjg2-2v92
ADP enrichment
No English description supplied.
No references supplied.