Skip to content
IDOR Write-up Beginner

IDOR Vulnerability in Payment Gateway Exposing User Order Details

A payment gateway endpoint that returns order session status accepted an order reference parameter without checking that the requester owned that order. By changing the order reference value, an attacker could read other users' order details, including order numbers, transaction amounts and merchant details.

Oiluminado_x86 Follow

Published on medium.com

بس� الله والصلاة والسلا� على رسول الله ﷺ❤️، الله� علِّ� نا � ا ينفعنا، وانفعنا ب� ا علَّ� تنا، وزِدنا عل� ًا نافعًا

O iluminado_x86, 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

Likely the endpoint looked up an order purely from the client-supplied order reference and never verified that the authenticated user was the owner of that order.

Impact

An attacker could read other users' order numbers, transaction amounts and merchant details, and if order references are predictable this could be automated to harvest many orders; the report notes fraud such as cancelling payments or refund abuse only as a possibility if modification is also allowed.

What the attacker needed

A valid session on the payment gateway; knowledge of another order reference

How it was found

  1. Intercept a legitimate request that fetches payment details for your own order.
  2. Note the order details returned for the supplied order reference.
  3. Change the order reference value to a different, random or incremented one.
  4. Send the request and observe that another user's order details are returned.

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.

When you pay online, the site often uses a long code to look up your order. This report found that the server handed back order details for any code you supplied, without checking that the order was yours. So someone could swap in a different code and see another shopper's payment information.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Oiluminado_x86

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.