Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Droll Shamrock Jaguar - Signature replay possible in GovernanceStakerOnBehalf, as chainID is not added to the signature #74

Open
sherlock-admin2 opened this issue Dec 22, 2024 · 0 comments
Labels
Won't Fix The sponsor confirmed this issue will not be fixed

Comments

@sherlock-admin2
Copy link

Droll Shamrock Jaguar

Medium

Signature replay possible in GovernanceStakerOnBehalf, as chainID is not added to the signature

Summary

As the protocol is going to be deployed on multiple chains "Ethereum, Arbitrum, Rari Chain, zkSync Mainnet, Base, Polygon, OP Mainnet", this could mean that signatures could be reused to stake/stake more on behalf of a user.

Vulnerability Detail

There is no chain.id in the signed data

Impact

If a malicious user does a stakeOnBehalf, stakeMoreOnBehalf, chainId is missing which means that the same stake can be replayed on a different chain for the same account.

Code Snippet

https://github.com/sherlock-audit/2024-11-tally/blob/main/staker/src/extensions/GovernanceStakerOnBehalf.sol#L82-L96

Tool used

Manual Review

Recommendation

Include the chain.id in what's hashed

@sherlock-admin3 sherlock-admin3 added the Won't Fix The sponsor confirmed this issue will not be fixed label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Won't Fix The sponsor confirmed this issue will not be fixed
Projects
None yet
Development

No branches or pull requests

2 participants