IDOR

Insecure Direct Object Reference

This vulnerability occurs when user-controlled parameter values (IDs, filenames, etc.) are used to directly access resources without proper authorization checks.

Basic IDOR Testing

Prediction for Increased Severity

Once IDOR confirmed, use prediction to find more Object IDs

MongoDB Object IDs Prediction

MongoDB Object ID Structure

Length: 12 bytes (24 hexadecimal characters)

Components Breakdown

  1. Timestamp (4 bytes):

    • Updates every second

  2. Machine Identifier (3 bytes):

    • Remains constant for same physical/virtual machine

    • Only changes if database moves to different machine

  3. Process ID (2 bytes):

    • Only changes when MongoDB process restarts

    • Stays constant during normal operation

  4. Counter (3 bytes):

    • Incremental counter

    • The main variable component

Last updated