So I kept asking myself… how often does a "secure" system fail because of one tiny, overlooked detail?
Everywhere in security, people talk about complex exploits, zero-days, fancy chains of vulnerabilities. But some of the most dangerous bugs in production systems are embarrassingly simple. This week, I worked through a challenge called Session Swap, and it reminded me just how much damage a single unprotected cookie can do.
Here's what it taught me.
1. A 403 doesn't mean you're locked out, it means the server is thinking.
I logged into a simulated hotel staff portal as a Front Desk Lead and tried to open the Admin Console. I got hit with an HTTP 403. My first instinct wasn't to give up, it was to ask: where is this check actually coming from? That question is the whole job in access control testing.
2. Cookies are not a safe place to store trust.
I opened DevTools and checked Application → Cookies. Sitting right there in plain text was a cookie called role, set to user. No signature. No encryption. Nothing stopping me from editing it myself.
3. One edit changed everything.
I changed the value from user to admin, refreshed the page, and suddenly I had full administrator access, staff rosters, audit logs, compliance data, and an internal memo with a sensitive reference token. No re-login. No second check. The server just believed whatever I told it.
4. This is exactly how real breaches happen.
This isn't just a CTF trick. It's the same pattern behind real-world privilege escalation incidents, OWASP ranks broken access control as the #1 web security risk for a reason. Developers assume a cookie won't be touched. Attackers know better.
5. Fixing it means trusting the server, not the client.
The real fix: never let the client dictate authorization. Use signed, server-verified session tokens, and re-check permissions on every single protected request, not just at login.
I came away with one big mindset shift: in security, the client is never trustworthy. Every request should be treated as hostile until proven otherwise.
For those of us building and testing systems in Africa, this matters even more. Many of the apps we build and maintain handle sensitive user data on tight budgets, which means basic access control hygiene isn't optional, it's foundational.
Here's a small challenge for this week: open DevTools on any app you use daily and check its cookies. See what's stored there, and whether it should be.
Come back and tell me:
- Have you ever found a security issue just by poking around in DevTools?
- What's the scariest misconfiguration you've seen in a real app?
- Should role/permission data ever live client-side, even temporarily?
I'd love to hear your experience.
Signature:
The Duchess of Hackers
Full-Stack Developer | Digital Marketer | Cybersecurity Enthusiast