Skip to content

fix: prevent replay of solved Altcha challenges - #41

Open
code-cap-com wants to merge 1 commit into
FriendsOfShopware:mainfrom
code-cap-com:fix/prevent-challenge-replay
Open

code-cap-com wants to merge 1 commit into
FriendsOfShopware:mainfrom
code-cap-com:fix/prevent-challenge-replay

Conversation

@code-cap-com

Copy link
Copy Markdown

A solved challenge stays valid until it expires (5 min), and nothing marked it as used, so one solved payload could be replayed for every submission.

After a successful verification (PoW and server-signature payloads) the challenge signature is stored in cache.app until the challenge's own expiry (fallback TTL 3600 s). A signature already present is rejected.

A solved challenge stays valid until it expires (5 min), and nothing
marked it as used, so one solved payload could be replayed for every
submission.

After a successful verification (PoW and server-signature payloads) the
challenge signature is stored in cache.app until the challenge's own
expiry (fallback TTL 3600 s). A signature already present is rejected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant