The deposit token address is not checked,anyone malicious token can be deposit into treasury, result in treasury deposit dos due to overflow
treasury.sol:
From above code we can see the address of deposit token is not checked.
An malicious user can depoly a malicious token , and then deposit type(uint256).max into treasury. The calculate the totalValue can be overflow result in deposit DOS
deposit DOS
Eye
add a whitelist deposit token or add access control to deposit function
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.