Skip to content

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.

Back to the lesson 101 to 150 of 185
  1. Check that the caller is still a member of the channel before allowing message deletion.

    Seen in 1 report
  2. Verify that the requesting user owns the referenced photo before serving it.

    Seen in 1 report
  3. Apply the active subscription restriction to the target customer resolved from the request.

    Seen in 1 report
  4. Generate UUIDs with sufficient randomness and verify document ownership on update.

    Seen in 1 report
  5. Validate that the Google identity token belongs to the same user as the requested account.

    Seen in 1 report
  6. Require an authenticated session and check ownership before serving uploaded image files.

    Seen in 1 report
  7. Verify that the post identifier in the delete request belongs to the authenticated user.

    Seen in 1 report
  8. Require authentication or a long random expiring token for delivery details instead of a short static identifier.

    Seen in 1 report
  9. Check that the requested product is public before returning its data.

    Seen in 1 report
  10. Verify that the requester owns the address identifier before returning it.

    Seen in 1 report
  11. Verify that the authenticated user owns the requested receipt rather than trusting the encoded identifier.

    Seen in 1 report
  12. Check that the profile identifier matches the authenticated user.

    Seen in 1 report
  13. Verify that the basket identifier belongs to the authenticated user.

    Seen in 1 report
  14. Validate that destination and arrival cities differ and verify ownership of the email and alert identifier.

    Seen in 1 report
  15. Use unpredictable file identifiers and verify authorisation on the file endpoint.

    Seen in 1 report
  16. Match the user identifier in the request against the authenticated session.

    Seen in 1 report
  17. Verify that the target user identifier belongs to the caller's own account before deletion.

    Seen in 1 report
  18. Verify that the requester is the post owner or comment author before deleting comments and likes.

    Seen in 1 report
  19. Add authorisation checks on the company identifier for read and write operations.

    Seen in 1 report
  20. Require authentication on the separate host and use unpredictable file names.

    Seen in 1 report
  21. Verify that the referenced backup and machines belong to the caller's organisation.

    Seen in 1 report
  22. Enforce authorisation on the file-serving endpoint and avoid predictable identifiers.

    Seen in 1 report
  23. Derive the customer identity from the session rather than the phone number in the request.

    Seen in 1 report
  24. Bind incoming JSON to an allow-list of fields and restrict which hosts the avatar fetcher can contact.

    Seen in 1 report
  25. Add server-side authorisation checks on ticket identifiers and encode ticket descriptions on output.

    Seen in 1 report
  26. Verify the caller's role and membership in the company before performing the action.

    Seen in 1 report
  27. Verify that the authenticated user is authorised to modify the customer identified by the routing number.

    Seen in 1 report
  28. Check that the requester is authorised to reference the user identifiers supplied.

    Seen in 1 report
  29. Verify that the requesting admin is authorised to assign the requested role.

    Seen in 1 report
  30. Add access control on the card details endpoint and avoid predictable hashing of card data.

    Seen in 1 report
  31. Do not use a predictable non-secret identifier as the sole authorisation check.

    Seen in 1 report
  32. Check that the authenticated user owns the account identifier in the request body.

    Seen in 1 report
  33. Add authorisation checks and do not accept a user-controlled email for arbitrary accounts.

    Seen in 1 report
  34. Verify that the requester is authorised to access the requested user record.

    Seen in 1 report
  35. Verify that the authenticated user owns the stage identifier before deletion and do not expose other pages' stage identifiers.

    Seen in 1 report
  36. Verify that the requester is authorised to access data for the given id.

    Seen in 1 report
  37. Add access control checks on object identifiers, remove exposed credentials and enforce exam timing server-side.

    Seen in 1 report
  38. Check that the logged-in user belongs to the organisation identified in the billing page.

    Seen in 1 report
  39. Use non-sequential role identifiers and verify the caller may assign the requested role.

    Seen in 1 report
  40. Bind the JWT identity to the authenticated session before deleting an account.

    Seen in 1 report
  41. Verify that the requesting user owns or is authorised to view the payment identifier.

    Seen in 1 report
  42. Verify that the post belongs to the authenticated user before fetching or updating it.

    Seen in 1 report
  43. Check that the token's owner matches the requested order and reject client-controlled price fields in the cart.

    Seen in 1 report
  44. Restrict file paths to the intended folder and reject traversal sequences.

    Seen in 1 report
  45. Generate session identifiers with sufficient randomness and protect them with rate limiting.

    Seen in 1 report
  46. Do not trust client-side flags such as is_superuser for showing privileged views.

    Seen in 1 report
  47. Do not use deterministic encryption of an identifier as the sole access token; add an authorisation check.

    Seen in 1 report
  48. Validate the access code and reservation number as a pair rather than independently.

    Seen in 1 report
  49. Prevent detail pages with personal data from being indexed and require authorisation to view them.

    Seen in 1 report
  50. Sanitise the bio field to prevent stored XSS.

    Seen in 1 report