Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

rvierdiiev - LMPVaultRouterBase.mint tries to get payment 2 times in case of native payment #39

Closed
sherlock-admin2 opened this issue Aug 29, 2023 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A valid High severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin2
Copy link
Contributor

sherlock-admin2 commented Aug 29, 2023

rvierdiiev

medium

LMPVaultRouterBase.mint tries to get payment 2 times in case of native payment

Summary

LMPVaultRouterBase.mint tries to get payment 2 times in case of native payment

Vulnerability Detail

LMPVaultRouterBase.mint is payable and user can provide value with the call.

In this case, payment will be deposited to the weth.

But later, contract will try to get funds again and this will fail in case if user doesn't have allowance, or in case if it has, then he will loose funds.

Impact

Function will not work as expected

Code Snippet

Provided above

Tool used

Manual Review

Recommendation

In case of native payment do not pull funds again.

Duplicate of #1

@github-actions github-actions bot added High A valid High severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Sep 11, 2023
@sherlock-admin sherlock-admin changed the title Broad Tweed Tiger - LMPVaultRouterBase.mint tries to get payment 2 times in case of native payment rvierdiiev - LMPVaultRouterBase.mint tries to get payment 2 times in case of native payment Oct 3, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A valid High severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

2 participants