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

No mechanism to transfer ownership of WToken

Summary

In the event AaveDivaWrapper contract is compromised, there is no mechanism to transfer ownership of WToken.

Vulnerability Details

Throughout the protocol, WToken plays an important role in being used as the collateral in DIVA protocol.

The authorizations to mint and burn WTokens are given to the AAVEDivaWrapper contract. However, in the scenario where the ownership needs to be transferred (e.g. if AaveDIVAWrapper contract is compromised), ownership of WTokens cannot be transferred.

LOC

https://github.com/Cyfrin/2025-01-diva/blob/1b6543768c341c2334cdff87b6dd627ee2f62c89/contracts/src/WToken.sol#L10

Impact

AaveDIVAWrapper cannot transfer ownership of WToken to a trusted address which impacts the integrity of the protocol.

Mitigation

Consider implementing logic to allow ownership of WToken to be transferred

Updates

Lead Judging Commences

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

Appeal created

x0sauce Submitter
6 months ago
bube Lead Judge
6 months ago
bube Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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