Skip to content
Business logic Write-up Advanced

88MPH Vulnerability Exploit and Get Free Crypt0S $$$

The vesting contract did not update a reward accounting variable when a user deposited, so users could deposit and immediately withdraw vested tokens before maturity, receiving yield they were not entitled to. An attacker used a flash loan to exploit this and steal most of the 88mph tokens generated from yield.

vinaysati Follow

Published on medium.com

hello guys welcome back my new writeup this write up i am exploit 88mph is an Ethereum-based (dAPP) and this write-up i am covered Full Exploit this token .

Vinaysati, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the vesting contract failed to update the reward-per-token-paid mapping when a user made an initial deposit, so the user could claim vested tokens immediately.

Impact

An attacker could steal most of the 88mph tokens generated from yield in the vesting03 contract.

What the attacker needed

Access to a flash loan provider; ability to interact with the contracts

The fix

The vulnerability was fixed by updating the reward-per-token-paid mapping with the current reward per token when a user makes an initial deposit.

How it was found

  1. Flash loan WETH from Uniswap or AAVE.
  2. Call deposit() on the DInterest contract to deposit WETH.
  3. Call withdraw() on the vesting03 contract using the vestID from the deposit.
  4. Call withdraw() on the DInterest contract with true to withdraw the initial deposit before maturity.
  5. Swap the 88mph tokens obtained in step 3 on Balancer or Uniswap.
  6. Repay the flash loan and fee.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A vesting contract gives out rewards over time. The contract forgot to record a starting point when someone deposited, so the person could take the rewards straight away instead of waiting. The attacker borrowed a large amount temporarily (a flash loan) to make the deposit big enough to matter, then paid the loan back.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by vinaysati

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.