What Happened
Mudit Gupta’s October 28, 2021 analysis describes the prior day’s Cream exploit: leveraged vault-share exposure and a donation changed the vault exchange rate, creating debt beyond the account’s collateral. It reports over $130 million extracted from available lending assets. Mudit Gupta incident analysis.Attack Mechanism
The attacker built leveraged exposure to vault shares and then donated underlying assets directly into the vault. The donation increased the vault’s assets per share, which increased the collateral value reported to the lending system. Borrowing against that amplified value let the attacker extract other available assets. The amplification matters: a direct donation costs assets, but when the attacker already holds a large leveraged share position, the gain in borrowing capacity can exceed that cost. A price derived from the same manipulable vault balance is not independent collateral evidence. Event signatures and layouts differ from function selectors. The example inspects a configured market’s borrowing calls and reads its price explicitly around those operations. Setreader to the deployed price oracle and query to the calldata for its market-price getter. Attach the assertion to that market and select borrow(uint256). The pre-call snapshot detects a price raised earlier in the same transaction, even if it is restored after borrowing.

