mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-20 13:37:35 +02:00
The public payment status endpoint returned the stored preimage in the pending-payment fall-through, leaking valid preimages of unpaid invoices to unauthenticated callers on funding sources that generate the preimage at invoice creation (FakeWallet, CoreLightning, CLNRest, LndRest, LndGrpc, Eclair). Only expose the preimage once the payment is actually successful and scrub it from details in the exception branch. Adds a regression test covering unauthenticated, invalid-key, non-owning-key, expired-invoice and paid-control cases. |
||
|---|---|---|
| .. | ||
| api | ||
| e2e | ||
| regtest | ||
| unit | ||
| wallets | ||
| __init__.py | ||
| conftest.py | ||
| copilot_prompt.md | ||
| docker-compose.yaml | ||
| helpers.py | ||