Insecure Direct Object Reference (IDOR)

Insecure Direct Object Reference (IDOR)

Knowledge Base>Insecure Direct Object Reference (IDOR)

Summary

IDOR describes a situation in which sensitive resources can be accessed without proper authorization

Testing methodology

Create Additional AccountEnumerate Entry PointsCheck without SessionUnderstand PatternChange ID to Other AccountAdd ID Params to EndpointsFuzz Different ParametersParameter PollutionChange HTTP MethodsChange Content-TypeAdd .json .xml .config to EndpointData Type (e.g., array instead of int)Wildcard IDCheck if Data can be RetrievedCheck if Action can be Performed
Personal Account
Multiple Accounts
Identify Entry Points
Data is Personal
Identify Predictable ID
Identify Different Responses
Retrieve Sensitive Data
Performed Action on Other Account

Description

Insecure Direct Object Reference (IDOR) occurs when attacker-controlled application identifiers are used to fetch resources from the database directly, without proper access control guards in place that verify the user's permission to access the resources.

An attacker abusing this vulnerability will be able to bypass access controls and view or modify sensitive data in the application.

Remediations

  • Implement proper access controls on sensitive resources to ensure that only authorized users can access them.
  • Ensure that user input and session data is properly validated before being used to access sensitive resources.

Affected components

  • Client Side
  • Session
  • Sensitive Information

By using this site you agree to our Terms of Service and Privacy Policy.