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.
-
Derive the object owner from the authenticated session rather than trusting an ID supplied by the client.
Seen in 7 reports
-
Derive the target user from the authenticated session rather than accepting a user identifier from the request.
Seen in 6 reports
-
Check object ownership server-side against the authenticated session on every request, not just token validity.
Seen in 6 reports
-
Check that the requester is allowed to see the record identified by the client-supplied identifier.
Seen in 5 reports
-
Check authorisation in every GraphQL resolver and node lookup before returning an object by identifier.
Seen in 5 reports
-
Check on the server that the requested object belongs to the authenticated user before returning it.
Seen in 4 reports
-
Compare the session's tenant or organisation with the id in the request path or body.
Seen in 4 reports
-
Derive the target record from the authenticated session and verify ownership before returning or modifying it.
Seen in 4 reports
-
Derive the target object from the authenticated session and verify ownership on every request rather than trusting a supplied identifier.
Seen in 4 reports
-
Add rate limiting and lockout to identifier lookups, OTP checks and PIN changes.
Seen in 4 reports
-
Require and validate a reset token tied to the target account and do not return the token in responses.
Seen in 3 reports
-
Enforce CSRF token validation server-side instead of treating token presence as an access check.
Seen in 3 reports
-
Add rate limiting to endpoints that accept enumerable identifiers such as gift cards, user IDs and session cookies.
Seen in 3 reports
-
Check the caller is allowed to assign the requested role and that the target belongs to their organisation.
Seen in 3 reports
-
Derive the user from the session and check ownership of every object identifier before acting on it.
Seen in 3 reports
-
Filter every listing and lookup by the caller's tenant or organisation.
Seen in 3 reports
-
Enforce the same ownership check on image identifiers in both create and edit series handlers.
Seen in 2 reports
-
Check project permission in the GraphQL resolvers for models and model versions.
Seen in 2 reports
-
Ignore the email in the request body and look up the account from the authenticated session.
Seen in 2 reports
-
Verify the email address belongs to the caller and re-validate changes at the identity provider.
-
Apply the access check uniformly to every route variation, including query and path parameters.
-
Use a per-field allow-list so restricted fields cannot be set through general update endpoints.
-
Derive the user identity from the verified token rather than a client-controlled claim or parameter.
-
Require an authenticated session and verify ownership rather than treating a token in the URL as sufficient.
-
Apply authorization checks in nested field resolvers, not only on root queries.
-
Validate every element of a composite identifier, not just the last one.
-
Add rate limiting to endpoints whose identifiers are guessable.
-
Move OTP verification and workflow enforcement to the server.
-
Use an explicit allow-list of fields the caller may set instead of binding the whole request body.
-
Allow-list the fields a user may modify on update and signup instead of passing the whole body to the model.
-
Bind share tokens and reset tokens to the specific object or account they were issued for.
-
Check that the authenticated user owns the card identifier before returning its data.
-
Verify that the hackathon is public or visible to the user before applying its date range.
-
Verify device ownership on every API call and avoid predictable sequential device identifiers.
-
Scope operation list results to the caller and check ownership on the get endpoint.
-
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
-
Verify that the supplied asset identifier belongs to the caller's business before returning admin lists.
Seen in 1 report
-
Check that the purchase order belongs to the caller's store and sanitise the subject and body fields.
-
Verify that the source card belongs to the authenticated user before moving funds.
-
Use the authenticated session's user identifier rather than a client-supplied userId.
Seen in 1 report
-
Medium
-
-
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
-
Verify that the pipeline_id belongs to a project the caller can access.
Seen in 1 report
-
Require authentication and verify the requester's rights over the group before granting admin.
Seen in 1 report
-
Verify that the caller owns or was invited to the calendar before returning status.
Seen in 1 report
-
Check that the trip belongs to the authenticated user before accepting a rating.
Seen in 1 report
-
Enforce authorisation on attachment downloads and use non-predictable identifiers.
Seen in 1 report
-
Check that the device belongs to the authenticated user before marking it for wipe.
Seen in 1 report
-
Add authentication and authorisation checks to all quiz endpoints.
Seen in 1 report
-
Check that the product belongs to the caller's shop before returning its title or app configuration.
Seen in 1 report
-
Require authentication and check document ownership before serving a download.
Seen in 1 report