IDOR lead to unauthorized Access Organizations function
A flow-creation endpoint accepted project and environment identifiers supplied by the client without checking that they belonged to the caller, so one user could create flows inside another user's account. By harvesting leaked identifiers from archived URLs, the author could do this against many organisations at once.
Published on medium.com
«اللَّهُ� َّ صَلِّ عَلَى � حَ� َّدٍ وَعَلَى آلِ � حَ� َّدٍ كَ� َا صَلَّيْتَ عَلَى إِبْرَاهِي� َ وَعَلَى آلِ إِبْرَاهِي� َ إِنَّكَ حَ� ِيدٌ � َجِيدٌ، اللَّهُ� َّ بَارِكْ عَلَى � حَ� َّدٍ وَعَلَى آلِ � حَ� َّدٍ كَ� َا بَارَكْتَ عَلَى إِبْرَاهِي� َ وَعَلَى آلِ إِبْرَاهِي� َ إِنَّكَ حَ� ِيدٌ � َجِيدٌ».
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the project and environment identifiers sent in the request and never verified that the authenticated user had permission over them.
Impact
An attacker could create flows inside other users' and organisations' accounts, and because identifiers were publicly discoverable, this could be done at scale.
What the attacker needed
A free account; knowledge of another user's identifiers; identifiers leaked in archived URLs
How it was found
- Create a second account and open the Create Flow function to note the project and environment identifiers.
- Replace those identifiers in the saved request with values belonging to another account.
- Send the request and observe that a flow is created in the other account.
- Collect other users' identifiers from archived URLs using a command-line pipeline.
- Run a Pitchfork Intruder attack with the collected identifiers and filter for 2xx responses.
- Confirm that flows were created for those identifiers.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Every object on a website has an identifier, and the server should check that the person asking for it actually owns it. Here the server did not check, so changing the identifier in a request let one user act inside someone else's workspace. This kind of flaw is called an IDOR, short for insecure direct object reference.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.