init()
function in InitBipSeedGauge
contract is meant to be called one time on deployment but it is not restricted and disabled after successful deployment.
The function init()
function in InitBipSeedGauge
contract ontract is meant to be called one time on deployment as we can see there is no access control to restrict the function from calling in future. The function init()
use to call the functions such as whitelist/delist tokens and setMilestoneStem
, incrementTotalDepositedBdv
etc for one time at deployment. If these values are set afterwards to other value by the protocol then as there is no access control in this function, anyone can call this function and reset the values to values defined in incrementTotalDepositedBdv
. By enforcing or disabling the function will restrict the access after deployment.
Vulnerable Function
Anyone can change the parameters those were set initially in while calling the init()
function on deployment.
Manual Review
Use a modifier so that function is restricted or disable to the function after deployment.
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.