Skip to content
IDOR Write-up Intermediate

Unsecured access to personal data of a million Leo Express users

A GraphQL endpoint returned any user's personal data when given only their email address, without requiring a valid token or cookies. Separately, a reflected XSS in the order confirmation page allowed an attacker to execute JavaScript in a logged-in user's browser and access partial credit card details.

Thomas Orlita Follow

Published on websecblog.com

Leo Express is a Czech company operating train and bus lines in Central Europe. They provide an option of registering an account and joining loyalty programs as well as getting points for each ride.

Thomas Orlita, on websecblog.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 GraphQL resolver for user data did not verify the authentication token, and the order confirmation page inserted the email parameter into the page without escaping.

Impact

An attacker could retrieve personal data (name, phone, address, linked accounts) of any registered user by knowing their email, and via XSS could access partial credit card details of a logged-in user.

What the attacker needed

Know victim's email address; victim clicks a link (for XSS); victim is logged in (for XSS)

The fix

The vulnerabilities were fixed within three months of the initial report.

How it was found

  1. Sign up and observe the GraphQL request that returns account information.
  2. Modify the request to remove or change the token and remove cookies.
  3. Send the request with a different email address to retrieve that user's data.
  4. For the XSS, craft a URL with a malicious email parameter on the order confirmation page.
  5. Get a logged-in user to visit the URL to execute JavaScript and access their saved card details.

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 website had a feature that fetched your account details, but it didn't properly check that the person asking was really you. Anyone who knew your email address could see your name, phone, address, and linked social accounts. There was also a separate flaw where a link could run malicious code in a victim's browser to steal some credit card 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 Thomas Orlita

View all

7 more disclosed reports, 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.