Skip to content

Case study · Banking

National Stock Exchange Group

An encryption key embedded in public client JavaScript allowed unauthenticated requests to mint a server-signed session and read licensed market-data records.

Findings · 2
1 High1 Medium
FindingVulnerabilitySeverity
3.1Licensed market-data entitlement bypass through a client-side cryptographic keyA symmetric key protecting the login exchange was present in a publicly served client bundle. A login request with an empty body returned an encrypted payload rather than a rejection.HighCVSS 7.5
3.2Unauthenticated vendor account enumeration disclosing masked contact dataA security-token route issued an antiforgery token to a caller with no session.MediumCVSS 5.3

Executive summary

What we were asked to do

A national stock exchange group asked us to assess its web estate with authorized exploitation — not just probe, but prove what an adversary could reach. The scope spanned the exchange's own properties and, importantly, a set of market-data services owned by a subsidiary.

That subsidiary detail matters. An exchange's website is a public information service. Its market-data platform is a commercial product with licensed subscribers. The difference between those two things is the whole story of this engagement.

Principal findings

We found two confirmed weaknesses out of a very large estate, and one of them is the most commercially significant finding in our published work: a party with no account could read licensed market-data records that the exchange sells access to. The mechanism was stark — a cryptographic key used to protect the login exchange was embedded in JavaScript that every visitor downloads. With only that public key, an unauthenticated request mints a server-signed session, and the production data host accepts it. In our recorded test it returned a licensed corpus of roughly 55,000 acquisition records plus market data for one security, which is not named here. No credential was ever supplied.

The second finding is smaller: a vendor portal that lets anyone determine which vendor accounts exist and returns partially masked contact details.

Five other claims did not survive verification, and we say so explicitly. They were refuted or downgraded during the engagement — including one that was initially rated critical.

What this means in plain terms

Three things a board should take from this.

  • This is the one finding where an attacker gained something you intended to sell. A licensed market-data corpus was readable without a subscription. That is a revenue and contract exposure, not only a security one — and it means the question is not just "fix the code" but "establish who else knows this works."
  • The defect is not the missing authentication — it is the architecture. A public client cannot hold a secret. The login exchange was protected by a symmetric key shipped to every visitor, which means the protection was decorative. Any design where the client possesses the means to authenticate itself will eventually be discovered.
  • The same pattern appears in three unrelated applications. One high finding and two informational ones share the root cause. Fixing the one we demonstrated leaves the other two exploitable, so the remediation is a platform-level correction rather than a single patch.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1Licensed market data is readable with no subscriptionThis is contractual exposure as much as technical. Beyond rotating the key, someone must assess what the licensing agreement says about unauthorised access, whether the corpus has been harvested, and what disclosure obligation exists.Commercial + legal + security
2A cryptographic key protecting a login exchange ships in client codeThis is an architecture decision, not a bug. A public client cannot hold a secret. The correction requires reissuing sessions only after a real credential check, which changes how the service authenticates.Platform architecture + product
3The same embedded-key pattern appears in three applicationsFixing the demonstrated host leaves two others exploitable. The systemic correction needs an owner who can mandate it across teams.Engineering leadership
4Vendor accounts are enumerable and contact data partially exposedReal vendor organisations can be identified and their domains and phone prefixes harvested — a direct precursor to targeted phishing at your supply chain.Vendor management + security
5129 of 160 ranked surfaces were not assessed in depthMost answer only with an edge block page, so absence of a finding there carries no meaning. Anyone reading this report as a clean bill for the estate is misreading it.Security leadership

What we did not get

No administrative control, no write access, no cross-tenant reads, and no access to clearing, settlement, or bid data. We never held a member, vendor, administrator, clearing-member, or investor session. Every statement about authenticated authorization is untested rather than verified secure, and that limitation is repeated throughout rather than mentioned once.

We also refuted five of our own claims. One bypass that was initially rated critical reaches only a static application shell. A forged administrator token is honoured by no endpoint. A token-issuance weakness produces tokens for endpoints that already answer anonymously with public data. A wildcard query widened a result set over public regulatory circulars, so nothing was unauthorized. Those are documented as refuted rather than counted — and reporting them as compromises would have misstated the estate's posture.

Engagement outcome

An authorized security assessment of a national stock exchange group's web estate identified two confirmed weaknesses, the more significant being an unauthenticated path to a licensed market-data corpus caused by a cryptographic key embedded in public client code. The exchange's clearing, settlement, and administrative systems were not accessed, and no write or cross-tenant access was achieved. All findings were disclosed to the client under a confidentiality agreement with verified severity scoring and retest criteria.


1. The engagement in numbers

MetricValue
Active machine time~17 hours of dense execution
Total Swarm Size269
Root workstreams2
Distinct agent roles7
Tool calls executed13,586
HTTP probe operations1,726
File reads5,715
Shell commands2,051
Coverage notes recorded507
Recon planning operations286
Messages exchanged7,474
Ranked HTTP surfaces160
Assessed in depth31
Non-resolving names247
Confirmed findings2 (1 high, 1 medium)
Informational observations7
Refuted or corrected claims5
Licensed records exposed~55,000 in the recorded test
Write access achievedNone

The 507 coverage notes are the number worth understanding. This engagement recorded what it did not assess as meticulously as what it found — every host that was probed for liveness only, every name that did not resolve, every route that returned a shell. That is why a two-finding report from a 160-surface estate is trustworthy rather than thin.

Agent topology

RoleSessionsResponsibility
Recon186Estate discovery, per-host investigation, per-host summaries
Scout46Door probing, surface promotion
Hunter24Exploitation and proof assembly
Advisor6Independent review
Research3Deep-angle investigation
Orchestrator2Wave design, merge
Synthesis-verify2Independent re-verification
Fig 01 · Agent topology
Fig 01 · Agent topology

Wave timeline

WaveFocusOutcome
1Estate discovery: DNS, CT, OSINT, HTTP triage and ranking160 surfaces ranked from a much larger name set
2Host-depth nesting across promoted hosts31 hosts assessed in depth; per-host summaries produced
3Scout and hunter waves on promoted doorsTwo confirmed findings; five claims refuted
4Gap fill, verification, evidence reconciliationReport assembled with coverage ledger

2. What held

This section is unusually substantial, because most of the engagement's output is a list of things that were not vulnerable.

Five claims were refuted, downgraded, or corrected during the engagement, and each is retained in the record:

ClaimInitial readingWhat testing showed
Wildcard manipulation on a clearing archivePotential unauthorized corpus accessWidened a result set over public regulatory circulars — no unauthorized access
Token issuance on the international exchange sitePotential authentication bypassProduced tokens for endpoints that already answer anonymously with public data
Administrator route shells on an investor-awareness applicationPotential admin exposureClient-rendered only; every API variant returns 401
Bid-collection path-case bypassInitially rated criticalReached paths return only a static application shell — rebanded to Informational
Remote-access host appliance identificationFingerprinted as a known VPN product by patternThe appliance paths do not exist; it is a custom application

A fifth class of control held repeatedly: the data hosts distinguished valid from invalid sessions. The production market-data host returned "A token is required" with no header and "Invalid Token" with a placeholder. That is what makes finding 3.1 a specific architectural defect rather than a blanket absence of authentication — the host does check, it simply accepted a token that should never have been issuable.

An edge in escalated block state prevented live re-verification of several items for extended periods. Where that happened the report relies on earlier recorded exchanges and says so explicitly rather than asserting a current state.

Fig 02 · 2. What held
Fig 02 · 2. What held

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 Licensed market-data entitlement bypass through a client-side cryptographic keyHigh, CVSS 7.5

In plain terms. The subsidiary's market-data service protects its login exchange with a symmetric cryptographic key. That key is embedded in the JavaScript the service serves to every visitor.

We downloaded that JavaScript, took the key, sent an empty login request, decrypted the response, and got a server-signed session token. We then presented that token to the production market-data host and it returned licensed data.

No account. No credential. No victim. The protection was decorative because the thing it was protecting against — an attacker knowing the key — was defeated by the client architecture itself.

What. A symmetric key protecting the login exchange was present in a publicly served client bundle. A login request with an empty body returned an encrypted payload rather than a rejection. Decrypting that payload with the shipped key yielded a signed session token whose claims included a numeric user identifier, a service-account name, a read-only role, and two application namespaces. Presenting that token to the production data host returned HTTP 200 with licensed content: an acquisition-disclosure endpoint reporting roughly 55,000 total records with real column and row data, and a market-data endpoint returning data for a named security.

How we found it. By reading the client bundle as a credential store rather than as code.

The sequence was:

  1. Retrieve the JavaScript the service serves to any visitor.
  2. Identify a key used to protect the login exchange.
  3. Send an empty login request and observe that it returns an encrypted payload, not an error.
  4. Decrypt with the shipped key. The result is a signed token with a service-account identity.
  5. Present it to the production host.

Step five is where the finding lands, but step three is where it becomes interesting. A login route that returns an encrypted payload to an empty request is a login route that will mint a session for anyone — the encryption was the only barrier, and the key was public.

Two control probes confirm this is a defect rather than intended behaviour: the same request with no token returns 401 "A token is required", and with a placeholder token returns 401 "Invalid Token". The host authenticates. It simply accepted a session that should never have been issuable.

Root cause. A shared symmetric secret used to protect a login exchange, held in client-delivered code. A public client cannot hold a secret; the design assumes a property that cannot exist.

Fig 04 · 3.1 Licensed market-data entitlement bypass through a client-side cryptographic key
Fig 04 · 3.1 Licensed market-data entitlement bypass through a client-side cryptographic key

Impact. An unauthenticated party reads a licensed market-data and news corpus from a production host. The commercial consequence is that paid entitlement is bypassed for that dataset, and the corpus can be collected at will rather than sampled.

Precisely what was not demonstrated and is not claimed: write access, administrative control, access to either application namespace named in the token claims, or access to any other subscriber's records. The scope-unchanged score is a deliberate conservative choice — the token crossed a host boundary, but both hosts belong to the same corporate group, so it is not treated as a change of security authority.

Fix. Remove the key from client-delivered code and stop using a shared symmetric secret to protect a login exchange. Issue sessions only after a real credential check, bind entitlement to the authenticated subscriber, and validate the token's audience and role at the data host rather than accepting any token signed by the shared authority. Rotate the exposed key and invalidate every session minted through that path. Because the same pattern appears on two other applications, treat this as a platform-level correction.

Kill chain. Reconnaissance through actions on objective. Weaponization, delivery, installation, and command-and-control were not observed; exfiltration beyond a bounded sample was not performed.

Fig 05 · 3.1 Licensed market-data entitlement bypass through a client-side cryptographic key — Kill chain
Fig 05 · 3.1 Licensed market-data entitlement bypass through a client-side cryptographic key — Kill chain

3.2 Unauthenticated vendor account enumeration disclosing masked contact dataMedium, CVSS 5.3

In plain terms. The vendor portal issues its security token to anyone with no session. Using that token, an OTP-delivery endpoint distinguishes real vendor accounts from absent ones, and returns partially masked email and phone values for the real ones.

Masked contact data sounds minor. What it actually provides is a list of real vendor organisations, their email domains, and their phone prefixes — which is a targeted phishing list for the exchange's supply chain.

What. A security-token route issued an antiforgery token to a caller with no session. An OTP-delivery request then returned 200 for identifiers corresponding to real accounts and 404 "User not found" for one that did not, with the 200 responses including a masked delivery string: email domain in full with a short local-part fragment, and the first digits of a mobile number. A related masked-message endpoint accepted an identifier without checking that the caller owned it.

How we found it. Two requests and a sample.

First, request the security token with no session. It was issued. That is the gate removal.

Second, call the OTP endpoint with a candidate identifier and compare responses across a small set including one we expected to be absent. The status and body distinguished existence reliably.

Third, check the related masked-message endpoint with another user's identifier. It returned that user's masked message.

We retained a five-identifier sample and stopped. The escalation from enumeration to account takeover was not achieved and is not claimed.

Root cause. An antiforgery token issued without a session, and an account-state endpoint that answers without ownership validation and returns a distinguishable response for existing versus absent accounts.

Fig 06 · 3.2 Unauthenticated vendor account enumeration disclosing masked contact data
Fig 06 · 3.2 Unauthenticated vendor account enumeration disclosing masked contact data

Impact. An unauthenticated party determines which vendor identifiers exist and obtains partial contact data for real vendor organisations. That is a privacy exposure and a direct precursor to targeted phishing or credential guessing. Full email addresses, full phone numbers, credentials, and login completion were not obtained.

Fix. Require an authenticated session before issuing antiforgery tokens for data-returning routes, enforce an ownership check so a caller can only ask about their own identifier, return an indistinguishable response for existing and non-existent accounts, and apply the same ownership check to the masked-message endpoint.


Also confirmed — informational controls and observations

Seven informational observations were accepted and are counted separately from the confirmed total.

ObservationNote
Server accepts forged OTP ciphertextCiphertext decryption accepted without integrity validation
Credential-reflecting cross-origin policy on a data APIOrigin reflected with credentials on an unauthenticated route
Server signs attacker-supplied administrator claimsClaim accepted and signed, honoured by no endpoint
Path-case authentication bypassReaches only a static application shell — initially rated critical, rebanded
Server action invocation past the content-delivery edgeReturns only errors; no state change
No throttling on a remote-access loginForty sequential attempts without a limit
Header hygiene and verbose database errorVersion banners and a detailed error on several hosts

4. Kill chain summary

Fig 07 · 4. Kill chain summary
Fig 07 · 4. Kill chain summary
ChainReachedTerminated atExecuted
Market-data bypassStage 6 (exfiltration)Bounded sample retainedYes
Vendor enumerationStage 5 (collection)Five-identifier sampleYes
Forged OTPStage 4 (exploit)No downstream impact reachedYes
Signed admin claimStage 4 (exploit)No endpoint honours the claimYes
Server actionStage 3 (delivery)Errors onlyYes
Bid-collection bypassStage 1 (recon)Static shell — refutedYes
Wildcard archiveStage 1 (recon)Public data — refutedYes

5. What the shape of this engagement teaches

A public client cannot hold a secret, and this is still being rediscovered. The finding is not "authentication was missing." The host authenticated correctly — it returned 401 for absent and invalid tokens. What failed is that the login exchange trusted a key shipped to every visitor. Any design where the client possesses the means to authenticate itself inverts the security model, and it fails the moment anyone reads the bundle.

Read the client bundle as a credential store, not as code. Most of this engagement's highest-value work came from treating shipped JavaScript as a place where secrets might live. It is the same lesson as the source-map and schema-disclosure findings in other engagements: the artefacts you serve to make the application work are reconnaissance for the attacker who reads them.

A two-finding report from a 160-surface estate can be more valuable than a twenty-finding one. The value came from the ledger: 31 surfaces assessed, 129 liveness-only, 247 non-resolving, five claims refuted, and an explicit statement that absence of a finding on the unassessed majority carries no meaning. Without that ledger, two findings would read as a thin engagement. With it, they read as a measurement.

Refuting your own critical finding costs more than finding one. The bid-collection bypass was initially rated critical and is reported as informational after the reached paths turned out to be a static shell. It is excluded from the confirmed findings.

Masked data is still data. Partially masked contact details sound like a minor privacy issue. A list of real vendor organisations with their email domains and phone prefixes is a phishing target list. Severity should follow what the data enables, not how complete it looks.

Untested is not secure, and saying so five times is not repetition. Every statement about authenticated authorization in this report carries the same caveat because no member, vendor, administrator, clearing-member, or investor session was ever held. Repeating it is what stops a reader from inferring coverage that does not exist.

PriorityActionWhy firstEffort
1Rotate the exposed key and invalidate every session minted through that pathLicensed data is readable right now with no credentialVery low
1Remove the key from client-delivered code; issue sessions only after a credential checkThe architectural defect behind the exposureMedium
2Assess contractual and disclosure implications of the licensed-data accessCommercial and legal exposure independent of the technical fixOrganisational
2Require a session for antiforgery token issuance; enforce ownership on account-state routesVendor accounts enumerable with masked contact dataLow
3Apply the same correction to the two other applications reusing the patternFixing one host leaves two exploitableMedium
3Validate token audience and role at the data hostThe data host accepted a token it should not have trustedLow
4Add throttling to the remote-access loginForty attempts without a limitLow
4Validate integrity on OTP ciphertext rather than decrypting onlyForged ciphertext currently acceptedLow
5Estate-wide header and error hygieneVersion banners and verbose database errors across several hostsMedium

Notices

Authorization

This was an authorized security assessment conducted under a written engagement agreement with two separately authorized scope domains, with authorized exploitation under full-compromise scope.

No account was created. No bid was submitted and no record modified. No bulk data extraction was performed — where a large corpus was reachable, a bounded sample was retained. No email, password-reset, or invite flow was triggered against a real user. Minted tokens are held only in the assessment evidence store and do not appear in this document. No test infrastructure remains deployed against the client estate.

The assessment cannot certify that no side effect occurred in the client's own systems — logs, alerting, and rate-limit state — and does not claim that it can.

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 scope domain names
  • All IP addresses, network ranges, and hosting provider identities
  • All credentials, keys, tokens, and session values
  • Organisation and brand identifiers, including the exchange group and its subsidiaries
  • Third-party platform and vendor names specific to the deployment
  • Application namespace names, endpoint paths, and parameter names
  • The specific record counts, column names, and named securities used as proof
  • Personal names, vendor organisation names, and individual contact details
  • Exact calendar dates and clock times — replaced with wave and relative-day numbering
  • The specific ranked-surface and non-resolving counts that would fingerprint the estate scan

What was kept, deliberately: vulnerability classes, CWE and MITRE identifiers, CVSS vectors and their written rationale, protocol categories, and the full methodology — including every refuted claim, the downgraded critical, and the coverage ledger. These are the report's transferable value and they identify nobody.

Placeholders used throughout:

PlaceholderMeaning
exchange.exampleExchange group domain and subdomain fleet
data-svc.example, investor.exampleGroup-owned market-data service hosts
vendor-portal.exchange.exampleVendor tracking portal
clearing-archive.exchange.exampleClearing archive surface
international.exchange.exampleInternational exchange site
<redacted>Any credential, key, token, address, path, or identifier

Data handling

No licensed data is reproduced. The exposed corpus is described by record count and field class only — never by column names, security identifiers, or any actual row content. No vendor organisation is named and no masked contact value appears. No token, key, or session value appears. The named security used as proof is not identified.

Disclaimer

Findings reflect the state of the tested systems during the two-day assessment window. The shared edge was in an escalated block state for extended periods, which prevented live re-verification of several items; where that occurred the report relies on earlier recorded exchanges and says so. Nothing here should be read as a statement about the estate's state today.

Coverage is bounded and the boundary is stated. Thirty-one of 160 ranked surfaces received a full assessment. The remaining 129 were probed for liveness and ranked but not assessed in depth, and 247 discovered names did not resolve and were not tested at all. Absence of a finding on those hosts carries no meaning.

No authenticated testing occurred. The assessment never held a member, vendor, administrator, clearing-member, or investor session. Every statement about authenticated authorization is untested rather than verified secure.

Five claims were refuted, downgraded, or corrected during the engagement and are retained in the record — including one initially rated critical. They are documented as refuted rather than counted, because reporting them as compromises would have misstated the estate's posture.


Methodology and tooling by BlackBit. Every claim carries either retained evidence or an explicit statement of what is missing; refutations and corrections are published alongside confirmed findings. Published with the client's permission.

More in Banking

← All case studies