Admin can steal funds from vesters on AuraVestedEscrow #283
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraVestedEscrow.sol#L77
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraVestedEscrow.sol#L186
Vulnerability details
Impact
Admin can steal funds from vesters on AuraVestedEscrow
Proof of Concept
By changing the address of the aura locker the admin can use the external call with funds approval to steal funds when claim() is called.
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraVestedEscrow.sol#L77
https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraVestedEscrow.sol#L186
If a malicious contract is introduced instead of aura locker the admin can steal funds from the claim since there is an external call with approval.
Recommended Mitigation Steps
Make the locker address immutable to improve the trustlessness of the protocol.
The text was updated successfully, but these errors were encountered: