Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IDOR

what is idor?

IDOR stands for Insecure Direct Object Reference and it is a type of vulnerability that occurs when websites use user-provided input without first doing some checks.

How IDOR Works

IDOR vulnerabilities typically occur when an application does not check the user has access to a certain thing before giving them access. This can be very dangerous.

examples

For example, consider a url that you may have seen before in the past: www.examplewebsite.com/orders/123

If the application doesn't verify that the current user is authorized to view order #123, an attacker could simply change the number to access other users' orders: Like this:

  • www.examplewebsite.com/orders/124
  • www.examplewebsite.com/orders/125
  • www.examplewebsite.com/orders/1

IDOR vulnerabilities can be found in various contexts:

  • User profiles: /user/profile?id=456
  • File downloads: /download?file=document123.pdf
  • API endpoints: /api/users/789/messages
  • Database records: /invoice?invoice_id=ABC123
  • Support tickets: /ticket/14

tasks

  1. Find out what page could potentially lead to what we just mentioned.
  2. After you discover the vulnerability, see what you can do with it. What additional information can you find out?

helpful links: