Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
n/a n/a
n/aaffected
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 ↗