Executive summary
What we were asked to do
A banking group asked us to attack its customer-facing digital estate: online banking, agent banking, bancassurance, and the API gateway that fronts them. This is the highest-consequence sector there is for this kind of work, so the rules of engagement were correspondingly strict — we were authorized to prove access but not to move money, not to alter customer records, and not to create accounts that could transact.
Principal findings
We found critical and high-severity weaknesses across the estate, and the pattern was unusual. The infrastructure layer was well built — load balancers, WAFs, and vendor platforms were mostly current. But the application layer had a set of mutually reinforcing authentication weaknesses that would each be survivable alone and are serious together: session tokens accepted without signature verification, cross-origin policy that trusts every website on the internet, a CSRF token that is generated but never checked, unsalted password hashing that makes the hash itself a reusable credential, and device-fingerprint tokens that never change between sessions. No single one of these is a bank robbery. Stacked, they remove most of the defense between an attacker and an authenticated session.
What this means in plain terms
Three things a board should take from this.
- The vulnerabilities are individually mundane and collectively severe. Every one of the findings below is a well-known class of bug that a mature programme should have caught. None is exotic. What makes the report alarming is the combination: an attacker who gets past one control finds the next one already defeated.
- One finding means the password hash is the password. Passwords are hashed in the browser with unsalted SHA-512. The server then compares that hash. An attacker who obtains a stored hash — from a log, from a backup, from anywhere — can authenticate directly without ever knowing the password. This is a design flaw, not a configuration error, and it requires a change to how authentication works.
- The vendor platform is part of your perimeter. Several findings trace to a commercial banking platform whose patterns are shared across institutions. The device-fingerprint tokens and the client-side hashing function are vendor design decisions. That constrains what the bank can fix unilaterally and makes the vendor relationship a security dependency.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | Session tokens are accepted without signature verification | Anyone who can construct a token shape can present it as a session. This is the single highest-consequence finding in the report and it is a few lines of configuration in the token library — but confirming the exploit impact requires knowing the user-ID format, which we could not obtain without an account. | Engineering leadership + vendor |
| 2 | Passwords are hashed in the browser with unsalted SHA-512 | This makes the transmitted hash a permanent, reusable credential. It cannot be fixed by hardening; authentication has to be redesigned so the plaintext reaches the server over TLS and is hashed server-side with a modern algorithm. | Security architecture + vendor |
| 3 | CSRF tokens are issued but never verified | The control exists and does nothing, which is worse than absent because it reads as mitigated in any audit. The check is missing server-side. | Application engineering |
| 4 | Cross-origin policy reflects any origin with credentials on the agent banking API | Any website an agent visits can drive the agent banking API as that agent. For a channel used by third-party agents handling cash, that is a direct fraud surface. | Application engineering |
| 5 | Shared secrets and device tokens across portals | The same hardcoded token, the same device fingerprints, and the same hashing function appear on a test environment and the production online banking portal. One compromise reaches both. | Platform ownership + vendor |
What we did not get
We did not move funds, alter customer records, or obtain a working authenticated session on any production banking channel. We did not complete a token-forgery exploit end to end, because the token format was accepted but its user identifier scheme could not be determined without a valid account — and creating one that could transact was outside the rules of engagement.
One SQL injection was confirmed to execute on a login endpoint. We could not extract data through it: the server catches all database errors, does not reflect query results, and no time-based differential was present. That makes it a confirmed injection with no demonstrated extraction path, and it is reported at exactly that strength.
Engagement outcome
An authorized security assessment of a regional banking group's digital channels identified critical and high-severity weaknesses, primarily in authentication and session handling rather than infrastructure. No customer funds were moved, no customer records were altered, and no production account was compromised during testing. All findings were disclosed under a confidentiality agreement with prioritized remediation guidance, and the authentication design issues are being addressed with the platform vendor.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active machine time | ~28 hours of dense execution |
| Orchestration waves | 31 |
| Total Swarm Size | 200 |
| Root workstreams | 6 |
| Distinct agent roles | 6 |
| Tool calls executed | 17,602 |
| Shell commands | 12,991 |
| File reads / writes / edits | 2,734 / 708 / 248 |
| Controlled-access gate checks | 155 |
| Findings described in section 3 | 2 critical, 6 high, 2 medium, 1 low |
| Customer funds moved | None |
| Production sessions obtained | None |
The 17,602 tool calls across four days is the highest density in our published set, and it reflects the nature of banking assessment: every action against a live financial channel carries consequence, so each step is gated, verified, and recorded. The 155 gated actions are a feature — they are the points where the engagement paused to confirm an action was within scope before taking it.
Agent topology
An unusually exploit-heavy distribution. Recon established the surface quickly and most of the engagement's value came from deep, patient work on authentication mechanics.
| Role | Sessions | Responsibility |
|---|---|---|
| Exploit | 157 | Authentication, token analysis, injection, credential replay, PII assessment |
| Recon | 32 | Surface mapping, API schema discovery, OSINT |
| Orchestrator | 6 | Scope, wave design, authorization checks, merge |
| Advisor | 3 | Independent review and chain analysis |
| General / Explore | 2 | Long-tail breadth |
Wave timeline
| Wave | Focus | Outcome |
|---|---|---|
| 1 | Estate recon: DNS, subdomains, OSINT, HTTP triage | Surface mapped across group domain and channel subdomains |
| 2 | API gateway schema discovery and authentication mapping | Full API specification recovered |
| 3 | Online banking authentication mechanics | CSRF non-enforcement, static device tokens, client-side hashing |
| 4 | Agent banking API testing | Credentialed CORS, internal IP leak, no rate limiting |
| 5 | Bancassurance channel and token analysis | Token-signature bypass, PII surface assessment |
| 6 | Injection and cross-portal correlation | Confirmed injection, shared-secret correlation across environments |
2. What held
The infrastructure layer deserves credit, and the honest picture requires stating it.
- Load balancers and edge filtering. Most of the estate sat behind commercial load balancers that correctly overwrote forwarded headers rather than trusting them. Header-spoofing attempts achieved nothing.
- Database error handling. This cost us a finding's impact and is genuinely good practice: every database error was caught and returned as a generic response. We confirmed injection executed but could not extract data because the application leaks nothing.
- Web application firewall on administrative paths. Management surfaces were blocked at the edge consistently.
- No default credentials anywhere. Not on the API gateway, not on the vendor platform, not on any administrative interface. This is the single most common banking finding and it was absent.
- No customer data exfiltrated. The PII assessment surfaces were probed and did not yield extraction paths within the rules of engagement.
The database error handling in particular deserves specific praise. It did not prevent the injection from existing, but it prevented it from being useful — and that is exactly what defense in depth is supposed to achieve.
3. The findings that mattered
How the estate was mapped
3.1 Session tokens accepted without signature verificationCritical
In plain terms. The bancassurance channel issues its users a session token. We found that the application accepts tokens whose signature has not been verified — including tokens declaring no signature algorithm at all, which is a construction the token format explicitly allows but no server should trust.
This is the finding with the highest potential consequence in the report. A token that the server will accept without verifying its signature is not a credential; it is a suggestion.
What. The token-validation path on the bancassurance channel accepted a token whose header declared no signing algorithm, and whose signature segment was empty. The token was accepted past the authentication check. The remaining obstacle was the user identifier: the server accepted the token structure but rejected the payload because the identifier format did not match a known user.
How we found it. By constructing tokens rather than guessing passwords. The test sequence was:
- Obtain a real token from the channel's login flow.
- Decode its header and payload to learn the claim structure and the identifier format in use.
- Re-issue the same claims with the algorithm field removed and the signature stripped.
- Submit and record whether the server's rejection is about the token's authenticity or about its contents.
Step four is the whole finding. A rejection that says "unknown user" is not the same as a rejection that says "invalid signature." Only the second means the check is working. Here the response indicated the contents were the problem, meaning the authenticity check had already passed.
Root cause. The validation routine does not pin an expected algorithm, so it honours whatever the token declares — including "none." This is a well-documented class of flaw in token handling, and the fix is a single configuration line that whitelists the expected algorithm.
Impact. If an attacker knows or can guess a valid user identifier, they can present an unsigned token and be treated as that user. We could not complete the chain because the identifier scheme was not derivable without an account. The finding is the accepted unsigned token, not a demonstrated takeover, and it is reported at that strength.
Fix. Pin the accepted algorithm to the expected value in the validation library and reject any token declaring a different one. This is a configuration change measured in minutes, and it should be treated as urgent regardless of the exploitation caveat.
Kill chain. Stage four reached, stages five onward blocked on identifier knowledge.
3.2 Passwords hashed in the browser with unsalted SHA-512High
In plain terms. When a user logs in to online banking, their password is hashed in the browser before being sent. The hash is unsalted — the same password always produces the same hash — and the server compares that hash.
The practical consequence is that the hash is the password. Anyone who observes or obtains a stored hash can present it directly and authenticate, without ever learning the original password. No cracking required.
What. The login form's client-side script computes an unsalted SHA-512 digest of the submitted password and sends the digest rather than the plaintext. The server compares against a stored value derived the same way.
How we found it. By reading the login form's JavaScript. The hashing function is named and visible in the delivered page, and its output field is the one submitted to the server. That establishes the design without needing to authenticate.
The severity comes from a second observation: the same function appears on both the test environment and the production portal. That means hashes are portable across environments, and a hash captured from a test system is usable against production for any account that exists in both.
Root cause. A vendor design pattern that predates current practice. Client-side hashing was once used to avoid transmitting plaintext over unencrypted connections. With TLS mandatory, it adds nothing and introduces replay.
Impact. Any exposure of a stored or transmitted digest is equivalent to exposing the password itself, permanently, for every account sharing that password. It also defeats password-change guidance, because a user reusing a password across systems produces a hash that is valid on both.
Fix. This is a redesign, not a patch: transmit the plaintext over TLS and hash server-side with a modern salted algorithm. The vendor relationship governs the timeline.
3.3 Cross-origin policy reflecting any origin with credentialsCritical
In plain terms. The agent banking API accepts requests from any website and allows credentials. In plain terms, any page an agent visits can act as that agent against the API — reading responses and submitting actions.
Agent banking is a cash-handling channel operated by third parties. That makes cross-origin trust a fraud surface rather than a privacy issue.
What. The API reflected any submitted origin value — including arbitrary domains, a bare wildcard, and the literal null — with credentialed access allowed and an internal address appearing alongside the reflection.
How we found it. Standard header inspection with three distinct origin values, chosen to distinguish reflection from an allowlist:
- An arbitrary external domain, to test reflection.
- A literal wildcard, to test naive handling.
- The literal
null, which browsers send from sandboxed and file contexts and which no correct policy should ever accept.
All three were honoured. That pattern is diagnostic: an allowlist rejects at least one of them.
Root cause. Middleware reflecting the request's origin rather than validating it against a list.
Impact. An agent who visits a malicious page while logged in can have their session driven by that page. For a cash-handling channel this is a direct fraud path.
Fix. Replace reflection with an explicit origin allowlist, remove credential allowance from any wildcard, and stop emitting internal addresses in response headers.
3.4 CSRF token issued but never verifiedHigh
In plain terms. The online banking login form includes a CSRF token — the standard defense against cross-site request forgery. The form submits it. The server does not check it.
A control that is present and ineffective is worse than one that is absent, because it appears in audits as mitigated.
What. Form submissions were accepted with the CSRF field omitted entirely. The server's rejection path concerned a different token (the view state), not the CSRF value — which is how we distinguished "CSRF is checked and the request is malformed" from "CSRF is not checked."
How we found it. By removing exactly one field from an otherwise valid submission and comparing the error. The error named the view-state token, not the CSRF token. That is the differential that proves non-enforcement without needing a browser-based forgery attempt.
Root cause. The framework's CSRF feature was enabled for token generation but the server-side verification interceptor was not registered on the login route.
Impact. Any site can submit a login or form action on a user's behalf. Combined with the static device tokens, the practical barrier to a forged session is materially lower.
Fix. Register the verification interceptor on the login route and fail closed when the token is absent.
3.5 Device fingerprint tokens constant across sessionsHigh
In plain terms. The banking platform sets device-fingerprint tokens to bind a session to a recognised device. Those tokens never change — the same values appear on every session, and the same values appear on the test environment.
A device-binding control whose value is a constant is not binding anything. Anyone who observes the value once can reproduce it forever.
What. Two device-identifier tokens were observed with identical values across separate sessions and across two different environments.
How we found it. By comparing token values across sessions rather than assuming they were unique. Session-fixation testing normally checks whether identifiers change; here the identifiers were literally constant strings across environments with different purposes.
Root cause. Vendor design. The fingerprint tokens are static configuration rather than per-device derived values.
Impact. Device binding provides no assurance. Session-fixation and replay defenses that depend on this control are effectively absent.
Fix. This is vendor-side. Raise it as a platform finding and require a per-device derived value.
3.6 Confirmed SQL injection with no extraction pathHigh
In plain terms. A login endpoint accepted injection payloads and the payloads reached the database. We confirmed execution. We could not extract anything through it.
We are reporting this as confirmed injection with undemonstrated extraction, because that is the truth. It is a real defect that needs fixing, and it is not a data breach.
What. Injection into the login endpoint was confirmed to reach the query layer, evidenced by response differentials between valid and invalid payload structures. All standard extraction techniques failed: the application returns a generic error for every database exception, does not reflect query results, exhibits no time-based differential, and provides no boolean oracle.
The endpoint also applies input-format validation that constrains payload construction — an email-format check on the identity field means certain payload syntaxes are rejected before reaching the query.
How we found it. Systematic technique coverage rather than a single clever payload. We tested union-based reflection, error-based, time-based, and boolean-based extraction, plus file-write techniques. Each was recorded with its result. The file-write attempts executed but the resulting files were not reachable over HTTP.
Root cause. Unparameterised query construction in the login path.
Impact. Undetermined. The injection is real; the data exposure is not demonstrated. An attacker with different environmental knowledge — server filesystem layout, or a blind channel we did not find — might reach data. Severity is High on the defect, not on the demonstrated outcome.
Fix. Parameterise the query. The error handling that prevented extraction is good practice and should be retained regardless.
3.7 Shared secrets and infrastructure across environmentsHigh
In plain terms. A test environment and the production online banking portal share hardcoded secrets: an encryption key, a chatbot token, device fingerprints, and the same hashing function. One compromise reaches both.
Test environments are supposed to be disposable and isolated. When they share production secrets, they become production attack surface with weaker monitoring.
What. Multiple values appeared identically across a test environment and the production portal.
How we found it. By diffing the delivered client code from both environments rather than treating each independently. The comparison was the method.
Root cause. Environment configuration derived from a shared base without secret isolation.
Impact. The test environment is a staging ground with production credentials. Its monitoring is typically weaker and its exposure is typically higher.
Fix. Derive environment secrets independently. Treat any shared value as compromised and rotate.
Also confirmed
| Finding | Severity | Note |
|---|---|---|
| No rate limiting or lockout on login endpoints | High | Twenty rapid attempts processed without throttle or challenge |
| Internal address disclosed in cross-origin headers | Low | Internal host and port appearing alongside reflected origins |
| Content-security policy permitting inline script | Medium | Two channel properties; weakens XSS defense |
| HTTPS-to-HTTP downgrade redirect on a static host | Medium | One image host redirects to plaintext |
4. Kill chain summary
| Chain | Reached | Terminated at | Executed |
|---|---|---|---|
| Token signature bypass | Stage 4 (exploit) | User identifier format unknown | Partially |
| Cross-origin trust | Stage 4 (exploit) | Primitive proven, no victim | Yes |
| SQL injection | Stage 4 (exploit) | No extraction channel | Yes |
| Hash-as-credential | Stage 3 (delivery) | No captured hash available | Modelled |
| CSRF forgery | Stage 3 (delivery) | No victim session | Modelled |
| Static device tokens | Stage 3 (delivery) | No victim session | Modelled |
| Authenticated session | — | Not achieved | No |
5. What the shape of this engagement teaches
Banking findings are rarely exotic, and that is the point. Not one finding here is novel. Every one is a documented class with a documented fix. What made this report serious is the composition: an attacker who defeats the CSRF check still has to deal with the device tokens, but the device tokens are constant; who deals with those still faces the token signature, but the signature is not verified. Each failure lowers the cost of the next.
A control that runs but does not check is a liability. The CSRF token is generated, delivered, and submitted. It is not verified. Any audit checklist asking "is CSRF protection present" answers yes. The only way to know is to remove the token and read which error comes back — a differential test, not a presence test.
Client-side hashing has to be retired, not hardened. Unsalted client-side SHA-512 was a reasonable practice when connections were not encrypted. Under TLS it is strictly worse than sending plaintext, because it converts every hash exposure into a permanent credential. Sector-wide, this pattern persists in vendor platforms and needs a collective conversation with the vendor rather than a per-bank fix.
Reporting a partial result honestly is the hardest skill. The token bypass is Critical severity on the defect and unproven on the outcome. The SQL injection is High severity on the defect and unproven on extraction. Both are stated exactly that way, with the blockers named. A report that claimed either as a full compromise would be easier to sell and would be wrong.
Test environments are production attack surface with worse monitoring. Shared keys, shared tokens, shared device identifiers, shared hashing. The test environment is where an attacker goes to learn about production without tripping the alarms.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Pin the accepted token algorithm on the bancassurance channel | Minutes to configure; removes a Critical authentication bypass | Very low |
| 2 | Register the CSRF verification interceptor on the login route | The control exists and is inert; one interceptor registration | Very low |
| 3 | Replace reflected cross-origin policy with an allowlist and drop credential allowance | Closes the agent-fraud surface | Low |
| 4 | Stop emitting internal addresses in response headers | Trivial hygiene with real recon value removed | Very low |
| 5 | Parameterise the login query | Confirmed injection, even without demonstrated extraction | Low |
| 6 | Add rate limiting and lockout to all login endpoints | Restores the last safety net on every channel | Medium |
| 7 | Isolate environment secrets; rotate everything currently shared | Removes the test-environment shortcut to production | Medium |
| 8 | Redesign authentication to server-side salted hashing | Structural fix; vendor-dependent timeline | Programme |
| 9 | Require per-device derived fingerprint values from the vendor | Structural fix; vendor-dependent | Programme |
Notices
Authorization
This was an authorized security assessment. It was performed under a written engagement agreement with the system owner, who granted explicit permission to test the in-scope properties described above. All testing was conducted within the agreed scope and rules of engagement.
Banking-specific constraints applied throughout and are the reason for the engagement's high gate count: no funds were moved, no customer records were altered or deleted, no transaction-capable account was created, and no production session was hijacked. Where a confirmed defect could only be escalated by creating a transacting account, the assessment stopped and documented the defect at its proven strength.
Redaction
Every hostname, IP address, credential, identifier, and platform 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 channel property names
- All IP addresses, internal ranges, and ports
- All credential, key, token, and hash values
- Organisation and brand identifiers, including the group name and its channels
- Vendor platform names — generalised to "vendor platform" and "commercial banking platform"
- Personal names and individual identifying details
- Exact calendar dates and clock times — replaced with wave and relative-day numbering
- Internal system identifiers, endpoint paths, and parameter names specific to the deployment
What was kept, deliberately: vulnerability classes and CWE/OWASP categories, authentication architecture patterns (token validation, CSRF, device binding, client-side hashing), and the methodology — particularly the differential testing that proved non-enforcement. These are industry-wide and are what make the report actionable without identifying the client.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
bank.example | Corporate group domain |
online.bank.example | Online banking portal |
agent.bank.example | Agent banking API |
bancassurance.bank.example | Bancassurance channel |
test.bank.example | Test environment sharing production secrets |
vendor platform | Commercial banking platform underlying the portals |
<redacted> | Any credential, token, hash, address, or identifier |
Data handling
No customer data is reproduced. The personal-data assessment surfaces are described by category and outcome only — never by record content, account number, name, or identifier. No hash values, tokens, or keys appear. No endpoint path or parameter name is reproduced verbatim.
Disclaimer
Findings reflect the state of the tested systems during the assessment window. Banking systems change frequently; a finding here does not imply the condition persists today, and remediation status is not asserted.
Two findings are reported at defect severity with undemonstrated exploitation: the token-signature bypass (blocked on user-identifier knowledge) and the SQL injection (blocked on absence of any extraction channel). Both statements are deliberate and appear in the finding bodies, not only here. The database error handling that prevented SQL extraction is credited as a control that worked.
Methodology and tooling by BlackBit. Findings independently verified; partial results and blockers documented rather than rounded up. Published with the client's permission.