But change_gauge_weight function still exists which makes it possible to reproduce this. Also remove_gauge_weight function is present, that allows to completely remove gauge and i think that fix was to remove change_gauge_weight function.
Impact
Gauge can have bigger weight than was intended by protocol.
Lines of code
https://github.com/code-423n4/2024-03-neobase/blob/main/src/GaugeController.sol#L346-L348
Vulnerability details
Proof of Concept
M-01 from previous audit is still present. In this issue sponsor said that fixed it. I tried to check how it was fixed, but the link doesn't work for me.
But
change_gauge_weight
function still exists which makes it possible to reproduce this. Alsoremove_gauge_weight
function is present, that allows to completely remove gauge and i think that fix was to removechange_gauge_weight
function.Impact
Gauge can have bigger weight than was intended by protocol.
Tools Used
VsCode
Recommendation
Remove
change_gauge_weight
function.Assessed type
Error