Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
spree
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| spree_api RubyGems |
|
|
spree
| Product | Affected | Fixed in |
|---|---|---|
| spree_api RubyGems |
|
|
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
From the CVE record · GitHub_M
Spree's order editing accepts address identifiers belonging to other users. An authenticated user can modify an order they own to associate another user's address with it and retrieve that address in the response. No other user interaction is described.
Operators using the RubyGems spree_api package in versions >=3.7.0 <4.10.2, >=5.0.0 <5.0.7, >=5.1.0 <5.1.9, or >=5.2.0 <5.2.5 should check their installations.