There is no check whether the passed weight from GUILD holder is greater than 0.
ERC20Gauges.sol#L219-226
Weve been discussing potential scenario where this can be used to create an infinite loop in _decrementWeightUntilFree as the increment of i is done only in case userGaugeWeight is different than 0:
ERC20Gauges.sol#L500-L539
That way if a user manages to put a gauge with 0 weight at 0 position in his userGauges and after that all the others, he can effectively avoid slashing and grief the applier who calls applyGaugeLoss for him.
Other than that transfer, transferFrom and burn will always lead to infinite loop if user doesnt have enough balance and weight has to be freed, but there is weight of 0 in the first iteration of the for loop above.
Verify that the weight passed is greater than 0, that will mitigate the possible griefing possibility.
