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 151 to 185 of 185
  1. Avoid AES-ECB with a hardcoded key for password encryption.

    Seen in 1 report
  2. Verify the caller owns or is entitled to the source attachment before cloning it.

    Seen in 1 report
  3. Apply authorisation checks to hidden endpoints regardless of the HTTP method used to reach them.

    Seen in 1 report
  4. Enforce the same authorisation checks across all HTTP methods on an endpoint.

    Seen in 1 report
  5. Bind refresh tokens to the authenticated user or session and avoid long-lived static refresh tokens.

    Seen in 1 report
  6. Accept only an allowlist of fields from the request body rather than applying every submitted field to the order.

    Seen in 1 report
  7. Validate step values against an allowed range and match the token owner to the user_id in the path.

    Seen in 1 report
  8. Require completed OTP verification rather than authorising on possession of an application token alone.

    Seen in 1 report
  9. Validate and sanitise URL fields so that javascript: schemes cannot be stored and executed.

    Seen in 1 report
  10. Enforce the name confirmation step server-side and check that the project code matches the confirmed project.

    Seen in 1 report
  11. Bind cookie and nonce values to the session and validate their actual values, not just their length.

    Seen in 1 report
  12. Retire legacy API versions or bring them up to the same authorisation and encryption standards.

    Seen in 1 report
  13. Do not run user-triggered functions with a role that bypasses row-level security, and validate destination paths.

    Seen in 1 report
  14. Disable public listing on storage buckets and avoid predictable ids for paid files.

    Seen in 1 report
  15. Parameterise database queries and check authorisation on the application number.

    Seen in 1 report
  16. Compare the supplied room id with the file's owning room before serving the file.

    Seen in 1 report
  17. Re-check permissions against the repository named in the request body, not only the one in the URL.

    Seen in 1 report
  18. Replace unconditional permission callbacks with real authentication and ownership checks.

    Seen in 1 report
  19. URL-encode user input before placing it into internal query strings.

    Seen in 1 report
  20. Carry field-level and row-level access rules over to synced copies of data.

    Seen in 1 report
  21. Include the resource identifier in the authorisation cache key.

    Seen in 1 report
  22. Resolve and normalise the storage key before checking ownership, and sign only the value that was checked.

    Seen in 1 report
  23. Normalise paths before validation and use the same value for the authorisation check and the lookup.

    Seen in 1 report
  24. Apply per-key ownership checks to every element of an array parameter downstream.

    Seen in 1 report
  25. Authorise each operation in a batched GraphQL request individually rather than setting a request-wide flag.

    Seen in 1 report
  26. Do not branch authorisation on the client-supplied operation type; apply ownership checks to every operation.

    Seen in 1 report
  27. Set default permission classes and declare permission classes on every view.

    Seen in 1 report
  28. Pass the object ID into the permission callback and check per-object capability.

    Seen in 1 report
  29. Prove domain ownership and enforce global uniqueness before binding a domain to a workspace.

    Seen in 1 report
  30. Tighten storage security rules so listing and reads require authentication and ownership.

    Seen in 1 report
  31. Bind each OTP to the specific verification resource and enforce country restrictions server-side.

    Seen in 1 report
  32. Keep encryption keys server-side and never expose them to the client.

    Seen in 1 report
  33. Require authentication and ownership before serving uploaded images.

    Seen in 1 report
  34. Require authentication and an ownership check before returning order details.

    Seen in 1 report
  35. Isolate tenant state in internal services so one account's container cannot read another's writes.

    Seen in 1 report