Reposted by alp1n3 🌲
Simple IDOR turned into an interesting question of "how do we find the IDs?"
The answer: Continuously probe ObjectId()'s from MongoDB and search through the predictable gaps!
Check out the full explanation & implementation below:
www.aikido.dev/blog/predict...
aikido.dev
Predicting MongoDB ObjectId() continuously in Rocket.Chat
Aikido's AI pentester found this file-access flaw in Rocket.Chat. A closer look at MongoDB's ObjectId() showed the weak randomness that makes it exploitable.