Submitted by cmichel, also found by leastwood
The TreasuryAction.claimCOMPAndTransfer function uses pre- and post-balances of the COMP token to check which ones to transfer:
Note that anyone can claim COMP tokens on behalf of any address (see Comptroller.claimComp).
An attacker can claim COMP tokens on behalf of the contract and itll never be able to claim any compound itself.
The COMP claimed by the attacker are stuck in the contract and cannot be retrieved.
(One can eventually get back the stuck COMP by creating a cCOMP market and then transferring it through transferReserveToTreasury.)
Dont use pre-and post-balances, can you use the entire balance?
jeffywu (Notional) disagreed with severity and commented:
pauliax (judge) commented:
