# Malicious pool deployer can set a malicious interest rate contract to lock funds of vault depositors

Permissionless pool deployer swaps interestRateStrategy for a reverting contract, making updateInterestRates revert and permanently blocking vault depositor withdrawals.

- Payout: Audit contest
- Severity: high
- Program: New Scope
- Found by: A2-security
- Disclosed: 2024-06-27
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-06-new-scope-judging/issues/233
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-06-new-scope%3AH-6
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:source-review vuln:access-control vuln:business-logic vuln:dos

**Target:** Lending pool interest rate strategy / ReserveLogic.updateInterestRates
**Root cause:** Pool deployer can set an arbitrary interestRateStrategyAddress via PoolConfigurator.setReserveInterestRateStrategyAddress; updateInterestRates() calls it unconditionally, so a reverting strategy bricks all rate-dependent flows including withdraw.
**Steps:**
1. Vault depositors deposit funds into a pool.
2. Pool deployer calls `PoolConfigurator.setReserveInterestRateStrategyAddress()` pointing to a malicious contract whose `calculateInterestRates()` reverts.
3. Any call to `executeWithdraw()` invokes `updateInterestRates()` which calls the malicious strategy and reverts.
4. Depositor funds are locked; pool admin can re-set the malicious strategy even if protocol overrides it.
**How found:** Code reading of ReserveLogic.updateInterestRates showing an unconditional external call to a deployer-controlled address, combined with permissionless pool deployment and vault/pool actor separation in the README.
**Exploitation:** Malicious pool deployer (permissionless) waits for vault deposits, then points interestRateStrategyAddress at a contract that reverts on calculateInterestRates. Every withdraw path calls updateInterestRates and reverts, freezing vault funds. Even if protocol configurator resets the strategy, the pool admin can immediately re-set it back.
**Escalation:** Pool admin can re-apply malicious strategy after protocol intervention, making the lock persistent.
**Insight:** In multi-actor protocols where one party deploys pools and another supplies vault funds, any deployer-controlled external contract invoked on the critical withdraw path is a griefing vector; check whether the counterparty can re-set it after admin intervention.

