H-01 MitigationConfirmed #7
Labels
edited-by-warden
mitigation-confirmed
MR-H-01
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
Vulnerability details
C4 issue
H-01: V3Vault.sol permit signature does not check receiving token address is USDC
Comment
The issues comes from the fact that whenever
permit2.permitTransferFrom
is used inV3Vault
,the original code doesn't check if the input token in
permit
is the same with the vault's asset token:This allows the attacker to input any ERC20 token and proceed without actually transferring asset tokens
to the vault.
Mitigation
PR #19
The code now checks if input token is the same with asset token every time
permit2.permitTransferFrom
is used:The mitigation resolved the original issue.
Conclusion
LGTM
The text was updated successfully, but these errors were encountered: