20,000 USDC
View results
Submission Details
Severity: medium

Attacker can DoS manager from removing funds from the pool

Attacker can frontrun manager's withdrawals from the pool using

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L198

by running borrow()

It'll update poolBalance making withdraw requests impossible.

Migitation steps:

Implement different status for a pool: ACTIVE or PAUSED. Borrows and loan assigment should only be possible when the pool is ACIVE.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.