Skip to content

Sherlock

Surge

Every publicly disclosed report for Surge and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find Surge on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Surge chose to make public.

Race condition

Approve and transferFrom functions of Pool tokens are subject to front-run attack

The approve function of Pool tokens overwrites the current allowance without checking if the spender already used it, allowing a spender to front-run a change in allowance and transfer both the old and new amounts. An attacker could thus transfer more tokens than the owner intended.

Surge

Medium
Business logic

Fee share calculation is incorrect

The fee share calculation in a smart contract incorrectly mints too many shares to the fee recipient, giving them more fees than intended and reducing interest for liquidity providers. An attacker could exploit this to drain value from the pool.

Surge

Medium
Business logic

Users can borrow all loan tokens

The borrow function checks the new utilisation rate against a surge threshold, but a user can bypass this by depositing loan tokens, borrowing the remaining liquidity, and withdrawing the deposit in the same transaction. This allows an attacker to borrow all available loan tokens, pushing utilisation to 100% and preventing suppliers from withdrawing.

Surge

Medium
Business logic

transferFrom uses allowance even if spender == from

The pool's transferFrom function always deducted an allowance, even when the caller was the token holder themselves. This broke compatibility with protocols that only use transferFrom, which could leave tokens stranded in those protocols.

Surge

Medium
Access control

Operator can cause fee shares to be minted to address(0)

The factory contract requires a non-zero fee recipient when setting a fee, but allows the fee recipient to be changed to the zero address afterwards. An operator could therefore set a fee and then set the recipient to address(0), bypassing the check.

Surge

Medium