Skip to content
IDOR Write-up Beginner

How I Exposed IDOR and Path Traversal Vulnerabilities in a Parking Portal

A parking portal exposed other users' personal details through a numeric identifier in a profile URL, and a receipt download endpoint accepted a file path that let the author read the server's configuration file. The configuration file contained plain-text administrator credentials, external service credentials, PayPal tokens and database connection strings.

br3ss Follow

Published on medium.com

As a curious penetration tester with a knack for finding bugs where they least expect it, I recently stumbled upon a vulnerability that turned out to be more of a Pandora’s box than I initially imagined. Here’s the tale of how my innocent attempt to renew a parking permit led to uncovering some serious security flaws…

Br3ss, 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 profile page trusted the numeric identifier in the URL without checking ownership, and the receipt endpoint passed a user-supplied file path to the file system without restricting it to the intended folder.

Impact

An attacker could view other users' names, addresses and phone numbers, and could read a configuration file holding plain-text administrator credentials, external service credentials, PayPal tokens and database connection strings.

What the attacker needed

A personal account on the portal; ability to intercept and edit requests

How it was found

  1. Log in to the portal with a personal account and open the personal page.
  2. Change the numeric identifier in the profile URL to another number and load the page.
  3. Download the payment receipt and note the file path parameter in the endpoint.
  4. Use a proxy to inspect responses and note the server software.
  5. Try different file paths, including an encoded configuration file path, until the configuration file is 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.

A web address often ends with a number that tells the site which record to show, such as your own profile. If the site does not check that the record belongs to you, changing the number shows someone else's record; this is called an insecure direct object reference. Separately, the receipt download took a file path from the address bar, and by supplying a different path the author made the server hand back its own settings file, which is called path traversal.

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 br3ss

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.