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.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.