Insecure Direct Object References: Weak Pseudo Random Number Generator

Insecure direct object reference (IDOR)Exploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  • UUID/GUID v1 can be predicted if you know the time they were created: 95f6e264-bb00-11ec-8833-00155d01ef00

  • MongoDB Object Ids are generated in a predictable manner: 5ae9b90a2c144b9def01ec37

    • a 4-byte value representing the seconds since the Unix epoch

    • a 3-byte machine identifier

    • a 2-byte process id

    • a 3-byte counter, starting with a random value

Examples:

Comments

No comments yet.