Lumen Payments
Findings, payments API (TypeScript)
- 1Critical
- 2High
- 4Medium
- 3Low
| ID | Finding | Severity | Status |
|---|---|---|---|
| C-01 | Refund amount not checked server-side | Critical | Fixed |
| C-02 | SQL built from string concatenation | High | Fixed |
| C-03 | Secrets read from a committed file | High | Retest |
| C-04 | Missing authorisation on /export | Medium | Open |
| C-05 | Verbose errors in production | Medium | Fixed |
| C-06 | Weak random for reset tokens | Low | Open |
Opened, C-01
const amount = req.body.amount await ledger.refund(orderId, amount) // no check against the captured total
Fix Load the captured total from the ledger and reject refunds above it; add a test for the limit.
Sample, fictional company






