How a Simple “Trust Gap” Logic Flaw Earned Me $200,000 and Inspired a New AI Security Engine
A support portal issued a session cookie before email verification, and the SSO integration treated that session as trusted, allowing an attacker to access internal support tickets and administrative functions. The author claims this flaw affected hundreds of organisations and earned over $200,000 in bounties.
Published on medium.com
It was the winter of 2019, and I was deep in preparation for the CSS exams (Pakistan’s Central Superior Services) with a close friend. He had been an ethical hacker for three years, and during our study breaks, he would open his laptop and dive into bug bounties.
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 SSO integration trusted any session cookie without checking whether the user's email had been verified, creating a race condition in session management.
Impact
An attacker could gain full unauthorised access to internal support portals, potentially viewing sensitive documents and, in critical cases, downloading customer databases or changing security settings.
What the attacker needed
A support portal with SSO integration; ability to register with an internal domain email; no email verification required before session issuance
The fix
The text does not state a specific fix for the described flaw, but implies that mandatory email verification and a Zero Trust approach to identity propagation should be implemented.
How it was found
- Register on the company's public support portal using an internal domain email address.
- Observe that the system issues a session cookie while still showing the email verification prompt.
- Open a new tab and navigate directly to a private endpoint such as the support tickets page.
- The SSO mechanism accepts the session cookie and grants access without email verification.
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 sign up for a service, it should not let you in until you prove you own the email address. Here, the website gave the browser a temporary pass before checking the email, and another part of the system accepted that pass as proof of identity. This let someone see private support messages and sometimes take over admin settings.
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.