Executive summary
What we were asked to do
A national public-sector organisation asked us to assess one of its public-facing services. That scope turned out to be a doorway rather than a destination: the service lived inside a shared government domain, and mapping the domain revealed seventy distinct public web services operated by different agencies under one namespace.
We assessed from an unauthenticated, internet-facing position with no credentials of any kind. Every finding in this report was obtainable by anyone with a browser.
Principal findings
The engagement recorded twenty-one confirmed findings, and the pattern is the story rather than any single item. One identity provider anchors trust for many services, and its public configuration permits credential disclosure and unrestricted cross-origin reads. A national mapping service runs a release with known code-execution vulnerabilities and leaves its administrative interface open. A one-time passcode system returns the passcode in its own API response. Two injection points in a support portal return data rows. A records backend serves citizen feedback containing names, email addresses and phone numbers to anonymous callers. And there is no web application firewall or CDN in front of a single probed host — which is why a moderately-patched estate with one shared trust anchor and no filtering layer behaves like a soft target regardless of how each individual service was built.
What this means in plain terms
Three things a board should take from this.
- The risk is the shared trust anchor, not the seventy websites. Each agency built its own service. But they federate identity to one provider and present one wildcard certificate. So the estate's security posture is the posture of its weakest shared component, multiplied by the number of services that trust it. Fixing individual sites while leaving the anchor exposed is rearranging furniture.
- The absence of an edge layer is an estate-wide decision, and it compounds everything else. Not one probed host sat behind a filtering layer. That means every unpatched component is directly reachable, every enumeration endpoint is unthrottled, and there is no shared place to block a class of attack. This is the single highest-leverage structural change available.
- Version staleness is the estate's characteristic failure mode. Unsupported content-management releases, end-of-life language runtimes, dated application servers, and an obsolete document-service cluster. Not one of these is exotic. Collectively they describe an estate where patching is under-resourced rather than a technical problem.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | The identity trust anchor discloses credential material publicly, and accepts cross-origin credentialed reads | Every service that federates to this provider inherits the exposure. The fix is one component; the consequence spans the estate. This is the item to fund first. | Executive + identity platform owner |
| 2 | No web application firewall or CDN fronts any assessed host | This is a procurement and architecture decision, not a code change. Its absence converts every unpatched component into a directly reachable target and removes the one place a class of attack could be blocked centrally. | CIO / infrastructure leadership |
| 3 | A mapping service with known code-execution vulnerabilities has open administrative surfaces | We confirmed capability and deliberately did not fire the exploit, because it threatens a production public service. You have a narrow window in which to patch before someone with less restraint finds it. | Platform owner + risk |
| 4 | A citizen-facing records backend serves personal data without authentication | Names, email addresses and phone numbers were returned to anonymous callers. Beyond the fix, someone must assess whether this has been harvested and what disclosure obligation applies. | Data protection + legal |
| 5 | An OTP system returns the passcode in its own response | It removes the second factor entirely for that service's registration and recovery flows. This is a design failure rather than a bug, and the service's threat model should be revisited. | Service owner + security |
What we did not get
We established no authenticated session on any host. No staff, administrator, or citizen role was tested. No bulk data collection occurred — where a records backend returned data, individual rows were retrieved on demand and the assessment stopped. No code-execution exploit was fired.
The most important limitation is documented, not implied: thirty-seven of the seventy mapped surfaces had not completed host-depth assessment when the evidence record closed. Absence of a finding on those hosts means nothing.
Engagement outcome
A black-box assessment of a national public-sector digital estate identified critical and high-severity weaknesses across twenty-one confirmed findings, concentrated in shared identity infrastructure and unpatched public services. No authenticated access was obtained on any system and no bulk data collection occurred. All findings were disclosed under a confidentiality agreement with a prioritised remediation roadmap and per-finding retest criteria.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active machine time | ~30 hours |
| Total Swarm Size | 624 |
| Root workstreams | 7 |
| Distinct agent roles | 7 |
| Tool calls executed | 30,362 |
| HTTP probe operations | 4,306 |
| Shell commands | 10,847 |
| File reads | 8,192 |
| Recon planning operations | 627 |
| Schema operations | 354 |
| Messages exchanged | 20,253 |
| Candidate hostnames | 732 |
| Live hosts | 469 |
| Distinct surfaces after de-duplication | 70 |
| Hosts with at least one confirmed weakness | 30 |
| Confirmed findings in the engagement ledger | 21; section 3 presents selected findings |
| Informational observations | 3 |
| Surfaces assessed in depth | 33 of 70 |
| Bulk data exfiltration | None |
The 33-of-70 figure is the number that governs how the report should be read. Half the mapped surface had not completed host-depth assessment when the evidence record closed. That is stated in the limitations, not tucked away.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Recon | 489 | Estate mapping, host-depth nesting, schema and auth surface |
| Scout | 75 | Door probing, surface promotion |
| Hunter | 48 | Exploitation and proof assembly |
| Orchestrator | 7 | Wave design, merge |
| Research | 3 | Deep-angle investigation |
| Verification | 1 | Independent re-check |
| Library | 1 | Reference retrieval |
Wave timeline
| Wave | Focus | Outcome |
|---|---|---|
| 1 | Passive enumeration: certificate transparency, DNS, third-party scans | 475 candidates, 403 resolved, no dangling records |
| 2 | Active mapping and fingerprinting | Estate reduced to 70 distinct surfaces; no edge layer identified |
| 3 | Standardized probing across in-scope surfaces | Auth, injection, access control, misconfiguration, dependency checks |
| 4 | Proof of impact on selected findings | Captured evidence for 14 detailed findings |
| 5 | Estate consolidation and coverage assessment | 30 hosts with confirmed weaknesses; 33 surfaces depth-assessed |
| 6 | Client report assembly | Findings reconciled, de-duplicated, prioritised |
2. What held
The estate had genuine strengths, though fewer than most.
- Federation was actually implemented. Multiple services did federate authentication to a central provider rather than each rolling its own login. Architecturally that is the right call — the failure is in how the provider was configured, not in the decision to centralise.
- No dangling DNS. Passive enumeration found no takeover candidates. Certificate records and delegation were clean across 732 candidate names, which is unusual for an estate this size.
- Access control on the records backend existed in principle. The document-platform-backed e-service had list-level permissions configured; the exposure was that certain lists were set to anonymous read rather than that no permission model existed.
- Rate limiting existed on one staff panel. It was absent on the others, which is the finding — but the pattern was implemented somewhere, so it is a consistency problem rather than a capability gap.
- No exploit was fired against production. That is our discipline, not their defense, and it is recorded as such.
The federation point deserves emphasis. Centralising identity is harder than not doing it, and this estate did it. The finding is that one shared component's public configuration undermines the centralisation — which is a configuration failure inside a sound architecture, not a design failure.
3. The findings that mattered
How the estate was mapped
3.1 The identity trust anchor discloses credentials and accepts cross-origin readsCritical
In plain terms. The estate federates authentication to one central provider. Two things about that provider's public configuration are the most consequential findings in the engagement.
First, a service-provider client secret was disclosed in a plaintext redirect URL on a pre-production identity host, and we verified that the identity provider's token endpoint accepts it. Second, the production identity provider reflects any origin header together with the credential allowance on its protocol endpoints.
Neither alone is a breach. Together they mean the credentials that gate every federated service in the estate were obtainable, and the provider will answer cross-origin requests from anywhere.
What. A client secret appeared in a redirect URL and was validated against the token endpoint, confirming it is live rather than stale. Separately, four protocol endpoints on the production identity provider returned the requesting origin reflected in the cross-origin allow header with credentials permitted.
How we found it. By reading redirect URLs rather than only response bodies. A redirect location is part of the response, and query parameters in it are frequently treated as disposable — which is how secrets end up in them.
The verification step is what elevated this. Finding a secret in a URL is a disclosure; testing it against the issuing authority is what establishes whether it matters. We presented it to the token endpoint and it was accepted.
The cross-origin finding came from the same discipline applied to headers: send a controlled origin and read whether it comes back.
Root cause. Two configuration failures on the estate's most consequential component. A secret carried in a URL where URLs are logged, cached, and forwarded — and a cross-origin policy that reflects rather than validates.
Impact. The credentials that gate the estate's federated identity were shown to be obtainable by an unauthenticated party, and the provider permits unrestricted cross-origin credentialed reads. No citizen data was exfiltrated — the chain stops at possessing the means, because completing it requires a victim authorisation flow.
Fix. Rotate the disclosed secret and stop transmitting secrets in URLs. Replace origin reflection with an explicit allowlist and never pair a reflected origin with credential allowance. Audit every relying party for the same pattern.
Kill chain. Stage four reached; the terminal step requires a victim flow that was not available.
3.2 A mapping service with known code-execution vulnerabilities and open admin surfacesCritical
In plain terms. A public geospatial service runs a release with published remote-code-execution vulnerabilities, and it exposes its administrative and REST interfaces without authentication. We confirmed the version, the capability, and the open surfaces. We did not fire the exploit, because it targets a live public service and a code-execution attempt is not a reversible test.
That distinction is the finding. Capability was confirmed up to the point of exposure, and the decision to stop is documented.
What. The service reported a specific release; nearly two hundred processing processes were enumerated unauthenticated; the REST interface answered without credentials. Published advisories against that release include remote code execution.
How we found it. Version fingerprinting, then capability enumeration. The version came from a standard version endpoint; the process count from an unauthenticated capability query.
The restraint decision is the substance. A production geospatial service underpins mapping for citizens; an exploit attempt could take it down. The report records capability, not execution, and says which advisories were matched and why none was fired.
Root cause. An unpatched geospatial platform exposed publicly, with its administrative interface not network-restricted.
Impact. A public service with a published code-execution path and no authentication on its administrative surface. The exposure is the state of the system, not a demonstrated compromise.
Fix. Patch the platform, restrict the administrative interface to an internal network, and add an edge filtering layer in front of the service.
3.3 A one-time passcode system that returns the passcodeCritical
In plain terms. A citizen-support service uses SMS one-time passcodes for registration and account recovery. Its API returns the passcode in the response to the request that generates it.
The second factor is not a factor. Anyone who can call the API receives the code and can complete the flow for any identifier they can name.
What. The API response to a passcode-generation request contained the passcode value itself. This was reproducible across consecutive requests, confirming it is the design rather than a caching fluke.
How we found it. By sending a legitimate request and reading the full response rather than checking the status code. The passcode arrived in a field that should not exist in a client-facing response.
Root cause. The passcode is generated server-side and returned to the caller rather than retained and compared. This is a flow-design error, not a coding slip: the service treats the passcode as confirming that a channel works, rather than as a secret the user must prove possession of.
Impact. SMS verification is non-functional on that service. Registration and recovery flows are open to anyone who can name an identifier.
Fix. Retain the passcode server-side, deliver it only through the user's channel, and compare on submission. Treat the response body as a place a secret must never appear.
3.4 Injection points returning data rows in a public support portalCritical
In plain terms. A public works-support portal has two input points that pass user input into a database query. Both returned attacker-controlled results, including data rows.
This is the most conventionally serious finding in the engagement, and it is the one where the estate's missing edge layer matters most: with nothing filtering input, an injection point is directly reachable and directly usable.
What. Two injection oracles returned attacker-controlled results. One returned rows from a query the application did not intend to run.
How we found it. Standard injection testing with controlled payloads, confirming by observing result-set behaviour rather than by extracting data. Where a payload produced rows, we stopped rather than enumerating.
Root cause. Input concatenated into query construction rather than parameterised.
Impact. An unauthenticated party can influence database queries on a public portal and read unintended rows. Scope of accessible data was not enumerated.
Fix. Parameterise the queries. Add an edge filtering layer — this class of finding is where its absence is most costly.
3.5 A records backend serving citizen personal data without authenticationCritical
In plain terms. An e-services backend returns citizen feedback records — names, email addresses, and phone numbers — to unauthenticated callers.
The permission model exists; the scope is too wide. Certain lists were configured for anonymous read rather than requiring an authenticated context.
What. A list endpoint returned records containing personal identifiers to anonymous callers. Individual rows were retrieved on demand; no bulk collection was performed.
How we found it. By requesting the list endpoint without any credential and reading what came back.
Root cause. List-level permissions configured to permit anonymous read on data that requires an authenticated context.
Impact. Citizen personal data — names, email addresses, phone numbers — readable without authentication. This carries a disclosure obligation independent of the technical fix.
Fix. Set citizen-data lists to require an authenticated context. Review every list's anonymous scope across the backend, not just the ones found.
Also confirmed
| Finding | Severity | Content |
|---|---|---|
| Administrator account names disclosed on public portals | High | Unauthenticated enumeration reveals administrative account identifiers |
| Staff control panel with no throttling and fixation-pattern sessions | High | Unlimited password attempts; session identifiers following a predictable pattern |
| Hardcoded encryption key and IV in client-side password handling | High | The key is published in the page's own source, making the encryption a formality |
| Cross-site request forgery accepted on a public form | High | Cross-origin submissions from any website accepted |
| OAuth redirect passthrough without allowlist validation | High | Attacker-supplied redirect destination preserved through the flow |
| Configuration and role enumeration on a second service | High | Role model and configuration disclosed unauthenticated |
| Missing security headers across hosts | Low | HSTS and CSP absent; cookies without Secure flag; CSP permitting inline script |
| Version disclosure and legacy components | Low | Framework and platform versions in headers and page source |
4. Kill chain summary
The assessment did not observe a single end-to-end intrusion against any host. No installation, no command-and-control, and no completed objective beyond partial data returns.
| Chain | Reached | Terminated at | Data returned |
|---|---|---|---|
| Identity secret | Stage 4 (exploit) | Needs a victim auth flow | None |
| Passcode return | Stage 4 (exploit) | Flow completion not attempted | Passcodes |
| Mapping service | Stage 4 (exploit) | Exploit deliberately not fired | None |
| Injection | Stage 5 (collection) | Single rows, stopped | Rows |
| Records backend | Stage 5 (collection) | Individual records, stopped | PII |
| CSRF | Stage 3 (delivery) | Assessment-driven submission only | None |
| Redirect passthrough | Stage 4 (exploit) | No victim flow | None |
5. What the shape of this engagement teaches
A shared trust anchor multiplies whatever it is. Seventy services on one domain, federating to one identity provider, presenting one wildcard certificate. Each agency's own build quality stopped mattering the moment the shared component's public configuration permitted credential disclosure. Estate security is not the average of its services; it is the posture of its weakest shared dependency, multiplied.
Absence of an edge layer is a decision with compounding costs. Not one probed host sat behind a filtering layer. The consequence is that patching is the only control — and this estate's patching is under-resourced, so staleness becomes exploitable rather than merely untidy. One shared filtering layer would reduce the estate's exposure more than any single remediation in the roadmap.
Centralising identity is the right call, and this estate made it. That is genuinely worth crediting. The failure is a configuration inside a sound architecture, not a design mistake. It matters because the fix is cheap and bounded — rotate a secret, stop putting secrets in URLs, replace origin reflection with an allowlist — while the architecture that makes those fixes high-leverage is already built.
Version staleness is the characteristic failure mode of under-resourced estates. Unsupported content-management releases, end-of-life runtimes, dated application servers, an obsolete document service. Not one finding here is exotic. Collectively they describe a patching programme that has lost funding rather than a team that made mistakes — and that is a budget conversation, not a ticket.
Refusing to fire an exploit is a finding, not a gap. The mapping service has published code-execution advisories and an open administrative interface. We confirmed capability to the point of exposure and stopped, because a production public service is not a test target for an irreversible payload. Recording that decision explicitly is what makes the finding usable: the client knows exactly what was and was not done.
Half an estate is not a negative result. Thirty-seven of seventy surfaces had not completed host-depth assessment. Their security posture remains unknown.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Rotate the disclosed identity secret; stop transmitting secrets in URLs | The credentials gating the estate were obtainable | Very low |
| 1 | Replace identity-provider origin reflection with an explicit allowlist | Removes unrestricted credentialed cross-origin reads | Low |
| 1 | Retain passcodes server-side; stop returning them in responses | A second factor that returns itself is not a factor | Low |
| 1 | Patch the mapping platform and restrict its administrative interface | Published code-execution path on a public service | Low |
| 2 | Parameterise the support portal's queries | Injection returning data rows | Low |
| 2 | Set citizen-data lists to authenticated-context only | Personal data readable unauthenticated | Low |
| 2 | Assess disclosure obligation for the records exposure | Independent of the technical fix | Organisational |
| 3 | Procure a shared edge filtering layer for the estate | The highest-leverage structural change available | Programme |
| 3 | Remove administrator account disclosure from public portals | Removes validated targeting input | Low |
| 3 | Add throttling and replace predictable session identifiers on staff panels | Unlimited password attempts | Low |
| 4 | Move password handling server-side; retire the client-side key | The key is in the page source | Medium |
| 4 | Establish a patching programme with an inventory of end-of-life components | Staleness is the estate's characteristic failure | Programme |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement. Testing was confined to the in-scope domain estate.
Read-only discipline was applied throughout, with two deliberate restraints recorded: no code-execution payload was fired against the production mapping service, and where injection or a records backend returned data, individual rows were retrieved on demand and collection was stopped. No bulk exfiltration occurred. No credentialed session was established on any host. No denial-of-service or social-engineering testing was performed.
Documentation status. The record identifies the engagement window and client from captured evidence. It does not include a signed statement of work or other formal authorization documentation.
Redaction
Every hostname, IP address, credential, identifier, and organisational name in this document has been replaced with a placeholder or generalised, with deliberate additional generalisation applied to government functions and to national identity infrastructure.
What was removed:
- All hostnames, subdomains, and both domain names — including the shared government domain
- All IP addresses, network ranges, and hosting provider identities
- All credentials, and specifically the disclosed identity-provider secret and its verification detail
- The nation, the government, and every named ministry, agency, or service
- The specific identity-provider product and its version
- The mapping platform's product name, release version, and advisory identifiers
- The records backend's platform name and list identifiers
- The support portal's name, endpoints, and parameter names
- Citizen personal data of any kind, and any record identifier or field value
- The specific passcode value observed
- Administrative account names recovered through enumeration
- Exact calendar dates and clock times — replaced with wave and relative-day numbering
- Candidate hostname counts by phase and the specific host with the exposed staff panel
What was generalised beyond the ordinary approach: individual government functions are described as "a citizen-support service," "a mapping service," "a records backend," and "a staff control panel" — not by their institutional identity. National identity infrastructure is described by its architectural role rather than by name. This is deliberate: a published map of specific weaknesses in a sovereign government's police, prosecution, or identity systems is actionable against that state regardless of whether the client is named.
What was kept: vulnerability classes and CWE identifiers, architectural patterns (federated identity, cross-origin policy, list-level permissions, query parameterisation), the systemic findings about edge-layer absence and version staleness, and the full methodology — including both deliberate restraints and the documentation gap. These are transferable and identify no one.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
estate.example | The shared government domain |
service.estate.example | The originally scoped public service |
identity.estate.example | The central identity provider |
preprod-identity.estate.example | Pre-production identity host |
mapping.estate.example | The public geospatial service |
records.estate.example | The e-services records backend |
support.estate.example | The public works-support portal |
panel.estate.example | The staff control panel |
<redacted> | Any credential, secret, hostname, account, record, or value |
Data handling
No citizen data is reproduced. The records exposure is described by field class — name, email address, phone number — and by the fact that individual rows were returned on demand. No record, identifier, field value, or count appears. The passcode value is not reproduced. Administrative account names recovered through enumeration appear nowhere in this document.
Disclaimer
Findings reflect the state of the tested systems during the evidence-capture window. Security posture changes; a finding here does not imply the condition persists today, and remediation status is not asserted.
Coverage is partial and the boundary is stated. Thirty-seven of seventy mapped surfaces had not completed host-depth assessment when the evidence record closed. Absence of a finding on those surfaces carries no meaning.
No authenticated testing occurred. The assessment never held a staff, administrator, or citizen session. Every statement about authenticated authorisation is therefore untested, and role descriptions in this document are inferred from application naming and responses rather than verified.
Two deliberate restraints are recorded rather than omitted: the code-execution exploit against the production mapping service was not fired, and data-returning findings were confirmed by single rows rather than by collection. A reader should treat the mapping service finding as confirmed exposure and the records finding as confirmed exposure, not as demonstrated compromise.
Formal authorisation documentation is not present in the assessment records. The engagement window and client identity were derived from captured evidence. The findings themselves are evidence-backed and reproducible; the paperwork gap is recorded because omitting it would misrepresent the engagement's standing.
Methodology and tooling by BlackBit. Findings evidence-backed with deliberate restraints and the coverage boundary documented; systemic patterns reported in preference to institutional specifics. Published with the client's permission.