The Subdomain Subfinder Missed: How a German Wordlist Led Me to a Hidden Bug (and a CHF 100 Surprise)
The logout function on an energy customer portal did not terminate the authenticated session; it issued a new session cookie while the old one remained valid. An attacker with access to the old session cookie could continue using the account after the victim believed they had logged out.
Little did I know that one small change in my reconnaissance approach would uncover a hidden application, lead to an interesting authentication issue, and end with one of the most unexpected bug bounty responses I’ve received.
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 did not invalidate the existing session on logout and instead only issued a new session cookie, leaving the old session valid.
Impact
On shared or public devices, another person could use the still-valid session to access the account without re-authentication, though the program judged there was little direct confidentiality, integrity or availability impact.
What the attacker needed
A free account; access to the victim's old session cookie; shared or public device
How it was found
- Log in to the energy customer portal.
- Export the session cookie before logging out.
- Click Logout and observe the success messages.
- Restore the original session cookie and reload the application.
- Observe that the server accepts the old cookie and the account remains accessible.
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 log out of a website, the server should invalidate your session so that anyone who later gets your session cookie cannot use it. Here, the server kept the old session alive and only gave the browser a new cookie, so the old cookie still worked. This matters on shared computers because the next person could reopen the site and still be logged in.
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.