· Engineering notes
10 dangerous API configs in fintech SaaS (with checks)
Ship blockers we see in reviews and in our sample report shape: open CORS, mass assignment, stack traces, missing ownership checks. Each row has a fail signal and a fix direction. No portfolio percentages.
Artifact: config checklist
| # | Config | Fail signal | Fix direction |
|---|---|---|---|
| 1 | CORS Access-Control-Allow-Origin: * with credentials | Browser blocks or reflect-any-Origin in staging | Explicit allowlist; see security headers gate |
| 2 | Mass assignment: body accepts is_admin / role / balance | PATCH with extra field changes privilege or ledger | Allowlist DTO fields; reject unknown props |
| 3 | Stack traces or SQL text in 500 bodies | Error JSON includes file paths or query text | Generic client error; detail only in logs |
| 4 | No tenant check on GET /resources/{id} | IDOR / BOLA across tenants | tenant-swap protocol |
| 5 | Webhooks without signature + event_id dedupe | Replay doubles provision | webhook retry tests |
| 6 | No rate limit on expensive POST (e.g. webhooks) | Burst → 5xx, no 429 | rate limit / cost |
| 7 | Idempotency-Key ignored on payment create | Retry creates two charges | idempotency tests |
| 8 | Debug endpoints or Swagger UI on prod without auth | /docs or /debug public | Disable or protect; separate admin network |
| 9 | Spec says number, API returns string (amount) | Contract test fail; client parse bugs | Fix serializer; CI schema; sample Medium contract row |
| 10 | Long-lived tokens in query strings / logs | Token in access logs or Referer | Authorization header only; scrub logs |
Two checks you can run the same day
# Mass assignment probe (staging, your test user)
curl -sS -X PATCH "$BASE/v1/users/me" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"display_name":"x","is_admin":true,"role":"admin"}'
# Expect: extra fields ignored or 400 - never privilege change
# Error body probe
curl -sS "$BASE/v1/boom-test" -H "Authorization: Bearer $TOKEN" | head
# Expect: no stack frames, no SQL
Wire into release
Fold rows 1-7 into the Friday release checklist. Full OWASP mapping: API testing checklist. Product page: fintech & payment API testing.
Want the three configs most likely to fail your next security questionnaire named for your stack? Book a free 20-min test audit.