Test JSON objects for IDOR

Insecure direct object reference (IDOR)Discovery

Written with a model's help from “How I Found an Unauthenticated IDOR in a Pickup-Point Widget” by Sklans on Salah Ezzat (Medium). Read the writeup before relying on it.

When testing an endpoint that accepts a JSON object, try adding an internal identifier field to the object to see if it influences which record is updated. Send a request with a new reference and the identifier of an existing record to check if the server updates the existing record instead of creating a new one. Repeat the test with different records to confirm the behavior. You can use a tool like Burp Suite Repeater to reproduce the request and verify the response. If the server updates the existing record without proper authorization, it may indicate an IDOR vulnerability. Look for a response that shows the existing record's identifier alongside the new values.

Follow #ecommerce or #idor for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.