interledger / rafiki

An open-source, comprehensive Interledger service for wallet providers, enabling them to provide Interledger functionality to their users.
https://rafiki.dev/
Apache License 2.0
226 stars 77 forks source link

Make `backend` API resilient against replay attacks #2725

Closed njlie closed 6 days ago

njlie commented 1 month ago

See https://github.com/interledger/rafiki/pull/2709#discussion_r1596469843

In #2632 API signature validation was added to the backend service. This same approach was used for the auth service in #2709, but it was mentioned in the linked comment that it was vulnerable to replay attacks. That was addressed in the PR for the auth service but it needs to also be patched in the backend service as well.