← Back to Blog

November 13, 2026

Successful Bug Hunting

Background

I got back into security a few months ago after a long gap. Mostly TryHackMe rooms, a lot of reading, and trying to actually understand why classic attack techniques work rather than just running tools against intentionally vulnerable boxes. At some point that curiosity turns into wanting to test it against something real.

I picked a community platform I already used (one with an active bug bounty program) and started with the feature that was easiest to reason about: an in-site casino game. Every action (deal, hit, stay, split) fires a request to the server, and the server sends back the resulting game state. That's a clean, self-contained system to practice on: does the server trust the client, or verify everything itself?

I spent a full session on it: tampering with wager amounts, testing illegal action sequences, checking for race conditions. Every single test came back clean. The server validated balance against my actual account, rejected out-of-sequence actions, and never trusted a client-supplied value it shouldn't have. A well-built system, and a good reminder that "no findings" is itself a legitimate, useful result in security testing.

The Find

With the game logic holding up, I moved to a less exciting but statistically more promising target: the JavaScript actually shipped to regular, logged-in users. Core features tend to get the most developer attention and review, while the boring plumbing around them often gets less.

Reading through a page's JS file in the browser's DevTools, I found two fully implemented functions clearly meant for site admins (a "give badge" and "remove badge" pair, each posting to an admin-only backend endpoint). Nothing unusual about an admin function existing in a shared JS bundle; a lot of sites ship one file to everyone and hide admin UI behind CSS and server-side checks rather than serving separate bundles per role.

What stood out was which badge it controlled, and how much detail the surrounding code comments gave away. This wasn't just a cosmetic badge, it was the platform's age/identity-verification moderation flag. The comments spelled out, in plain language: the internal ID for that specific badge, that granting or removing it cascades to a user's linked alt accounts, that granting it also clears an existing "unverified age" restriction on the account as a side effect, and the exact backend function name handling all of it.

None of that needed to be visible to a non-admin session. It was sitting in a file loaded by every ordinary logged-in user, readable in a few seconds via the browser's built-in developer tools. No special access required, no bypass needed, just looking.

Why It Mattered

Most client-side information disclosure is a minor severity bump, like an internal endpoint name or a field the UI doesn't normally expose. This one was different because of what the badge actually governs: whether an account is flagged or cleared as age/identity-verified. That's not just a cosmetic setting. It's a trust/safety mechanism with real consequences for real people on both sides of it.

That changed how I approached it. The obvious next step in normal web app testing is: try calling the endpoint directly and see if the server actually checks admin privileges, or just trusts that only admins would know to call it. I didn't do that here. Confirming whether a non-admin could grant or clear that specific flag meant actually attempting to manipulate a real safety mechanism on a live platform, and the risk of that (even as a one-off test with no bad intent) wasn't worth it next to the alternative: reporting what I'd already found and letting the platform's own team check their server-side logic safely, on their own systems, with full context.

Severity and exploitability are two different questions, and you don't always need to answer both yourself before a finding is worth reporting.

The Disclosure Decision

I wrote the report around a deliberately explicit either/or, rather than asserting a vulnerability I hadn't confirmed:

  • If the backend endpoints properly re-verify admin privileges on every call, independent of whether the UI button is visible, this is an information disclosure issue (internal moderation logic, endpoint names, and cascade behavior simply shouldn't be readable by non-admin clients, regardless of enforcement elsewhere).

  • If they don't re-verify, it's a privilege escalation vulnerability that would let a non-admin trigger or clear a safety flag (something I explicitly chose not to test given what it touches. A few other things shaped the writeup):

  • I said plainly that I hadn't tested it, and why (information the triage team needs to prioritize correctly).

  • I included the exact code and screenshot, not a paraphrase. Evidence beats description every time; let them verify against their own source.

  • I reasoned about my own confidence level before submitting, not after. I'd already seen this team validate currency logic carefully elsewhere, so I noted upfront that I thought server-side enforcement was likely solid, rather than overstating the finding as a confirmed exploit to make it sound more impressive.

Outcome

The report was accepted, and it turned into my first credited security finding, along with recognition on the platform's own bounty program. For a few months into getting back into this field, that was a genuinely great feeling.

A few hours later I also got a follow-up notification that the fix had been shipped and verified (the admin-only code path was no longer reachable from a non-admin session). That closed the loop nicely: not just “thanks, fixed” but actual confirmation that the thing I’d flagged was checked and resolved, which is exactly how responsible disclosure is supposed to go from start to finish.