One Day in a Bug Bounty Programme: Scope, Source Code and a Report to CERT Polska

A national bug bounty programme, one day of work and a report that left the machine before the next morning.

The discipline of authorised security research is the subject of this article: not the drama of breaking in, but the boring sequence that decides whether the work is worth anything, which is reading the rules, mapping the surface, reading the vendor's own source, proving the flaw on your own hardware and writing it up so a stranger can repeat it.

1. Why I Entered a National Programme

CERT Polska, which sits inside NASK, runs a bug bounty programme with a pool of one million zloty and individual rewards up to twenty thousand. The current edition opened on 3 November and closes on 30 November 2026. It is a legal, structured route into security work, which matters more than the money. Most people who want to move into security have no evidence they can do it, and a programme like this hands you a scoreboard that is not self-assessed.

I run operations across more than thirty locations, so my interest is practical rather than academic. Every system I touch in a working week is a system somebody else built and somebody else is maintaining on a budget. Reading how a professional product handles authorisation teaches you what to demand from the software you buy. The programme is also the raw material for a professional story: what I tested, what I found, what I got wrong.

2. The Rules Decide What Counts

The first task is never technical. It is reading the programme page properly: which hostnames are in scope, which are explicitly excluded, the reward table, the rate limit, and the list of findings that will be rejected no matter how clever they are. That exclusion list is where most beginners lose their time. Missing security headers, HSTS configuration, TLS versions, version disclosure, stack traces, directory listings, user enumeration and scanner output with no manual confirmation are all excluded here, and rightly so.

The stakes are not theoretical. Three rejected submissions in a row can get a hunter blocked, and the block carries across editions. So every candidate has to pass three questions before it earns a minute of work. Is this class of bug paid for, can I demonstrate it with a proof I ran myself, and does it damage confidentiality, integrity or availability in a way a business would feel. If any answer is no, the finding stays in the notebook.

3. Mapping a Target Without Touching It

The reconnaissance phase is read-only and boring on purpose. Certificate transparency logs give you every hostname that has ever held a certificate for the domains in scope. That sweep produced thirty-one names. Nine answered as live services, twenty-four were dead with no DNS record at all, and none of the dead ones were dangling pointers at a third-party service, which is the pattern that enables subdomain takeover. Zero dangling CNAMEs means that entire category was closed before it cost me anything.

The next pass is fingerprinting, a handful of requests per host. Server headers, cookie names, the shape of a 404 page and the title of the login screen tell you what you are dealing with. A default Flask 404 on a custom application is a much better sign than a marketing page behind a content delivery network, because custom code is where custom mistakes live. One public endpoint returned the exact product version, which is not itself a payable finding but decides the entire strategy that follows, because a version number tells you whether you are hunting a known flaw or reading fresh code. Everything in this phase is a read: no payloads, no writes, nothing that changes state on somebody else's system.

4. Version 2.20.0 and the Advisories That Closed Easy Doors

The main application in scope is mwdb, a malware analysis platform that CERT Polska publishes as open source. The live instance reported version 2.20.0. That number ended one line of attack immediately: the project's own security advisories list three 2026 vulnerabilities already fixed in this release, so hunting a known CVE against this host would have produced nothing but a rejection for lack of a working proof.

Two other easy doors closed in the same afternoon, and both are worth naming because they are the ones people brag about. A Flask session cookie was decoded and tested against a wordlist of six hundred and eighty-two candidate secrets. No key. A file endpoint that serves results by a long hexadecimal identifier turned out to use a 256-bit token rather than a guessable sequence, which is correct design, not a bug. Reporting either of those would have been a waste of a submission slot.

5. The Turn: Read the Fix, Not the Bug

The productive move came from reading the release notes rather than the attack surface. Version 2.19.0 carried a security fix for a flaw where the remote instance proxy did not verify authentication at all. The developers added an authentication check and stopped there. The proxy still forwards whatever HTTP method and whatever path the caller supplies to the remote instance, and it authenticates that forward with the service API key from the local configuration. The only additional gate is a permission check that covers four file download paths.

That is a confused deputy: the local instance never asks what the caller is allowed to do, and every forwarded request runs with the identity of the remote service key. The same class of abuse that was once available to anyone on the network was now available to any registered account. The vendor's own advisory did the argumentative work for me, because it named the impact and the precondition, so the report only had to show that the precondition still applied in the current release. A patch is not the same thing as a fix.

6. Two Containers Instead of One Production System

A code reading is a lead. A finding I have executed is a report. So the next step was to stand up the exact release locally with the same feature flags the production banner reported, and prove the flaw against two instances instead of one live system. Two containers of the official image, one on port 8098 and one on port 8099, with separate databases and a separate cache each, because a shared cache mixes sessions and produces a result that proves nothing.

The evidence had to be a pair, not a single screenshot. The control was a direct request to the second instance from an account with no rights there, which returned 403 and changed nothing. The attack was the same intent sent through the proxy on the first instance, which returned 200 and changed the permissions of a default group on the second. The signed-in user who triggered it had no account on the target instance at all. That contrast is the difference between a missing check and a feature that does not exist.

7. A Second Model Before the Send Button

Before anything left the machine, the draft went to a different model for an adversarial read. That review changed three things that would have damaged the submission. The title was reframed, because "incomplete fix of a published advisory" invites a rejection when the advisory only ever promised the narrower thing it delivered. The severity came down from high to medium, because exploitation needs a precondition the documentation neither requires nor forbids, and an inflated score is the fastest route to a closed ticket.

The third change was the fix description. My first version guessed at an allowlist of paths the proxy should accept. Reading the frontend code showed what the interface genuinely sends through the proxy, which is listings, object details, tags, comments, relations and download tokens, and never a write operation. The correction was to drop the write handlers entirely, keep reads and download tokens, and refuse everything else. A fix proposal that would break the product is not a contribution.

8. What Went to CERT and What Comes Next

The report left by mail, in English and then in Polish, because a Polish programme deserves the version that triage can read without translation. Both messages carry the same finding, the same numbered reproduction steps and a plain statement in the Polish copy that it is not a second discovery. Both went to the programme contact address with a copy to my own mailbox, and both were built in a consistent branded format with the raw evidence attached so nobody has to trust a summary.

What I will not do is publish the details while the system is still exposed. The endpoint, the payload and the exact reproduction steps stay in the report and out of this article until the vendor ships a fix. The programme runs until 30 November, so the remaining work is the unverified surface: a mail verification feature that makes outbound requests on user input, and the rest of the open source products in the second scope tier. The useful lesson from this day is narrower than a good story. Read the rules, read the source, prove it locally, and let a second opinion argue with you before a stranger does.

Tags

#technology #engineering