Executive summary
What we were asked to do
A defense ministry asked us to attack its public web estate and prove what an adversary could actually do — not list theoretical weaknesses, but obtain evidence. That "proof by exploitation" framing shaped everything: a finding was only reported as confirmed if we had a captured artifact, and a chain was only reported as proven if we reached an impact we could show.
The estate was large and unusually fragmented — individual service branches and the procurement function all run their own infrastructure under a shared domain, across commercial hosting providers and government networks.
Principal findings
We proved two of five attempted crown-jewel outcomes and honestly blocked the other three. The two proven: a service-branch historical archive serving more than 10,000 restricted documents with no authentication whatsoever, including full-resolution scans of early-twentieth-century records — and a ministry AI assistant that any anonymous caller could use without limit, burning metered inference budget with no account and no rate control. The three blocked: a WordPress data breach and a plugin privilege-escalation chain, both stopped by a network-level block on the hosting cluster we could not route around, and a content-management control-plane takeover where we proved the session-theft mechanism live but could not complete the final step without an administrator's browser.
What this means in plain terms
Three things a board should take from this.
- A public archive with no authentication is the most common serious finding in government estates, and it is the easiest to miss. Nobody thinks of an archive as an application. It has no login box, so no one tests whether it needs one. Ten thousand historical military documents — message traffic, unit records, operational orders — were downloadable by anyone with a browser and enough patience to count upward.
- AI assistants inherit the security of the system around them, which is usually none. The ministry chatbot required no login, issued unlimited anonymous sessions, and each session came with a fresh quota of ten generations. Ten seconds of scripting turns a capped free service into an uncapped one. The cost is not abstract: it is a metered bill on someone's cloud account, growing with every request.
- Honest blockers are as valuable as proven findings. Three of our five chains stopped at a network boundary. We did not round those up into "potential breach" language. Each states exactly what was confirmed, exactly what stopped us, and exactly what an operator would need to provide to finish the job — including a note that the same cluster was demonstrably live from other vantage points the same day.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | A restricted military archive serves 10,000+ documents with no authentication | These are historical records, but they are military records. Someone must assess classification, disclosure obligation, and whether the exposure has been accessed. The technical fix is a single authorization check; the institutional question is not. | Records authority + security + legal |
| 2 | An AI assistant grants unlimited anonymous inference | Each request costs money and each conversation is retained. The cost is unbounded and the retention is a privacy exposure. The fix needs a product decision about whether anonymous use is intended at all. | Product owner + procurement |
| 3 | A hosting cluster is unreachable from outside but demonstrably live from other vantages | This is a network-architecture finding, not a vulnerability. It is also fragile: an access-control list is the only thing between the internet and nine WordPress installations with a documented route-bypass. That deserves verification from a second egress rather than reliance on the block. | Network operations |
| 4 | An administrative interface runs over plaintext HTTP with no rate limiting | Twenty credential attempts produced no lockout, no delay, and no challenge — and the credentials crossed the network unencrypted. The absence of rate limiting was confirmed; the absence of TLS is a configuration decision someone should own explicitly. | Platform owner |
| 5 | Multiple WordPress installations share one origin without verified database isolation | If the installations share a database, one administrative session reaches all of them. We could not verify either way. An unverified isolation assumption across nine properties is a risk decision. | Infrastructure + platform |
What we did not get
We did not obtain administrative control of the content management system, did not complete either of the WordPress chains, and did not access the ministry's core network. The archive exposure was read-only and limited to sampled documents; the AI abuse was bounded deliberately — eight sessions minted, 46 generations executed, then stopped.
One qualification that matters: the two proven chains are genuine impacts with artifacts, but neither is a breach of a classified system. The archive is historical. The chatbot is public-facing by design. We are being precise about this because a defense client's report will be read by people who will reasonably ask "was anything actually compromised" — and the honest answer is that two public-facing systems were, and nothing behind them was.
Engagement outcome
An authorized security assessment of a defense ministry's public web estate confirmed that a historical archive served restricted documents without authentication, and that a public AI assistant permitted unlimited anonymous use. Two further chains were blocked by a network-level access control that prevented testing to completion from the assessment vantage point. All findings were disclosed under a confidentiality agreement with a proof artifact for every confirmed item.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active days | 5 |
| Active machine time | ~13 hours of dense execution |
| Orchestration waves | 81 |
| Total Swarm Size | 442 |
| Root workstreams | 4 |
| Distinct agent roles | 6 |
| Tool calls executed | 13,210 |
| HTTP probe operations | 1,645 |
| Shell commands | 3,979 |
| Recon planning operations | 469 |
| OSINT lookups | 147 |
| Messages exchanged | 9,734 |
| Artifacts produced | 17,358 |
| Client-deliverable artifacts | 47 |
| Crown jewels proven | 2 |
| Crown jewels blocked (named blocker) | 3 |
| Documents found unauthenticated | 10,000+ |
| Core network access | None |
The 442 sessions are dominated by recon — 332 of them — because the estate spanned multiple service branches and procurement infrastructure that had never been catalogued together. Recon was the bulk of the work and the reason the two proven findings were findable at all.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Recon | 332 | Estate discovery, per-host investigation, schema mapping, OSINT |
| Scout | 58 | Door probing, hypothesis surfacing |
| Hunter | 45 | Exploitation and proof assembly |
| Orchestrator | 3 | Wave design, merge, evidence-standard enforcement |
| Advisor | 3 | Independent review, blocker adjudication |
| Interactive | 1 | Operator consultation |
Wave timeline
| Wave | Focus | Outcome |
|---|---|---|
| 1 | Estate recon: DNS, OSINT, HTTP triage across all service branches | Surface catalogued; five hosting clusters identified |
| 2–3 | Host-depth nesting per property | Schemas, forms, auth surfaces mapped |
| 4 | Door probing and hypothesis surfacing | Archive and AI assistant promoted as candidates |
| 5 | Deep exploitation: archive enumeration, AI quota analysis | Both proven with artifacts |
| 6–8 | Control-plane attempts, WordPress chains, blocker adjudication | Mechanism proven, terminal steps blocked |
2. What held
The estate's defensive picture was mixed and worth stating precisely.
- An enterprise CDN fronted the highest-value properties. Fifteen ministry hosts sat behind a commercial edge with a shared multi-name certificate. Every attempt to reach an administrative or session surface there was blocked. No chain we proved reaches those hosts.
- Multi-factor-gated documentation services. An adjacent service sharing an origin with the AI assistant was mTLS-gated. The AI assistant's credentials did not replay there — a per-application secret kept the blast radius contained.
- Network-level access control on the largest WordPress cluster. Twelve installations across two addresses were unreachable at TCP from our vantage, with DNS resolving normally and traceroute dying at the provider peer. That is an access-control list doing its job, not a WAF and not a failure.
- No default credentials anywhere. Not on any of the twelve WordPress installations, not on the archive CMS, not on any administrative interface.
The network-level block deserves specific comment because it is the most interesting defensive fact in the engagement. It is not sophisticated — an access list, nothing more — and it defeated two of our five chains completely. It also came with a caveat we verified independently: the same cluster answered requests from other vantage points on the same day. So the control works, and it is the only thing between the internet and nine WordPress installations with a documented route-bypass. That is a thin margin worth knowing about.
3. The findings that mattered
How the estate was mapped
The pattern worth noting: the two proven findings were on hosts with no CDN in front of them. Every host behind the enterprise edge held. Every host running as a direct origin had something.
3.1 A service-branch historical archive serving 10,000+ restricted documents without authenticationCritical
In plain terms. A service branch's historical archive runs on an ASP.NET document-management portal. It has a public viewer for archive documents and a file tree underneath it. Neither checks whether you are allowed to see what you are asking for.
We confirmed this three ways: a document viewer that accepts any numeric identifier and returns the document, a file path that serves the full-resolution scan directly from the web server with no authentication, and a boundary test proving the restriction is presentation-only rather than enforced.
What. A public document viewer on the archive host accepted sequential numeric identifiers and returned full document views with no session, cookie, or credential. The viewer output disclosed the archive's internal path structure, which made direct PDF retrieval trivial. The underlying file path served complete scans directly from the web server's static handler, entirely bypassing whatever authorization the application layer might have had.
How we found it. The method here is the finding, because the vulnerability is not subtle — it is that nobody looked.
First, the viewer was reachable and parameterized. A request with a numeric identifier returned a document. No login prompt, no redirect, no error.
Second, we tested the boundary rather than assuming it. The important test was distinguishing an enforced restriction from a cosmetic one:
- Requesting an identifier far outside the range returned a redirect to the home page.
- Requesting a different out-of-range identifier returned a successful response with a "no rights" message — not a forbidden error.
That second result is decisive. A system with real authorization returns a denial status. A system with presentation-only restrictions returns a friendly page. The archive returns the friendly page.
Third, bounded enumeration to prove scale. We probed 52 identifiers at roughly one request per second from a single identity: 50 returned documents, two did not, zero errored. The hit pattern spanned the head, middle, and tail of the identifier range — which establishes that the full space is enumerable rather than a lucky contiguous block.
Fourth, direct file retrieval. Requesting a PDF path obtained from the viewer returned a complete scan served by the web server's static handler with no authentication check at all. We downloaded seven sample documents spanning the corpus and hashed each, leaving the sources in place.
Root cause. The file-serving layer has no authorization check. Authorization, where it exists at all, lives in the application's presentation logic — which means the underlying files are unprotected and the application merely declines to show you a link. This is a classic pattern in content-management products: the portal implements access control in the view, not in the access path.
Impact. More than ten thousand military historical records readable by anyone: message traffic, unit records, movement logs, and operational orders spanning several decades of the early twentieth century. Documents up to several megabytes at full resolution. No authentication at any layer. The exposure is read-only and historical rather than operational — and it is still a breach of a restricted military archive.
Fix. Enforce authorization at the file-serving layer, not in the presentation logic. The application-layer fix is straightforward; the institutional work — classification review, disclosure assessment, and access-log review to establish whether this has been harvested — is the larger task.
Kill chain. Complete, from discovery through exfiltration.
3.2 An AI assistant granting unlimited anonymous inferenceMedium, proven cost abuse
In plain terms. The ministry runs a public AI assistant that answers questions about defense administration. It requires no login. Each anonymous visitor is meant to get ten questions, after which the service refuses.
The ten-question limit is enforced per session, and sessions are free. Requesting a new session mints a new anonymous identity with a fresh quota of ten. Repeat. The documented abuse-prevention control — the ministry's terms of use explicitly describe the cap as a resource-allocation measure — is a speed bump with no throttle behind it.
What. An unauthenticated session-mint endpoint issued signed tokens for anonymous identities with a ten-generation budget each, with no IP-based, device-based, or global rate limiting. Rotating the session reset the budget immediately. The service was backed by a metered commercial language-model API, so each generation carries real token cost and each conversation is retained under a twenty-day retention policy.
How we found it. By treating the quota as a state machine rather than a wall.
First, mint a session and count. The session endpoint returned a signed token and a CSRF cookie without any credential. Generations succeeded until the eleventh, which returned a "reached maximum tries" error.
Second, check whether the error is per-identity or per-consumer. Minting a second session produced a different anonymous identifier and the counter reset. Repeating this eight times produced eight distinct identities and eight fresh budgets, each confirmed terminal on the eleventh generation.
Third, measure the actual throughput. Forty-six generations executed in 142 seconds, with 44 returning real model output including retrieval citations. Median latency 2.7 seconds per generation. That establishes a real cost rate rather than a theoretical one.
Fourth, stop deliberately. We halted at eight sessions and 46 generations. The projection in the report — roughly a quarter of a million generations per day from ten concurrent abusers — is arithmetic from the measured rate, not an extrapolation from a hypothesis.
Root cause. The quota was implemented as per-session state with an anonymous, freely mintable session. Any per-session limit is only as strong as the cost of obtaining a new session, and here that cost is one unauthenticated request.
Impact. Unbounded metered cost on the ministry's commercial model account, plus unbounded chat retention. The measured run consumed roughly 37,000 tokens; the day-scale projection at a ten-attacker concurrency is in the low thousands of dollars on a larger model. The abuse-prevention control in the terms of use is defeated entirely.
Fix. Require a session to cost something — an authenticated identity, a proof-of-work challenge, or an IP-and-device scoped budget. A per-session quota over freely mintable sessions is not a control.
Kill chain. Complete through objective.
3.3 A control-plane takeover with the mechanism proven and the terminal step blockedHigh, mechanism only
In plain terms. This is the chain we could not finish, and the reason is worth understanding.
The archive from 3.1 has an administrative interface on the same server. We proved two things about it: a reflected cross-site scripting flaw that would let an attacker run code in an administrator's browser session, and a complete absence of rate limiting on the admin login, which also runs over unencrypted HTTP.
Together those are a session-theft path: inject into the admin's browser, read their session cookie, and take control of the content management system. We proved the injection executes live, in a real browser, in the archive's origin. We proved the cookie inventory and that an authenticated fetch from that origin succeeds. We could not take the final step, because that requires an administrator to be logged in — and we do not have one.
What. A reflected cross-site scripting flaw in the archive search, where a submitted value was re-rendered into an HTML attribute without encoding. Separately, an administrative login over plaintext HTTP with no rate limiting, no lockout, and no challenge across twenty bounded credential attempts.
How we found it. The injection proof required working around two server-side transforms, which is the interesting part.
The first attempt used braces, which the server's string formatting rejected as invalid. The second used angle brackets, which the search layer entity-encoded. We settled on a payload form whose quoting survives both transforms, and validated it in a headless browser against the live target with a neutral canary identifier. The probe wrote its results only into local DOM attributes — no exfiltration — and confirmed script execution, the cookie inventory, and that a same-origin authenticated fetch to the admin path returned a login-context response.
The twenty-attempt brute was deliberately bounded to one request per second with regionally plausible credential pairs, and produced twenty failures with zero lockouts. That absence of a control is the finding; the credential guess failing is not.
Root cause. Two independent weaknesses on the same host: an output-encoding failure in a public search form, and an administrative login with no throttling and no transport encryption.
Impact. Proven capability without proven terminal impact. An unauthenticated attacker can execute script in the archive origin in any administrator's browser; that is the mechanism for full control of the content management system whose public face leaks the document corpus from 3.1. The data breach becomes the least interesting thing an admin session would reach.
Fix. Encode output in the search form. Add rate limiting and lockout. Put the administrative interface behind TLS. All three are standard, and all three are independent of whether the terminal chain is ever completed.
Kill chain. Full chain drawn, with the terminal hop explicitly marked blocked.
3.4 Two WordPress chains blocked by a network access controlDeferred, not disproven
In plain terms. We found a route-bypass that exposes WordPress content on nine installations, and a plugin privilege-escalation chain whose version was confirmed present. We could not test either, because the hosting cluster silently drops connections from our vantage point.
This is reported as deferred, not as a finding and not as a dead end. The distinction matters: the surface was confirmed by recon, the bypass was confirmed on hosts we could reach from elsewhere, and the block is an engineering obstacle with a known workaround (a different egress point).
What. Twelve WordPress installations across two addresses accepted ?rest_route= requests as a bypass of an Apache rule blocking the literal /wp-json/ path. Recon from an earlier vantage confirmed unauthenticated reads on six of them — post counts, page counts, media inventories in the thousands, and author-identifier disclosure. A separate plugin (version confirmed on two hosts) sits inside the affected range for an unauthenticated privilege-escalation chain.
How we found it. The bypass itself is a rule-matching observation: the edge blocks a path prefix, and WordPress accepts the same routes via a query parameter. That is confirmable from any vantage that can reach the host.
The blocker is worth describing precisely because it was diagnosed rather than assumed. Connections timed out at TCP with no response; the DNS resolved correctly; traceroute reached the provider's core and stopped; and a second probe tool returned no data. Crucially, two other hosts in the same estate answered normally, which establishes the block is target-side rather than a limitation of our network. Independent OSINT the same day showed the cluster answering requests from other vantage points. So: the cluster is live, the block is real, and it is specific to us.
Root cause of the deferral, not the vulnerability. A network-level access list at the hosting provider, specific to our source address.
Impact. Undetermined, because undemonstrated. Recon established that thousands of media objects and hundreds of posts and pages are readable unauthenticated on six installations. Whether the privilege-escalation chain works depends on a form precondition we could not verify live — and the one form we could inventory lacked the required field, which is evidence against the chain rather than for it.
Fix. Remove the path-prefix rule in favour of authenticated access. Patch the plugin. And treat the network access control as a compensating measure to be replaced, not relied upon.
Also confirmed
| Finding | Severity | Note |
|---|---|---|
| Administrative login over plaintext HTTP | Medium | No TLS, no HSTS on the archive admin interface |
| No rate limiting on administrative login | Medium | Twenty bounded attempts, zero lockouts, zero challenges |
| Version disclosure on a plugin debug endpoint | Low | Exact platform, PHP, and plugin versions in a JSON response |
| Author-identifier disclosure via content API | Low | Enables targeted credential attacks |
| Neighbouring host exposing a graph database browser | Low | Unauthenticated interface in an adjacent range; proof payload held pending authorization |
4. Kill chain summary
| Chain | Reached | Terminated at | Artifact |
|---|---|---|---|
| Archive IDOR | Stage 6 (exfiltration) | Read boundary | 7 hashed PDFs |
| AI quota abuse | Stage 7 (objective) | Deliberate stop at 46 generations | Session log, 8 tokens |
| Control plane | Stage 5 (collection) | No administrator session available | Live XSS proof, cookie inventory |
| WordPress bypass | Stage 2 (weaponize) | TCP dropped at hosting provider | Recon reads from prior vantage |
| Plugin escalation | Stage 2 (weaponize) | TCP dropped + form precondition absent | Version confirmation only |
5. What the shape of this engagement teaches
Proof bar discipline is the whole value of a defense engagement. Every claim in this report carries either an artifact or an explicit label saying what is missing. Two chains are proven. One is a proven mechanism with an unproven terminal step. Two are deferred with named blockers. That ledger is what makes the two proven findings credible — a report where everything is critical and nothing is labelled is a report nobody can act on.
The two proven findings were on hosts with no CDN in front of them. Fifteen hosts behind an enterprise edge held completely. Two hosts running as direct origins each had a serious problem. Edge infrastructure is not decoration — but it only protects what routes through it, and the properties that skip it are disproportionately the ones that need it.
A boundary test is not a presence test. The archive "had" an authorization concept — the viewer displayed "no rights" for some identifiers. Testing whether that concept is enforced required comparing the response to an out-of-range request against a genuinely forbidden one. A friendly page and a 403 are not the same answer, and only one of them means the control works.
Per-session limits are not limits when sessions are free. The AI assistant implemented a quota as session state. Minting a session cost one unauthenticated request. That is not a control, it is a suggestion — and the documented intent of the control (resource allocation) is defeated by a two-line script.
Blockers deserve the same rigour as findings. The WordPress deferral documents the TCP symptom, the DNS resolution, the traceroute endpoint, the control hosts that answered normally, and independent OSINT showing the cluster live from elsewhere. That evidence is what distinguishes "our tooling could not reach it" from "someone else's network is blocking us," and the difference determines whether the client prioritises a different egress point.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Enforce authorization at the archive's file-serving layer | Ten thousand restricted documents are readable right now | Low |
| 2 | Begin access-log review and classification assessment on the archive | Establishes whether the exposure has been harvested and what disclosure is owed | Organisational |
| 3 | Encode output in the archive search form | Closes the XSS mechanism behind the control-plane chain | Very low |
| 4 | Add rate limiting, lockout, and TLS to the administrative interface | Removes the brute and interception legs on the same host | Low |
| 5 | Require a non-free identity for AI assistant sessions | A quota over mintable sessions is not a control | Low |
| 6 | Verify the WordPress cluster from a second egress point | Nine installations with a confirmed route bypass sit behind one access list | Low |
| 7 | Replace the path-prefix rule with authenticated access; patch the plugin | The rule is a bypassable control, not a fix | Medium |
| 8 | Verify database isolation across the co-hosted WordPress installations | An unverified shared-database assumption spans nine properties | Medium |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement with the system owner. All testing was confined to in-scope properties, and the rules of engagement required proof-by-exploitation: findings were to be reported as confirmed only with a captured artifact, and chains as proven only on demonstrated impact.
Bounded testing was applied throughout. Archive enumeration was rate-limited to approximately one request per second from a single identity and capped at 52 probes. The AI assistant abuse was stopped deliberately at eight sessions and 46 generations. Administrative credential attempts were capped at twenty with regional plausibility. No document was deleted or altered, no account was created, no administrative session was hijacked, and one adjacent finding's proof payload was drafted and held pending explicit operator authorization rather than executed.
Redaction
Every hostname, IP address, credential, identifier, and service name in this document has been replaced with a placeholder or generalised. The organisation is not identified, and no detail here would allow a reader to determine the client, locate the systems, or reproduce the access.
What was removed:
- All hostnames, subdomains, and service-branch property names
- All IP addresses, subnets, ASNs, and hosting provider identities
- All credentials, tokens, and JWT values
- Organisation, country, and armed-service identifiers
- Document titles, archive codes, and file paths from the exposed corpus
- Third-party product and plugin names — generalised to "content-management system," "document portal," and "membership plugin"
- Vendor model and platform names behind the AI assistant
- Personal names and individual identifying details
- Exact calendar dates and clock times — replaced with wave and relative-day numbering
- Identifier ranges, document counts by specific range, and internal path structures
What was kept, deliberately: vulnerability classes and MITRE technique identifiers, the evidence standard (particularly the boundary-versus-presence distinction and the quota state-machine analysis), and the blocker diagnostics. These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
defense.example | Ministry domain and estate |
archive.branch.defense.example | Service-branch historical archive host |
assistant.defense.example | Public AI assistant |
cluster-a.defense.example, cluster-b.defense.example | WordPress hosting clusters |
content-management system | The document portal product on the archive host |
membership plugin | The plugin with the confirmed vulnerable version |
<redacted> | Any credential, token, address, path, or identifier |
Data handling
No document content is reproduced. The exposed corpus is described by category only — never by title, archive code, era, or file path. No sample document name appears. No conversation content from the AI assistant is reproduced. No credential or token value appears.
Disclaimer
Findings reflect the state of the tested systems during the assessment window. Security posture changes; a finding here does not imply the condition persists today, and remediation status is not asserted.
Three chains are reported with explicit incompleteness. The control-plane chain proved its mechanism live and did not reach its terminal step. The two WordPress chains are labelled deferred rather than confirmed or refuted, because a network access control prevented testing from the assessment vantage point — and separately, the one form precondition we could inspect was absent, which is evidence against one of those chains. Readers should treat deferral as "unknown," not as "likely."
Methodology and tooling by BlackBit. Findings artifact-backed; blockers diagnosed and named rather than rounded up or written off. Published with the client's permission.
← All case studies