The protocol does not implement a mechanism to pause critical functionality during emergencies. This could prevent the team from responding quickly to attacks or other unforeseen issues in contracts AaveDIVAWrapper.sol and IAave.sol for both supply, withdraw , or the interaction with reserves..
Core functions, such as batchRemoveLiquidity line 138 and batchRegisterCollateralToken on line 100, can be exploited continuously during an attack without any way to halt the system.
Example:
If a reentrancy or token manipulation attack occurs, the protocol cannot pause operations to prevent further damage.
Medium Impact:
Indirect Risk to Funds: While funds may not be directly at risk, the inability to halt operations could exacerbate ongoing attacks.
Reputation Damage: Lack of emergency mechanisms could erode user trust during an incident.
Proof of Concept
Overview
The protocol lacks an emergency pause mechanism, preventing the team from stopping critical operations if an attack is detected.
Actors
Attacker: Exploits a vulnerability (e.g., a pricing oracle manipulation) to drain liquidity.
Victim: Users unable to react quickly before their funds are impacted.
Protocol: Lacks a way to freeze operations to prevent further exploitation.
Exploit Scenerio
Initial State: An attacker manipulates an oracle (or exploits a logic flaw) to create a favorable condition for liquidity extraction.
Step 1: The attacker calls removeLiquidity or redeemPositionToken at an inflated value.
Step 2: Without a pause mechanism, the attack continues without intervention.
Outcome: The protocol loses significant funds before a manual response is possible.
Smart Contract Without Pause Mechanism
Implications
Significant financial loss: Attackers can continuously drain liquidity without a stopgap.
Trust erosion: Users may lose faith in the protocol’s security.
Operational delay: Manual intervention may not be fast enough.
Fix Recommendation
Implement an emergency pause mechanism, such as:
Funds are drained from the protocol.
Severe financial losses and reputational damage.
Manual code review
Implement an emergency pause mechanism.
Fixed.
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.