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 1 to 50 of 185
  1. Derive the object owner from the authenticated session rather than trusting an ID supplied by the client.

    Seen in 7 reports
  2. Derive the target user from the authenticated session rather than accepting a user identifier from the request.

    Seen in 6 reports
  3. Check object ownership server-side against the authenticated session on every request, not just token validity.

    Seen in 6 reports
  4. Check that the requester is allowed to see the record identified by the client-supplied identifier.

    Seen in 5 reports
  5. Check authorisation in every GraphQL resolver and node lookup before returning an object by identifier.

    Seen in 5 reports
  6. Check on the server that the requested object belongs to the authenticated user before returning it.

    Seen in 4 reports
  7. Compare the session's tenant or organisation with the id in the request path or body.

    Seen in 4 reports
  8. Derive the target record from the authenticated session and verify ownership before returning or modifying it.

    Seen in 4 reports
  9. Derive the target object from the authenticated session and verify ownership on every request rather than trusting a supplied identifier.

    Seen in 4 reports
  10. Add rate limiting and lockout to identifier lookups, OTP checks and PIN changes.

    Seen in 4 reports
  11. Require and validate a reset token tied to the target account and do not return the token in responses.

    Seen in 3 reports
  12. Enforce CSRF token validation server-side instead of treating token presence as an access check.

    Seen in 3 reports
  13. Add rate limiting to endpoints that accept enumerable identifiers such as gift cards, user IDs and session cookies.

    Seen in 3 reports
  14. Check the caller is allowed to assign the requested role and that the target belongs to their organisation.

    Seen in 3 reports
  15. Derive the user from the session and check ownership of every object identifier before acting on it.

    Seen in 3 reports
  16. Filter every listing and lookup by the caller's tenant or organisation.

    Seen in 3 reports
  17. Enforce the same ownership check on image identifiers in both create and edit series handlers.

    Seen in 2 reports
  18. Check project permission in the GraphQL resolvers for models and model versions.

    Seen in 2 reports
  19. Ignore the email in the request body and look up the account from the authenticated session.

    Seen in 2 reports
  20. Verify the email address belongs to the caller and re-validate changes at the identity provider.

    Seen in 2 reports
  21. Apply the access check uniformly to every route variation, including query and path parameters.

    Seen in 2 reports
  22. Use a per-field allow-list so restricted fields cannot be set through general update endpoints.

    Seen in 2 reports
  23. Derive the user identity from the verified token rather than a client-controlled claim or parameter.

    Seen in 2 reports
  24. Require an authenticated session and verify ownership rather than treating a token in the URL as sufficient.

    Seen in 2 reports
  25. Apply authorization checks in nested field resolvers, not only on root queries.

    Seen in 2 reports
  26. Validate every element of a composite identifier, not just the last one.

    Seen in 2 reports
  27. Add rate limiting to endpoints whose identifiers are guessable.

    Seen in 2 reports
  28. Move OTP verification and workflow enforcement to the server.

    Seen in 2 reports
  29. Use an explicit allow-list of fields the caller may set instead of binding the whole request body.

    Seen in 2 reports
  30. Allow-list the fields a user may modify on update and signup instead of passing the whole body to the model.

    Seen in 2 reports
  31. Bind share tokens and reset tokens to the specific object or account they were issued for.

    Seen in 2 reports
  32. Check that the authenticated user owns the card identifier before returning its data.

    Seen in 1 report
  33. Verify that the hackathon is public or visible to the user before applying its date range.

    Seen in 1 report
  34. Verify device ownership on every API call and avoid predictable sequential device identifiers.

    Seen in 1 report
  35. Scope operation list results to the caller and check ownership on the get endpoint.

    Seen in 1 report
  36. Check that the requester is authorised to change the account's password and do not rely on a user-supplied identifier.

    Seen in 1 report
  37. Verify that the supplied asset identifier belongs to the caller's business before returning admin lists.

    Seen in 1 report
  38. Check that the purchase order belongs to the caller's store and sanitise the subject and body fields.

    Seen in 1 report
  39. Verify that the source card belongs to the authenticated user before moving funds.

    Seen in 1 report
  40. Use the authenticated session's user identifier rather than a client-supplied userId.

    Seen in 1 report
  41. Serve ticket files only after checking that the booking belongs to the requester, and do not rely on an encrypted URL value alone.

    Seen in 1 report
  42. Verify that the pipeline_id belongs to a project the caller can access.

    Seen in 1 report
  43. Require authentication and verify the requester's rights over the group before granting admin.

    Seen in 1 report
  44. Verify that the caller owns or was invited to the calendar before returning status.

    Seen in 1 report
  45. Check that the trip belongs to the authenticated user before accepting a rating.

    Seen in 1 report
  46. Enforce authorisation on attachment downloads and use non-predictable identifiers.

    Seen in 1 report
  47. Check that the device belongs to the authenticated user before marking it for wipe.

    Seen in 1 report
  48. Add authentication and authorisation checks to all quiz endpoints.

    Seen in 1 report
  49. Check that the product belongs to the caller's shop before returning its title or app configuration.

    Seen in 1 report
  50. Require authentication and check document ownership before serving a download.

    Seen in 1 report