code-423n4 / 2024-03-ondo-finance-findings

5 stars 6 forks source link

missing deadline check and slippage control #87

Open c4-bot-6 opened 5 months ago

c4-bot-6 commented 5 months ago

Lines of code

https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contracts/ousg/ousgInstantManager.sol#L230

Vulnerability details

Vulnerability Detail

mint() is for triggers minting OUSG for a given amount of USDC.

Proof of Concept

https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contracts/ousg/ousgInstantManager.sol#L230

Tools Used

Recommended Mitigation Steps

Add a deadline check and consider parameters such as ousgMinAmountOut.

Assessed type

MEV

c4-pre-sort commented 5 months ago

0xRobocop marked the issue as duplicate of #250

c4-pre-sort commented 5 months ago

0xRobocop marked the issue as duplicate of #156

c4-judge commented 5 months ago

3docSec marked the issue as satisfactory

3docSec commented 5 months ago

Does not mention redeem, 50% credit

c4-judge commented 5 months ago

3docSec marked the issue as partial-50

c4-judge commented 5 months ago

3docSec changed the severity to QA (Quality Assurance)

c4-judge commented 5 months ago

3docSec marked the issue as grade-b