Skip to content

Case study · Public sector

Multi-Agency Government

Across 624 sessions on a shared government domain, 21 findings concentrated in one identity trust anchor, an unpatched mapping service, and citizen records served without authentication.

Findings · 13
5 Critical6 High2 Low
FindingVulnerabilitySeverity
3.1The identity trust anchor discloses credentials and accepts cross-origin readsA client secret appeared in a redirect URL and was validated against the token endpoint, confirming it is live rather than stale.Critical
3.2A mapping service with known code-execution vulnerabilities and open admin surfacesThe service reported a specific release; nearly two hundred processing processes were enumerated unauthenticated; the REST interface answered without credentials.Critical
3.3A one-time passcode system that returns the passcodeThe 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.Critical
3.4Injection points returning data rows in a public support portalTwo injection oracles returned attacker-controlled results. One returned rows from a query the application did not intend to run.Critical
3.5A records backend serving citizen personal data without authenticationA list endpoint returned records containing personal identifiers to anonymous callers. Individual rows were retrieved on demand; no bulk collection was performed.Critical
Administrator account names disclosed on public portalsUnauthenticated enumeration reveals administrative account identifiersHigh
Staff control panel with no throttling and fixation-pattern sessionsUnlimited password attempts; session identifiers following a predictable patternHigh
Hardcoded encryption key and IV in client-side password handlingThe key is published in the page's own source, making the encryption a formalityHigh
Cross-site request forgery accepted on a public formCross-origin submissions from any website acceptedHigh
OAuth redirect passthrough without allowlist validationAttacker-supplied redirect destination preserved through the flowHigh
Configuration and role enumeration on a second serviceRole model and configuration disclosed unauthenticatedHigh
Missing security headers across hostsHSTS and CSP absent; cookies without Secure flag; CSP permitting inline scriptLow
Version disclosure and legacy componentsFramework and platform versions in headers and page sourceLow

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 wrongBusiness impactWho decides
1The identity trust anchor discloses credential material publicly, and accepts cross-origin credentialed readsEvery 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
2No web application firewall or CDN fronts any assessed hostThis 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
3A mapping service with known code-execution vulnerabilities has open administrative surfacesWe 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
4A citizen-facing records backend serves personal data without authenticationNames, 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
5An OTP system returns the passcode in its own responseIt 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

MetricValue
Active machine time~30 hours
Total Swarm Size624
Root workstreams7
Distinct agent roles7
Tool calls executed30,362
HTTP probe operations4,306
Shell commands10,847
File reads8,192
Recon planning operations627
Schema operations354
Messages exchanged20,253
Candidate hostnames732
Live hosts469
Distinct surfaces after de-duplication70
Hosts with at least one confirmed weakness30
Confirmed findings in the engagement ledger21; section 3 presents selected findings
Informational observations3
Surfaces assessed in depth33 of 70
Bulk data exfiltrationNone

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

RoleSessionsResponsibility
Recon489Estate mapping, host-depth nesting, schema and auth surface
Scout75Door probing, surface promotion
Hunter48Exploitation and proof assembly
Orchestrator7Wave design, merge
Research3Deep-angle investigation
Verification1Independent re-check
Library1Reference retrieval
Fig 01 · Agent topology
Fig 01 · Agent topology

Wave timeline

WaveFocusOutcome
1Passive enumeration: certificate transparency, DNS, third-party scans475 candidates, 403 resolved, no dangling records
2Active mapping and fingerprintingEstate reduced to 70 distinct surfaces; no edge layer identified
3Standardized probing across in-scope surfacesAuth, injection, access control, misconfiguration, dependency checks
4Proof of impact on selected findingsCaptured evidence for 14 detailed findings
5Estate consolidation and coverage assessment30 hosts with confirmed weaknesses; 33 surfaces depth-assessed
6Client report assemblyFindings 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.
Fig 02 · 2. What held
Fig 02 · 2. What held

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

Fig 03 · How the estate was mapped
Fig 03 · 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.

Fig 04 · 3.1 The identity trust anchor discloses credentials and accepts cross-origin reads
Fig 04 · 3.1 The identity trust anchor discloses credentials and accepts cross-origin reads

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.

Fig 05 · 3.1 The identity trust anchor discloses credentials and accepts cross-origin reads — Kill chain
Fig 05 · 3.1 The identity trust anchor discloses credentials and accepts cross-origin reads — Kill chain

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.

Fig 06 · 3.2 A mapping service with known code-execution vulnerabilities and open admin surfaces
Fig 06 · 3.2 A mapping service with known code-execution vulnerabilities and open admin surfaces

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.

Fig 07 · 3.3 A one-time passcode system that returns the passcode
Fig 07 · 3.3 A one-time passcode system that returns the passcode

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.

Fig 08 · 3.4 Injection points returning data rows in a public support portal
Fig 08 · 3.4 Injection points returning data rows in a public support portal

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.

Fig 09 · 3.5 A records backend serving citizen personal data without authentication
Fig 09 · 3.5 A records backend serving citizen personal data without authentication

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

FindingSeverityContent
Administrator account names disclosed on public portalsHighUnauthenticated enumeration reveals administrative account identifiers
Staff control panel with no throttling and fixation-pattern sessionsHighUnlimited password attempts; session identifiers following a predictable pattern
Hardcoded encryption key and IV in client-side password handlingHighThe key is published in the page's own source, making the encryption a formality
Cross-site request forgery accepted on a public formHighCross-origin submissions from any website accepted
OAuth redirect passthrough without allowlist validationHighAttacker-supplied redirect destination preserved through the flow
Configuration and role enumeration on a second serviceHighRole model and configuration disclosed unauthenticated
Missing security headers across hostsLowHSTS and CSP absent; cookies without Secure flag; CSP permitting inline script
Version disclosure and legacy componentsLowFramework 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.

Fig 10 · 4. Kill chain summary
Fig 10 · 4. Kill chain summary
ChainReachedTerminated atData returned
Identity secretStage 4 (exploit)Needs a victim auth flowNone
Passcode returnStage 4 (exploit)Flow completion not attemptedPasscodes
Mapping serviceStage 4 (exploit)Exploit deliberately not firedNone
InjectionStage 5 (collection)Single rows, stoppedRows
Records backendStage 5 (collection)Individual records, stoppedPII
CSRFStage 3 (delivery)Assessment-driven submission onlyNone
Redirect passthroughStage 4 (exploit)No victim flowNone

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.

PriorityActionWhy firstEffort
1Rotate the disclosed identity secret; stop transmitting secrets in URLsThe credentials gating the estate were obtainableVery low
1Replace identity-provider origin reflection with an explicit allowlistRemoves unrestricted credentialed cross-origin readsLow
1Retain passcodes server-side; stop returning them in responsesA second factor that returns itself is not a factorLow
1Patch the mapping platform and restrict its administrative interfacePublished code-execution path on a public serviceLow
2Parameterise the support portal's queriesInjection returning data rowsLow
2Set citizen-data lists to authenticated-context onlyPersonal data readable unauthenticatedLow
2Assess disclosure obligation for the records exposureIndependent of the technical fixOrganisational
3Procure a shared edge filtering layer for the estateThe highest-leverage structural change availableProgramme
3Remove administrator account disclosure from public portalsRemoves validated targeting inputLow
3Add throttling and replace predictable session identifiers on staff panelsUnlimited password attemptsLow
4Move password handling server-side; retire the client-side keyThe key is in the page sourceMedium
4Establish a patching programme with an inventory of end-of-life componentsStaleness is the estate's characteristic failureProgramme

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:

PlaceholderMeaning
estate.exampleThe shared government domain
service.estate.exampleThe originally scoped public service
identity.estate.exampleThe central identity provider
preprod-identity.estate.examplePre-production identity host
mapping.estate.exampleThe public geospatial service
records.estate.exampleThe e-services records backend
support.estate.exampleThe public works-support portal
panel.estate.exampleThe 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.

More in Public sector

← All case studies