The mint and burn functions in the IWToken.sol contract are intended to be callable only by the owner (AaveDIVAWrapper). However, since this is just an interface, there is no enforcement of access control here. If WToken.sol (the implementation contract) does not properly enforce onlyOwner, it can allow unintended minting or burning
The interface defines:
It assumes that AaveDIVAWrapper will always be the caller.
Risk: If WToken.sol fails to enforce proper ownership checks, an attacker could exploit this and call mint() or burn() directly.
Minting risk: Unlimited token inflation leading to loss of peg/collateral integrity.
Burning risk: Unauthorized destruction of tokens, leading to user fund loss.
Proof of Concept (PoC)
If WToken.sol lacks onlyOwner checks, an attacker can mint tokens arbitrarily:
If the implementation does not have onlyOwner, this exploit will work.
Manual code review
Recommended Mitigation
Ensure that WToken.sol enforces strict access control:
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.