December 3, 2026
From Public Order IDs to Guest Order Takeover and Review Forgery
Summary
By Zyadatef
2 min read
Summary
A public product reviews API exposed internal order identifiers and customer-related information. These identifiers were treated as sufficient proof of order ownership by other parts of the application.
By chaining this information disclosure with missing authorization checks in the review and guest-order flows, I was able to:
- Publish reviews on behalf of other customers.
- Identify customer email addresses through the account creation flow.
- Access guest order details without verifying ownership of the email address.
- Download digital products associated with those orders.
The issue was reproduced using a store and test accounts under my control.
Vulnerability Details
1. Public API Disclosure
I started by inspecting the product reviews functionality and noticed that the public reviews API returned more information than was necessary to display reviews.
For example:
Request:
GET /api/example/reviews?productId=123 HTTP/1.1
Host: example.comGET /api/example/reviews?productId=123 HTTP/1.1
Host: example.comSimplified response:
{
"reviews": [
{
"rating": 5,
"orderId": "ORDER-12345",
"siteUserId": "USER-67890",
"lastName": "Example"
}
]
}{
"reviews": [
{
"rating": 5,
"orderId": "ORDER-12345",
"siteUserId": "USER-67890",
"lastName": "Example"
}
]
}The important finding was that the response exposed an internal orderId associated with a customer's purchase.
This identifier was later accepted by other application functionality without properly verifying that the requester owned the corresponding order.
2. Publishing Reviews on Behalf of Other Customers
I tested whether the exposed orderId could be used to submit a review.
I found that the application accepted a review submission using the order identifier:
Request:
POST /api/example/reviews/order/ORDER-12345 HTTP/1.1
Host: example.com
Content-Type: application/json
{
"rating": 1,
"review": "Example review content"
}POST /api/example/reviews/order/ORDER-12345 HTTP/1.1
Host: example.com
Content-Type: application/json
{
"rating": 1,
"review": "Example review content"
}The application processed the request and published the review under the actual buyer's identity.
No authenticated session, authorization token, or ownership verification was required for this operation.
This allowed an unauthenticated attacker to submit reviews on behalf of customers, potentially damaging their reputation or manipulating product ratings.
3. Obtaining the Customer Email Through the Account Creation Flow
I then investigated whether the same orderId could be used in other parts of the application.
I noticed that the account creation flow accepted an order identifier through a URL parameter:
GET /account/create?oid=ORDER-12345 HTTP/1.1
Host: example.comGET /account/create?oid=ORDER-12345 HTTP/1.1
Host: example.comWhen opening the link, the application populated the registration flow with the email address associated with that order.
This meant that an identifier exposed through the public reviews API could also reveal the email address associated with the purchase.
4. Accessing Guest Order Details Without Email Verification
I continued testing the guest checkout flow using a controlled test order.
After creating an account using the email address associated with the guest order, the application did not require verification of email ownership before allowing access to certain order-related functionality.
Although the order did not appear in the account's normal order list, I was able to access its details through the relevant order functionality.
For illustration, the affected functionality can be represented as:
GET /api/example/orders/ORDER-12345 HTTP/1.1
Host: example.comGET /api/example/orders/ORDER-12345 HTTP/1.1
Host: example.comThe response exposed information such as:
- Customer name.
- Billing address.
- Purchased products.
- Order and payment summary.
I also confirmed that the same access-control weakness allowed downloading digital products associated with the guest order.
The important distinction is that access was possible through the order-related functionality even though the order was not displayed in the account's regular order list.
Steps to Reproduce
- Open a product page on a store using the affected review functionality.
- Retrieve the public reviews API response.
- Identify an exposed
orderId. - Submit a review using that identifier and observe that it is published under the buyer's identity.
- Open the account creation flow with the same order identifier.
- Observe that the associated customer email is populated.
- Using a controlled guest order, create an account through the registration flow without verifying ownership of the email address.
- Access the corresponding order-related functionality.
- Observe that order details and associated digital downloads are accessible despite the lack of email ownership verification.