HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Unlimited Token Approvals

Description: The AaveDIVAWrapperCore contract sets unlimited approvals for both DIVA protocol and Aave without any way to revoke or limit them.

_wTokenContract.approve(_diva, type(uint256).max);
_collateralTokenContract.approve(_aaveV3Pool, type(uint256).max);

Impact:

  • If either protocol is compromised, all funds at risk

  • No granular control over approvals

  • Increased attack surface

Recommended Mitigation:

  • Implement approval limits

  • Add ability to revoke approvals

  • Consider per-transaction approvals

Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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