Business Logic Flaw Allows Delegated Users to Hide Messages Using
A delegated user could set both archive and trash flags to true on a message, causing it to disappear from all folders in the account owner's view. This allowed the delegated user to secretly send and hide messages without the owner's knowledge.
Published on medium.com
When I test an application, I always start by understanding how it works and what features exist. This step is very important, but many beginner bug hunters ignore it.
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 backend allowed the archive and trash flags to both be true simultaneously, and the UI had no folder to display such a message.
Impact
A delegated user could hide messages from the account owner, enabling silent misuse of delegated access and breaking trust and transparency.
What the attacker needed
Victim enables delegation; attacker has delegated access
The fix
The backend should enforce exclusive message states and prevent archive and trash from both being true at the same time.
How it was found
- Log in as the victim user.
- Enable delegation and grant full account access to the attacker user.
- Log in as the attacker user using the delegated access.
- From the victim's account, send a new message or select an existing one.
- Mark the message as both archived and trashed.
- Observe the message is not visible in Inbox, Archive, or Trash; changing one state makes it reappear.
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.
The app lets you delegate access to someone else, like an assistant. That person could mark a message as both archived and trashed at the same time, which made it vanish from every folder. So the assistant could send messages and hide them, and the account owner would never see them.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.