Description
BeikeShop through 2.0.0.31 contains an insecure direct object reference vulnerability in the markAsShipped handler of RmaController that allows authenticated customers to modify other customers' returns. Attackers can submit sequential RMA ids to the account/rmas/{id}/mark_as_shipped endpoint to overwrite courier names and tracking numbers and mark approved returns as shipped.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| beikeshop | beikeshop | ≤ 2.0.0.31 | — |
References
- https://hackmd.io/@hieuPenguinnn/beikeshop-rma-mark-as-shipped-missing-ownership-idor third-party-advisory
- https://github.com/beikeshop/beikeshop/blob/v2.0.0.31/beike/Shop/Http/Controllers/Account/RmaController.php#L67-L93 technical-description
- https://github.com/beikeshop/beikeshop/blob/v2.0.0.31/beike/Shop/Routes/shop.php#L98-L111 technical-description
- VulnCheck Advisory: BeikeShop through 2.0.0.31 IDOR via RMA mark_as_shipped Endpoint third-party-advisory