Owner can call RaiseBoxFaucet::burnFaucetTokens function to burn a specified amount of RaiseBoxtokens.
When owner calls this function the full balance of the contract is transfered to the owner no matter how much is burned.
Likelihood:
The contract gets depleted every time the burnFaucetTokensfunction gets called so likelyhood is 100%.
Impact:
The docs specifies that owner can not claim faucet tokens but the owner effectivelly can claim tokens through this function by inputting a small amount to burn and then keep the whole balance of the RaiseBoxFaucetcontract.
Documentaion:
cannot claimfaucet tokens
Flow
Owner calls burnFaucetTokensfunction to burn 100 tokens
The function transfer the full balance of the RaiseBoxFaucetcontract to the owner depleting the faucet
The 100 tokens get burned from the owner leaving the owner with the contracts full balance minus the 100 tokens
Add this test to the test suite:
Output:
Burn the tokens directly from the RaiseBoxFaucetcontract:
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.