Executive summary
What we found, in plain words
iSpyCyber tested the customer web app, public API and admin portal of a lending company over ten working days. We found 14 issues, including one critical and three high-risk weaknesses that together would have let an outside attacker act as any customer and reach customer data in the database. All four were fixed and verified at retest.
Overall risk at test: Critical
One internet-facing authentication bypass (F-01) put every customer account at risk.
Overall risk after retest: Low
11 findings fixed, 1 partly fixed and 2 low-risk items scheduled.
What matters most
Anyone could log in as any customer (F-01). The API trusted unsigned tokens, so a forged token was enough.
Customers could see and change each other’s data (F-02). Statements and payout beneficiaries were reachable by guessing IDs.
The admin portal could be taken over (F-03, F-04). A support ticket could hijack an admin session, and the report export was open to SQL injection.
What is working well
- Strong password policy and MFA on customer login.
- Customer-facing API uses parameterised queries: no injection found there.
- WAF in front of the app blocked common attack payloads.
- Failed logins and admin actions are logged centrally with alerts.
- No secrets or API keys found in the front-end code bundles.
Scope and approach
What we tested and how
| Target | Notes |
|---|---|
| Customer web application | React single-page app used by borrowers |
| Public REST API | 64 documented endpoints (OpenAPI 3.0) |
| Admin portal | Internal operations portal, reached over VPN |
| Approach | Grey box, authenticated (three user roles): customer, branch agent and administrator (two accounts per role). No source code. |
| Testing window | 3 to 14 November 2026 (10 working days), retest 20 to 21 November 2026 |
We follow the OWASP Web Security Testing Guide and the OWASP API Security Top 10 (2023), plan and run tests in line with PTES and NIST SP 800-115, and score every finding with CVSS v3.1. Automated scan results are always confirmed by hand.
Findings
All 14 findings at a glance
| ID | Finding | Severity | CVSS | Retest |
|---|---|---|---|---|
| F-01 | API accepts unsigned JSON Web Tokens (alg: none) | Critical | 9.1 | Fixed |
| F-02 | Broken object-level authorisation on statements and beneficiaries | High | 8.1 | Fixed |
| F-03 | SQL injection in the admin report export | High | 7.2 | Fixed |
| F-04 | Stored cross-site scripting in support tickets, shown in the admin portal | High | 7.6 | Fixed |
| F-05 | No attempt limit on OTP verification | Medium | 5.9 | Fixed |
| F-06 | CORS policy trusts any origin with credentials | Medium | 6.5 | Fixed |
| F-07 | Profile API returns more personal data than the app needs | Medium | 4.3 | Fixed |
| F-08 | Refresh tokens survive logout and are not rotated | Medium | 5.3 | Partially fixed |
| F-09 | Outdated jQuery with known XSS issues in the admin portal | Medium | 6.1 | Fixed |
| F-10 | Missing or weak security headers | Low | 3.1 | Open |
| F-11 | Stack traces shown in API error responses | Low | 3.1 | Fixed |
| F-12 | Legacy TLS 1.0 and 1.1 enabled on the admin portal | Low | 3.1 | Fixed |
| F-13 | Web server version disclosed in headers | Info | n/a | Fixed |
| F-14 | Browser autocomplete enabled on OTP and password fields | Info | n/a | Open |
Detail
How we report each finding
Every finding in the full report follows the same structure: what we found, sanitised proof, business impact and a clear fix. Here are the four that mattered most.
F-01: API accepts unsigned JSON Web Tokens (alg: none)
Critical CVSS 9.1 | CWE-347 | Retest: Fixed
What we found. The API gateway accepts JSON Web Tokens whose header declares the algorithm "none" and that carry no signature. The claims inside the token, including the customer ID and role, are trusted without being verified.
Impact. Anyone on the internet can create a token for any customer ID and act as that customer: read balances and statements, change profile details and start transactions (which are then held by OTP). Changing the role claim to "admin" also opened admin-only API functions.
Fix. Validate every token against an allow-list of algorithms (RS256 only) and reject unsigned tokens. Check the issuer, audience and expiry claims on every request.
F-02: Broken object-level authorisation on statements and beneficiaries
High CVSS 8.1 | CWE-639 | Retest: Fixed
What we found. The statement and beneficiary endpoints return or update records by ID without checking that the record belongs to the logged-in customer. IDs are sequential, so they are easy to guess.
Impact. Any logged-in customer could download other customers' loan statements and add or change their payout beneficiaries, which could redirect disbursements.
Fix. Check ownership on the server for every object request, using the customer ID from the verified token. Use random identifiers (UUIDs) as defence in depth.
F-03: SQL injection in the admin report export
High CVSS 7.2 | CWE-89 | Retest: Fixed
What we found. The from_date value is joined straight into a SQL query. A time-based payload delayed the response by five seconds every time, which confirms the injection. The database account used by the portal can read every schema.
Impact. An attacker with an admin session, or one gained through F-04, could read or change any record in the database, including customer KYC data.
Fix. Use parameterised queries or the ORM's bound parameters for every query. Validate date inputs against a strict format before use.
F-04: Stored cross-site scripting in support tickets, shown in the admin portal
High CVSS 7.6 | CWE-79 | Retest: Fixed
What we found. Ticket subjects written by customers are shown in the admin ticket queue without output encoding. The admin session cookie is also missing the HttpOnly flag.
Impact. A customer account could take over the session of any admin who views the queue, and from there use F-03.
Fix. Encode all user content for the HTML context it is placed in (use the framework's default escaping). Set HttpOnly, Secure and SameSite on all session cookies.
Next steps
Remediation roadmap
Now (0 to 7 days): Close the critical and high issues (F-01, F-02, F-03, F-04). Enforce signed tokens, add ownership checks, parameterise the export query and encode ticket output.
Next 30 days: Harden authentication and the API (F-05, F-06, F-07, F-08, F-09). Limit OTP attempts, lock down CORS, trim API responses, fix token lifetime and upgrade jQuery.
Next 90 days: Raise the baseline (F-10, F-11, F-12, F-13, F-14). Roll out security headers and TLS policy, add authorisation tests and SCA to CI, and plan quarterly API testing.
Retest
Retest results
We retested every finding on 20 to 21 November 2026 with the original steps and checked for bypasses. All 4 critical and high issues are closed. 11 of 14 findings are fixed, 1 is partly fixed and 2 low-risk items are scheduled for the next release.
Get a report like this for your systems
Our consultants scope a test around your applications, APIs and cloud, then work with your team until every critical issue is closed. Talk to an expert.
This sample describes a fictitious engagement. The client, domains, data and findings are illustrative and do not refer to any real organisation.