“How Changing false to true Got Me Paid "
The group invitation feature accepted a client-supplied boolean flag indicating whether an invited email had been added, so an attacker could mark any email address as a group member without that person accepting an invitation. This allowed adding arbitrary or other users' emails to a private group, bypassing the invitation and registration flow.
medium.com
Published on medium.com
Salam Alaykum, hunters! 🐞 I hope you’re all doing well. Today, I want to share with you an interesting bug I found while testing a really cool target: Examble.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
Impact
An attacker could add any email address to a private group without consent, potentially gaining unauthorized access or impersonating users, and completely bypassing the invitation and registration flow.
What the attacker needed
A free account; access to the group invite feature
The fix
The server should not trust client-supplied boolean flags for membership; it should verify invitations and additions server-side.
How it was found
- Create an account and set up a project.
- Use the Group Invite feature to invite a non-existent email address.
- Intercept the response and notice the 'added' field set to false.
- Use Burp Suite's Match and Replace to change the 'added' value to true.
- Observe that the non-existent email now appears as a group member.
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.
When you invite someone to a group, the app sends a request saying whether that person was added. The server should decide that itself, but here it believed whatever the browser said. By changing 'false' to 'true', the attacker made the server think the person had joined, even though they never did.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.