Insecure Direct Object Reference (IDOR)
Methodology
Identifying Object References
/my-account?id=wiener
/blogs?userId=773fea0b-d694-496b-974b-4ae2b8d8cc9c
/user?id=123
/profile?id=wiener
/account/456
/message?id=90210
/email?id=105
/ticket/view?ticketId=320
/download?file=invoice-002.pdf
/file?id=resume123.docx
/document/8756
/order?id=31415
/checkout?orderId=1234
/invoice?id=980
/admin/upgrade-user?id=2
/update-role?userId=773
/post?postId=89
/comment/delete?commentId=2048
/logs?user=admin
/audit?id=777When References Are Encoded
Common encoded parameters:
Example:
Mass Enumeration Example
Download Exploitation Script
Exploiting Insecure APIs
Step 1: User Enumeration
Step 2: Escalation via Insecure Function Calls (PUT)
Combining Leaks + Writes = Complete Takeover
Last updated