Interface name reused #67
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
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
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraStakingProxy.sol#L10-19
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/CrvDepositorWrapper.sol#L9-16
Vulnerability details
Impact
If a codebase has two contracts the similar names, the compilation artifacts will not contain one of the contracts with the duplicate name.
ICrvDepositor is re-used:
- ICrvDepositor (AuraStakingProxy.sol#10-19)
- ICrvDepositor (CrvDepositorWrapper.sol#9-16)
Proof of Concept
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraStakingProxy.sol#L10-19
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/CrvDepositorWrapper.sol#L9-16
Tools Used
Manual
Recommended Mitigation Steps
Remove or rename the interface.
The text was updated successfully, but these errors were encountered: