Skip to content

Case study · Banking

National Payments Clearing Platform

A signing gate built on public-key encryption opened a national payments clearing API unauthenticated, exposing saved payment instruments, integration credentials for more than twenty financial institutions, and a proven destructive write.

Findings · 12
4 Critical1 High7 Medium
FindingVulnerabilitySeverity
3.1The request-signing gate is encryption with a public keyA client-side cryptographic operation using a key shipped in the application bundle served as the sole request-authentication mechanism for a substantial part of the API surface.Critical
3.2Customer payment instruments readable cross-origin by iterating an identifierAn endpoint returned a customer's saved payment instruments given a sequential integer identifier.Critical
3.3Integration credentials for the connected financial institutions in plaintextA participant-listing endpoint returned integration credentials in plaintext for the connected institutions.Critical
3.4An unauthenticated session mint bound to attacker-supplied originsAn unauthenticated call to a session-mint endpoint returned a token whose permitted origins were the attacker's choice.Critical
3.5A proven destructive write on a live customer's saved payment instrumentA deletion operation accepted the harvested token handles with no authentication headers from an attacker origin and returned success.High
Pre-authentication schema validation oracleDistinguishable validation errors reveal the API contractMedium
Unauthenticated logout on a protected surfaceEndpoint accepts unauthenticated callsMedium
Client-side control-plane disclosureFull backend controller map plus an embedded keyMedium
Staging mirror serving production contract with internal network topologyInternal address ranges disclosed from a staging hostMedium
Login account-existence oracleResponse distinguishes registered from unregisteredMedium
Lookup enumeration and FAQ disclosureUnauthenticated enumeration of reference dataMedium
Internal operator usernames disclosedMore than twenty operator accounts enumerableMedium

Executive summary

What we were asked to do

A payments clearing platform that routes bill payments between consumers, merchants, and a network of financial institutions asked us to attack its public estate with a full-compromise objective. The platform is infrastructure rather than a consumer product: if it fails, the failure propagates to every institution connected to it.

We were authorized for full-compromise testing from an external position with no credentials.

Principal findings

One design error unlocked everything else. The platform's request-signing gate — the control that was supposed to make its API callable only from its own application — was not a signature scheme at all. It was public-key encryption with the public key shipped inside the application bundle. Anyone can reproduce encryption with a public key. So we did, offline, and a "WAF-protected, application-only" API became a fully unauthenticated surface.

Behind that gate: any customer's saved payment instruments readable cross-origin from an attacker page by iterating an integer identifier, integration credentials for more than twenty financial institutions in plaintext, a card-skimmer primitive where an unauthenticated session mint was bound to attacker-supplied origins — and a proven destructive write that removed a real customer's saved card from production.

We deleted that card. It is disclosed in this report rather than buried, and the client's notification and restoration decision is an open item.

What this means in plain terms

Three things a board should take from this.

  • A public key is not a secret, so encryption with it is not authentication. The platform believed its API was protected because requests had to carry a cryptographic blob. But the key that produces that blob ships to every browser, which means the blob proves nothing about who sent it. This single misunderstanding converted an internal API into a public one and everything below follows from it.
  • The exposure reached beyond the platform to every institution connected to it. Integration credentials for the connected financial institutions were readable without authentication. Those credentials are not the platform's to lose — they belong to its partners, and the partners needed to be told.
  • We changed production state, and that has consequences. A destructive test removed a real customer's saved payment instrument to prove the capability. The finding is real. So is the side effect, and the customer deserves to know.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1The API's request-signing gate is reproducible by anyoneThis is the root cause of every other finding. Fixing it is a redesign of how the platform authenticates callers, not a configuration change.Architecture + platform leadership
2Customer payment instruments are readable cross-origin by iterating an identifierCard data — even masked — plus live payment tokens. This triggers a card-industry incident process, not only a security ticket.Security leadership + compliance
3Integration credentials for the connected financial institutions were exposed in plaintextThese belong to third parties. Notifying them and rotating on their schedule is a coordinated action, and they may have their own disclosure obligations.Commercial + partner management
4An unauthenticated session mint is bound to attacker-supplied originsThis is the front half of a card-skimming capability. Whether it can be completed depends on controls outside our testing, and the client must assume it can.Security leadership
5A live customer's saved payment instrument was deleted during testingThe capability is proven and that is valuable. The customer impact is real and needs a decision today.Executive + customer operations

What we did not get

No unmasked card number was observed, derived, or fabricated anywhere in this assessment. Payment history and customer personal data were not reachable — those routes returned authentication errors or not-found before and after the credentials were obtained.

We did not replay the third-party integration credentials. They authenticate systems belonging to other organizations, and testing them was outside the authorization we held.

Engagement outcome

An authorized security assessment of a payments clearing platform identified that its API request-signing control could be reproduced by any party because it relied on encryption with a publicly available key. Three critical findings followed, including cross-origin exposure of customer payment instruments and plaintext integration credentials affecting a network of financial institutions. All findings were disclosed to the platform and to its affected integration partners under confidentiality agreements, with immediate rotation and containment guidance.


1. The engagement in numbers

MetricValue
Root workstreams2
Total Swarm Size270
Findings detailed in sections 3.1–3.54 critical (the root cause and three related findings), 1 high
Financial institutions affectedmore than twenty
Biller records cataloguedseveral hundred
Internal operator accounts disclosedmore than twenty
Credentials replayed against third parties0
Unmasked card numbers observed0
Production state changes1 (disclosed)

Agent topology

RoleSessionsResponsibility
Recon140Estate mapping, integration discovery, schema recovery
Exploit96Signature forgery, credential validation, cross-origin proof
Scout18Surface promotion
Orchestrator6Cycle design, merge, authorisation gatekeeping
Advisor10Independent review, destructive-test authorisation
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

Several controls did hold, and they bound the impact.

  • Payment history and customer personal data were not reachable. The routes that would return them answered with authentication errors or not-found, consistently, both before and after the payment credentials were obtained. The blast radius of the instrument exposure is narrower than it could have been.
  • A sibling session-mint route correctly rejected an attacker origin. On the same host where the cross-origin reflection was found, an adjacent integration route returned a clean 403 for the same canary. That contrast is what proves the reflection was a targeted misconfiguration rather than blanket permissiveness.
  • The bearer-token boundary held across twenty-three attempts. Every probe against the bearer-protected route family returned 401.
  • The signing gate existed on the write paths that matter most. The session-generate and account-management routes enforced a one-time-token validation that the read and debug paths did not.
  • No unmasked card data was reachable. Only masked identifiers were ever returned.
Fig 02 · 2. What held
Fig 02 · 2. What held

The second item is the most useful thing in this section. When one route on a host reflects any origin and its neighbour refuses the same request, the finding stops being "the host is permissive" and becomes "one route was configured wrong." That distinction changes the remediation and the severity.


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 request-signing gate is encryption with a public keyCritical, root cause

In plain terms. This is the finding that produced all the others, so it is worth understanding precisely.

The platform's API requires each request to carry a cryptographic blob. The platform believed this made the API callable only by its own application. But the operation that produces the blob is encryption using a public key, and that public key is embedded in the JavaScript bundle the application serves to every visitor.

Encryption with a public key is not proof of anything. It is a transformation anyone can perform. A signature requires a private key that only the signer holds; encryption requires only the public key, which by definition is public.

So we implemented the same transformation offline, produced valid-looking blobs, and the API accepted them. What the platform treated as an authentication gate was a formatting convention.

What. A client-side cryptographic operation using a key shipped in the application bundle served as the sole request-authentication mechanism for a substantial part of the API surface. Reproducing the operation offline with standard cryptographic libraries yielded requests the API accepted.

How we found it. By reading the application's own bundle rather than attacking the API directly.

The bundle contained a key material literal alongside the function that used it. That pairing — a key and its use in the same client artifact — is the signature of this pattern. Once identified, the operation was trivial to reproduce outside the browser.

The verification was the important part: not "the key is exposed" but "requests built with a locally-generated blob are accepted by the production API." That is what turns an observation into a finding.

Root cause. A confidentiality mechanism — encryption — substituted for an authentication mechanism — signing. The two are not interchangeable, and the difference is which key the party must hold.

Fig 04 · 3.1 The request-signing gate is encryption with a public key
Fig 04 · 3.1 The request-signing gate is encryption with a public key

Impact. The platform's API was callable by anyone. Every finding below is downstream of this one.

Fix. Replace encryption-as-authentication with an actual signature scheme, or issue per-client credentials from a server-side exchange and verify them server-side. No client-side operation can authenticate a client, because the client is the thing being authenticated.

Kill chain. Exploitation, and the enabling step for three further findings.

Fig 05 · 3.1 The request-signing gate is encryption with a public key — Kill chain
Fig 05 · 3.1 The request-signing gate is encryption with a public key — Kill chain

3.2 Customer payment instruments readable cross-origin by iterating an identifierCritical

In plain terms. A customer's payment instruments — masked card number, expiry, and the live payment tokens that authorize transactions against them — are retrievable by supplying an integer customer identifier. There is no authentication and no ownership check.

We proved it in a real browser from a foreign origin, with credentials included, exactly as a malicious page would.

What. An endpoint returned a customer's saved payment instruments given a sequential integer identifier. The response included masked card numbers, expiry dates, and the live token handles used to authorize card transactions. The endpoint reflected the caller's origin with credential allowance permitted.

The identifiers are sequential integers, so the same read is scriptable across the platform's customer base.

How we found it. By establishing that the endpoint was reachable and parameterised, then proving the cross-origin case in an actual browser rather than reasoning about headers.

Bounded sampling was applied: a small set of identifiers was tested to establish the pattern, and the schema oracle described alongside confirmed sequential numbering. No bulk enumeration was performed.

Root cause. No authentication on the read, no ownership check on the identifier, and cross-origin origin reflection with credential allowance on the same endpoint.

Fig 06 · 3.2 Customer payment instruments readable cross-origin by iterating an identifier
Fig 06 · 3.2 Customer payment instruments readable cross-origin by iterating an identifier

Impact. Payment instrument disclosure at platform scale: masked card data plus the tokens that authorize transactions. Combined with the cross-origin reflection, a victim visiting a malicious page could have their instruments read without any interaction beyond the page load.

Fix. Require authentication and enforce ownership on the identifier. Remove credential allowance from the reflected origin. And treat the exposure as a card-industry incident, because it is one.


3.3 Integration credentials for the connected financial institutions in plaintextCritical

In plain terms. An unauthenticated endpoint returned plaintext integration credentials for every financial institution connected to the platform — usernames, passwords, and certificate serial numbers.

These are not the platform's credentials. They belong to its partners, and they authenticate connections on the partners' side.

What. A participant-listing endpoint returned integration credentials in plaintext for the connected institutions. Certificate serial numbers were included, which means the certificates should be treated as compromised alongside the passwords.

How we found it. A single unauthenticated request to a listing endpoint, once the signing gate was bypassed.

Root cause. Credentials stored and served in plaintext from an unauthenticated listing endpoint.

Fig 07 · 3.3 Integration credentials for the connected financial institutions in plaintext
Fig 07 · 3.3 Integration credentials for the connected financial institutions in plaintext

Impact. Credential disclosure affecting a network of financial institutions. The affected parties are not the client, which makes this a coordinated response rather than an internal fix.

We did not replay any of them — they authenticate third-party systems outside our authorization.

Fix. Rotate every credential through each partner, on their schedule. Treat the certificate serials as compromised. Stop serving credentials from any endpoint, authenticated or not.


3.4 An unauthenticated session mint bound to attacker-supplied originsCritical

In plain terms. A session-minting endpoint accepted a caller-supplied list of allowed origins and issued a token bound to it. That is the front half of a card-skimming capability: the attacker obtains a token that will function on the origin they control.

What. An unauthenticated call to a session-mint endpoint returned a token whose permitted origins were the attacker's choice. Confirmed on the primary host and reproduced on a parallel host.

How we found it. By examining what the request accepted rather than only what it returned. The origin list was a request parameter.

The contrast with the sibling integration route — which correctly returned 403 for the same canary — is what isolates this as a targeted misconfiguration.

Root cause. A session-mint endpoint that takes its trust configuration from the caller.

Fig 08 · 3.4 An unauthenticated session mint bound to attacker-supplied origins
Fig 08 · 3.4 An unauthenticated session mint bound to attacker-supplied origins

Impact. A token that functions where the attacker wants it to. Whether a full skimming flow can be completed depends on controls outside this assessment's reach — and the client should assume it can.

Fix. Derive the permitted origin list server-side from the requesting participant's registration, never from the request.


3.5 A proven destructive write on a live customer's saved payment instrumentHigh

In plain terms. Having obtained payment tokens through 3.2, we tested whether they authorized a destructive operation. They did. A real customer's saved card was removed from production.

The write was executed once, under explicit authorization, to prove the capability. The customer's instrument is gone.

What. A deletion operation accepted the harvested token handles with no authentication headers from an attacker origin and returned success. The effect was verified across two subsequent re-reads.

How we found it. By testing whether the tokens were merely identifiers or actual capabilities. The distinction matters: an identifier that can be read is a disclosure, a handle that can authorize a deletion is a capability.

This is the only destructive test in the engagement and it was gated on advisor review before execution.

Root cause. A destructive operation on a payment instrument authorized by a token with no authentication and no origin restriction.

Fig 09 · 3.5 A proven destructive write on a live customer's saved payment instrument
Fig 09 · 3.5 A proven destructive write on a live customer's saved payment instrument

Impact. A live customer lost a saved payment instrument. The capability is proven; the side effect is real.

Fix. Authenticate and authorize destructive operations, and restrict them to the instrument's owner. Separately: the customer needs to be contacted.


Also confirmed

FindingSeverityContent
Pre-authentication schema validation oracleMediumDistinguishable validation errors reveal the API contract
Unauthenticated logout on a protected surfaceMediumEndpoint accepts unauthenticated calls
Client-side control-plane disclosureMediumFull backend controller map plus an embedded key
Staging mirror serving production contract with internal network topologyMediumInternal address ranges disclosed from a staging host
Login account-existence oracleMediumResponse distinguishes registered from unregistered
Lookup enumeration and FAQ disclosureMediumUnauthenticated enumeration of reference data
Internal operator usernames disclosedMediumMore than twenty operator accounts enumerable

4. Kill chain summary

Fig 10 · 4. Kill chain summary
Fig 10 · 4. Kill chain summary
ChainReachedTerminated atData obtained
Signature gateStage 4 (exploit)Gate reproducedNone — enablement only
Instrument disclosureStage 5 (collection)Bounded identifier sampleMasked PANs, expiry, tokens
Integration credentialsStage 5 (collection)Not replayedPlaintext credentials
Session mintStage 4 (exploit)Token issuedOrigin-bound token
Instrument deletionStage 6 (objective)Executed once, authenticatedNot applicable

5. What the shape of this engagement teaches

A public key is not a secret, and encryption with it is not authentication. This is the single most transferable lesson in our published work. A signature requires a private key; encryption requires only a public one. Any design where a client proves itself by performing an operation the server can also perform is not authenticating anything. If the operation is reproducible from artifacts the client ships, the gate is decorative.

When one route reflects any origin and its neighbour refuses the same request, believe the neighbour. The contrast is the evidence. It converts "this host is permissive" into "this route is misconfigured," which is a different finding with a different fix.

An identifier that can be read is a disclosure; a handle that can authorize an action is a capability. The tokens in this engagement looked like data. Testing whether they authorized a state change proved they were capabilities, and that is the difference between a High and a Critical.

Bypassing a gate makes every route behind it public at once. Most of this report's findings were discovered in a single pass after the signing gate fell. That is what a root cause looks like: one fix closes a category.

Disclosing a destructive test is not optional. A customer's saved instrument was deleted to prove the capability. The finding is more credible for it and the customer deserves to know. Both of those things are true at once, and a report that mentions only the first is dishonest.

PriorityActionWhy firstEffort
1Contact the affected customer and restore their instrumentA real person lost a payment methodImmediate
1Rotate every integration credential with each partner institutionCredentials authenticate third-party systemsCoordinated
1Require authentication and ownership on the instrument readPayment instruments readable by identifierLow
2Replace encryption-as-authentication with a real signature schemeThe root cause of everything in this reportLarge
2Remove credential allowance from reflected originsCross-origin reads from any pageLow
2Derive session-mint origin lists server-sideThe front half of a skimming capabilityLow
3Begin the card-industry incident process for the instrument exposureMasked data plus live tokens is in scopeOrganisational
3Treat the certificate serials as compromisedDisclosed alongside the passwordsLow
4Return uniform authentication errorsRemoves the account-existence oracleVery low
4Remove internal topology from the staging mirrorInternal address ranges disclosedLow

Notices

Authorization

This was an authorized security assessment conducted under a written engagement agreement with full-compromise scope. All testing was confined to in-scope properties.

Read-only discipline was applied to every finding except one. One destructive test was performed — the removal of a live customer's saved payment instrument — under explicit authorization and after advisor review, to prove that the harvested payment tokens were capabilities rather than identifiers. That action is disclosed in the finding, in this notice, and in the disclaimer. The customer notification and restoration decision is recorded as an open item and belongs to the client.

No unmasked card number was observed, derived, or fabricated. Third-party integration credentials were not replayed against any partner system. No bulk enumeration was performed: identifier testing used a bounded sample to establish the pattern.

Redaction

Every hostname, IP address, credential, identifier, institution, and geographic reference in this document has been replaced with a placeholder or generalised, with additional generalisation applied beyond the usual standard because the affected parties are third parties who did not commission this work.

What was removed, and why it mattered here more than elsewhere:

  • All country and regional identifiers. The platform's jurisdiction is not stated anywhere, by design. Its function, its integration model, and its customer base are described generically.
  • All financial institution names, counts as an exact figure, and identifying details. Affected institutions are described only as "a network of financial institutions" and "more than twenty." No institution is named, numbered, or characterised individually.
  • All hostnames, subdomains, and domain names
  • All IP addresses, network ranges, and hosting provider identities
  • All credentials, passwords, certificate serials, and token values
  • All card data: no masked number, no BIN, no expiry, no card type
  • All customer identifiers and the identifier scheme's starting point
  • The platform's own name, its operator, and its product names
  • The payment processor's identity and the integration protocol's name
  • Endpoint paths, route names, parameter names, and internal controller names
  • Internal operator usernames and the participant-listing endpoint's structure
  • Exact calendar dates and clock times — replaced with wave and relative-day numbering
  • Biller record counts and per-finding volume figures

What was kept, deliberately: the cryptographic root cause in full — that a public key used as a signing secret is not a signature — because that lesson is the point of this report and identifies nobody. Vulnerability classes, CWE identifiers, the response-class contrasts that establish severity, and the methodology are also retained.

Placeholders used throughout:

PlaceholderMeaning
clearing.exampleThe clearing platform and its estate
pay.clearing.exampleThe payment API
merchant.clearing.exampleThe merchant integration layer
participant-listingThe endpoint disclosing integration credentials
session-mintThe origin-bound session endpoint
connected institutionsThe financial institutions in the integration network
<redacted>Any credential, token, identifier, card value, institution, or address

Data handling

No card data is reproduced in any form — not masked, not partial, not as a BIN or expiry. No customer identifier appears. No institution is named or individually characterised. No integration credential, certificate serial, or token value appears. The affected customer whose instrument was removed is identified nowhere.

Disclaimer

Findings reflect the state of the tested systems during the engagement window. Security posture changes; a finding here does not imply the condition persists today, and remediation status is not asserted.

One production state change occurred and it is not concealed. A live customer's saved payment instrument was deleted to prove a capability. The instrument was not restored by the assessment team because restoration is the platform operator's action, not ours. The client's notification and restoration decision is recorded as an open item in the recommended sequence, and it is the first item for a reason.

The integration credentials belong to third parties. They were disclosed by the platform, not by their owners, and they authenticate systems outside this assessment's authorization. No replay was attempted. Notification to those institutions is the platform's obligation and was recommended at disclosure.

No unmasked card number was observed. Only masked identifiers were ever returned. That is a bound on this report's claims and it is stated in the finding, not only here.


Methodology and tooling by BlackBit. A cryptographic root cause reported in full because the lesson identifies nobody; affected third parties, jurisdiction, and all card and credential values withheld. One destructive test disclosed rather than omitted. Published with the client's permission.

More in Banking

← All case studies