Penetration Test Report
External, grey-box engagement · OWASP-aligned manual testing
Prepared for: Northwind Microfinance Ltd (fictional)
Prepared by: Martin Mwathi, Orvantis Security
| Report version | 1.0 (final) |
| Classification | Confidential — client eyes only |
| Engagement type | Web application + REST/GraphQL API penetration test |
| Testing window | 5 consecutive business days |
| Methodology | OWASP WSTG v4.2, OWASP API Security Top 10 (2023), manual-first |
| Scoring | CVSS v4.0 base scores |
| Retest | Included — performed after remediation window |
Orvantis Security was engaged to perform a manual, objective-driven penetration test of Northwind Microfinance's customer-facing web application and its supporting REST and GraphQL APIs. Testing was grey-box: we were provided two standard customer accounts and public documentation, and worked the application the way a motivated external attacker with a valid account would.
The assessment identified five issues. The most serious, taken together, allow an attacker holding only an ordinary customer login to read other customers' account data and transaction history, and to place orders at a price of their own choosing — a direct path to financial loss and a reportable data-protection breach. We judge the pre-remediation risk to the business as Critical.
Driven by an exposed administrative credential and a broken authorization control that, chained, expose customer financial data with no special access.
Two of these findings are not theoretical. We demonstrated, with working proof-of-concept, that a single customer account could reach data belonging to every other customer, and that the checkout flow would honour a price the customer set themselves. For a regulated microfinance business this is simultaneously a fraud exposure and a personal-data exposure under the Kenya Data Protection Act, 2019.
Every finding has a clear, mostly low-effort fix, and none require re-architecture. The two most serious issues are server-side authorization gaps that can be closed in days, not months. All five findings were re-tested after remediation and confirmed closed — see status in the summary table.
| Asset | Detail |
|---|---|
| Web application | app.xxxxxxxx.co.ke — authenticated customer portal |
| REST API | api.xxxxxxxx.co.ke/v2 |
| GraphQL API | api.xxxxxxxx.co.ke/graphql |
| Test accounts | 2 × standard customer roles (no admin access provided) |
Production payment-rail execution, denial-of-service testing, social engineering of staff, and third-party SaaS dashboards. Destructive testing was not performed; all exploitation was contained and reversible.
Testing followed the Orvantis offensive lifecycle — recon and mapping, threat modelling, manual exploitation, and chaining — prioritised by business impact rather than scanner output. No finding in this report was produced by an automated scanner alone; each was manually verified and reproduced. Where a weakness only became dangerous when combined with another, we report the chain, not the parts.
| ID | Finding | Severity | CVSS v4.0 | Retest |
|---|---|---|---|---|
| F-01 | Hardcoded administrative credentials in mobile API client | Critical | 9.3 | Closed |
| F-02 | Broken object-level authorization (IDOR) on account & statement endpoints | High | 8.3 | Closed |
| F-03 | Server trusts client-supplied price at checkout | Medium | 6.9 | Closed |
| F-04 | Session / JWT not invalidated on logout; excessive token lifetime | Medium | 5.9 | Closed |
| F-05 | Missing security headers & verbose server errors | Low | 3.1 | Closed |
The Android client ships with a static administrative API key and a fallback service account baked directly into the compiled binary. Any party who downloads the app and decompiles it — a five-minute exercise — recovers a credential that authenticates against privileged API routes without a user login.
# Recovered from decompiled smali, string table (redacted) X-Admin-Key: a9f3xxxxxxxxxxxxxxxxxxxxc01e service_user: svc-sync@xxxxxxxx.internal service_pass: xxxxxxxxxxxx # This key authenticates directly against: GET /v2/admin/customers → 200 OK (full customer directory) POST /v2/admin/adjustments → 200 OK (ledger write)
This single credential collapses the entire authorization model. It grants read access to the full customer directory and write access to the transaction ledger, with no user account required and no audit trail tied to a real person. In a microfinance context this is both a mass data-breach primitive and a fraud primitive.
Remove all credentials from the client. Privileged operations must never be reachable with a key the client holds — move them behind server-side, per-user authorization. Rotate the exposed key and service account immediately, and audit the ledger for adjustments made via the service account.
Closed. The key was rotated and removed from the build; the admin routes now reject client-held keys and require an authenticated, authorised session. Verified against build 2.x.x.
Account and statement endpoints authorise on authentication (is this a valid session?) but not on ownership (does this session own the record it asked for?). Changing the numeric account_id in a request returns another customer's data in full. IDs are sequential, so the entire customer base can be enumerated from one ordinary account.
# Logged in as customer A (account 100412). Request B's statement: GET /v2/accounts/100411/statements HTTP/1.1 Authorization: Bearer <customer-A session> HTTP/1.1 200 OK ← returns customer B's transactions, balance, KYC fields { "holder":"xxxxxxxxxx", "national_id":"xxxxxxxx", "balance": ... }
Any customer can read every other customer's financial records and KYC data (names, national ID, phone, balances). This is a personal-data breach under the Kenya Data Protection Act, 2019, with mandatory notification implications, and it undermines customer trust directly.
Enforce an ownership check on every object access, server-side: the authenticated principal must own, or be explicitly entitled to, the requested resource. Do not rely on unguessable or sequential IDs as a control. Apply the check at a central layer so new endpoints inherit it by default.
Closed. Cross-account requests now return 403 Forbidden; ownership is enforced at the service layer and covered by regression tests the client added.
The payment-initiation endpoint accepts an amount field from the client and uses it as the authoritative charge, rather than deriving the amount server-side from the order. An attacker can set any value, including near-zero.
POST /v2/orders/checkout HTTP/1.1 { "order_id": 55120, "amount": 0.01 } HTTP/1.1 200 OK ← order fulfilled for KES 0.01 instead of listed price
Direct financial loss: products or disbursements can be obtained for a fraction of their price. A business-logic flaw of this kind is invisible to scanners and to compliance checklists, yet trivially exploitable once found.
Never trust a client-supplied price or quantity. Derive the authoritative amount on the server from the order record at the moment of charge, and reject requests whose client-asserted total disagrees.
Closed. The amount is now computed server-side and the client value is ignored; tampered requests are rejected.
Logout clears the token client-side only. The issued JWT remains valid server-side for its full 30-day lifetime, with no revocation list. A token captured from a shared device, proxy log, or backup continues to authenticate long after the user believes they have signed out.
A stolen or lingering token grants extended account access that the user cannot actually terminate. The long lifetime widens every token-theft scenario.
Maintain server-side session state or a revocation list so logout genuinely invalidates the token. Shorten access-token lifetime (minutes) and use refresh tokens that can be revoked. Invalidate all sessions on password change.
Closed. Logout now revokes the token server-side; access-token lifetime reduced and refresh-token revocation implemented.
Responses omit Content-Security-Policy, Strict-Transport-Security and X-Content-Type-Options, and unhandled errors return full stack traces disclosing framework versions and internal paths. Individually minor; together they ease an attacker's recon and widen the impact of any future client-side flaw.
Add the standard security-header set at the edge, enable HSTS, and return generic error pages while logging detail server-side only.
Closed. Headers deployed and verified; error handling now returns generic responses.
Suggested order of work, by risk reduced per unit of effort:
| Priority | Action | Addresses | Effort |
|---|---|---|---|
| Immediate | Rotate & remove hardcoded admin key; audit ledger for misuse | F-01 | Low |
| Immediate | Enforce server-side ownership checks on all object access | F-02 | Low–Med |
| Short-term | Derive charge amount server-side; reject client totals | F-03 | Low |
| Short-term | Server-side session revocation; shorten token lifetime | F-04 | Medium |
| Hygiene | Deploy security headers; generic error handling | F-05 | Low |
Every item above was completed by the client and confirmed closed at retest. No finding in this engagement remained open at delivery.
Testing was manual-first and mapped to recognised standards: OWASP Web Security Testing Guide v4.2, the OWASP API Security Top 10 (2023), and the OWASP MASVS for the mobile client. Automated tooling is used only for breadth and coverage — never as the basis of a finding. Every issue in this report was reproduced by hand and carries a working proof-of-concept.
Recon & mapping: Amass, Subfinder, custom enumeration · Testing & exploitation: Burp Suite Professional, ffuf, custom scripts · Mobile: static decompilation + dynamic instrumentation · Scoring: CVSS v4.0.
Severities combine the CVSS v4.0 base score with business context — a technically identical flaw is rated higher where it touches regulated data or money. Scores describe risk to this environment, not a generic one.
Orvantis Security is a founder-led offensive-security practice. The same person scopes, tests and reports every engagement — no hand-offs, no account managers, no scanner output dressed up as a penetration test. Findings are proven with working proof-of-concept or they are not reported, and a retest is included until the risk is actually closed.
Attacker mindset. Defender mission. orvantis.co.ke · [email protected]