Skip to content
IDOR Write-up Beginner

IDOR Lets Attackers Choose Your Payment Method

A payment initialisation endpoint accepted a booking identifier without checking that the booking belonged to the caller's session or that the chosen payment method was enabled for that booking's store. An attacker could start a Swish payment against another booking using a payment method that was never offered for it.

medium.com

Published on medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, 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 payment endpoint trusted the client-supplied booking identifier and did not verify that the booking belonged to the requester or that the payment method was permitted for that booking's store.

Impact

An attacker could initiate a payment against another user's booking using a payment method that was not enabled for that booking's service or store, bypassing the platform's payment rules.

What the attacker needed

Two bookings on the platform; ability to intercept requests

How it was found

  1. Open two separate bookings in different browser tabs and note their identifiers and available payment methods.
  2. Intercept the payment initialisation request sent when starting a Swish payment for the first booking.
  3. Change the booking identifier in that request to the second booking's identifier.
  4. Forward the modified request and observe the server accepting it.

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 a website shows you a page, it often sends a hidden number (an identifier) to the server to say which booking or order you mean. If the server trusts that number without checking it really belongs to you and your order, you can swap it for someone else's number. Here the researcher swapped the booking number in a payment request and the server happily started a payment for a different booking.

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.

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.