Skip to content
Access control Write-up Intermediate

From Customer to Verified: A Critical Role Escalation in WooComme

The Flutter app trusted the client-side response from the profile update endpoint, allowing a low-privilege user to change their role and capabilities to 'verified' by intercepting and modifying the response. This let the attacker purchase restricted items such as iTunes cards without proper verification.

Youssefhussein Follow

Published on medium.com

During the assessment, we identified the following endpoint as part of the Flutter mobile app’s backend:

Youssefhussein, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The server fails to validate user roles and capabilities independently of what is returned to or modified by the client.

Impact

An attacker could purchase restricted digital products without proper verification, causing financial loss and compliance issues for the business.

What the attacker needed

A low-privilege user account; ability to intercept and modify API responses

The fix

The server should validate roles and capabilities on the backend, never trust client-provided role data, and remove role or capabilities fields from user update APIs.

How it was found

  1. Attempt to purchase a restricted product and observe the 'account not verified' block.
  2. Intercept the response from the update_user_profile endpoint using a proxy.
  3. Modify the response to change the role and capabilities to 'verified'.
  4. Forward the modified response and reload the product page.
  5. Click 'Buy Now' again and complete checkout for the restricted product.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The app asked the server to update a user's profile, but then believed whatever the phone sent back about the user's role. An attacker could intercept that reply and change 'customer' to 'verified', so the app treated them as a verified user and let them buy restricted products.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Youssefhussein

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.