In-depth lesson · IDOR
Typical fixes
Every point the IDOR reports back under this heading, best-backed first, each with the reports it is seen in.
-
Check that the caller is still a member of the channel before allowing message deletion.
-
Verify that the requesting user owns the referenced photo before serving it.
Seen in 1 report
-
Apply the active subscription restriction to the target customer resolved from the request.
Seen in 1 report
-
Generate UUIDs with sufficient randomness and verify document ownership on update.
Seen in 1 report
-
Validate that the Google identity token belongs to the same user as the requested account.
Seen in 1 report
-
Require an authenticated session and check ownership before serving uploaded image files.
-
Verify that the post identifier in the delete request belongs to the authenticated user.
-
Require authentication or a long random expiring token for delivery details instead of a short static identifier.
Seen in 1 report
-
Check that the requested product is public before returning its data.
Seen in 1 report
-
Verify that the requester owns the address identifier before returning it.
Seen in 1 report
-
Verify that the authenticated user owns the requested receipt rather than trusting the encoded identifier.
-
Check that the profile identifier matches the authenticated user.
Seen in 1 report
-
Verify that the basket identifier belongs to the authenticated user.
Seen in 1 report
-
Validate that destination and arrival cities differ and verify ownership of the email and alert identifier.
Seen in 1 report
-
Use unpredictable file identifiers and verify authorisation on the file endpoint.
Seen in 1 report
-
Match the user identifier in the request against the authenticated session.
Seen in 1 report
-
Verify that the target user identifier belongs to the caller's own account before deletion.
-
Verify that the requester is the post owner or comment author before deleting comments and likes.
Seen in 1 report
-
Add authorisation checks on the company identifier for read and write operations.
-
Require authentication on the separate host and use unpredictable file names.
Seen in 1 report
-
Verify that the referenced backup and machines belong to the caller's organisation.
Seen in 1 report
-
Enforce authorisation on the file-serving endpoint and avoid predictable identifiers.
-
Derive the customer identity from the session rather than the phone number in the request.
Seen in 1 report
-
Bind incoming JSON to an allow-list of fields and restrict which hosts the avatar fetcher can contact.
Seen in 1 report
-
Add server-side authorisation checks on ticket identifiers and encode ticket descriptions on output.
Seen in 1 report
-
Verify the caller's role and membership in the company before performing the action.
Seen in 1 report
-
Verify that the authenticated user is authorised to modify the customer identified by the routing number.
Seen in 1 report
-
Check that the requester is authorised to reference the user identifiers supplied.
Seen in 1 report
-
Verify that the requesting admin is authorised to assign the requested role.
Seen in 1 report
-
Add access control on the card details endpoint and avoid predictable hashing of card data.
Seen in 1 report
-
Do not use a predictable non-secret identifier as the sole authorisation check.
-
Check that the authenticated user owns the account identifier in the request body.
-
Add authorisation checks and do not accept a user-controlled email for arbitrary accounts.
Seen in 1 report
-
Verify that the requester is authorised to access the requested user record.
Seen in 1 report
-
Verify that the authenticated user owns the stage identifier before deletion and do not expose other pages' stage identifiers.
Seen in 1 report
-
Verify that the requester is authorised to access data for the given id.
Seen in 1 report
-
Add access control checks on object identifiers, remove exposed credentials and enforce exam timing server-side.
Seen in 1 report
-
Check that the logged-in user belongs to the organisation identified in the billing page.
-
Use non-sequential role identifiers and verify the caller may assign the requested role.
Seen in 1 report
-
Bind the JWT identity to the authenticated session before deleting an account.
Seen in 1 report
-
Verify that the requesting user owns or is authorised to view the payment identifier.
Seen in 1 report
-
Verify that the post belongs to the authenticated user before fetching or updating it.
Seen in 1 report
-
Check that the token's owner matches the requested order and reject client-controlled price fields in the cart.
-
Restrict file paths to the intended folder and reject traversal sequences.
-
Generate session identifiers with sufficient randomness and protect them with rate limiting.
Seen in 1 report
-
Do not trust client-side flags such as is_superuser for showing privileged views.
Seen in 1 report
-
Do not use deterministic encryption of an identifier as the sole access token; add an authorisation check.
Seen in 1 report
-
Validate the access code and reservation number as a pair rather than independently.
-
Prevent detail pages with personal data from being indexed and require authorisation to view them.
Seen in 1 report
-
Sanitise the bio field to prevent stored XSS.
Seen in 1 report