20,000 USDC
View results
Submission Details
Severity: high

Staker contract can be drained entirely via claim

Claim() doesn't burn TKN shares
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L56
so an attacker can drain all WETH from the contract

POC:

https://gist.github.com/justefg/deb2c1102fd6668405c1ba879567d215

Mitigation Steps:

Burn TKNs

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.