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

Unsafe Collateral Token Approval Reset

Description:
The approveCollateralTokenForAave function is callable by any user, allowing them to reset the AaveDIVAWrapper's allowance for a registered collateral token to type(uint256).max. While the Aave pool address is immutable, this exposes unnecessary surface for potential abuse (e.g., spamming approvals) and deviates from least-privilege principles.

Impact:

  • Minimal direct risk, but unnecessary exposure of a privileged function.

Recommendation:
Restrict the function to the contract owner by adding the onlyOwner modifier to approveCollateralTokenForAave.

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.