-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no slippage protection in decreaseLiquidity in withdrawOptionAssets and withdrawOptions #78
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-260
edited-by-warden
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Comments
code423n4
added
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
labels
Aug 4, 2023
141345 marked the issue as primary issue |
c4-pre-sort
added
the
primary issue
Highest quality submission among a set of duplicates
label
Aug 8, 2023
This was referenced Aug 8, 2023
Closed
Closed
Closed
141345 marked the issue as duplicate of #260 |
c4-pre-sort
added
duplicate-260
and removed
primary issue
Highest quality submission among a set of duplicates
labels
Aug 10, 2023
c4-judge
added
the
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
label
Aug 20, 2023
gzeon-c4 marked the issue as unsatisfactory: |
c4-judge
added
downgraded by judge
Judge downgraded the risk level of this issue
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
and removed
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
labels
Aug 20, 2023
gzeon-c4 changed the severity to QA (Quality Assurance) |
gzeon-c4 marked the issue as grade-c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-260
edited-by-warden
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-08-goodentry/blob/71c0c0eca8af957202ccdbf5ce2f2a514ffe2e24/contracts/PositionManager/OptionsPositionManager.sol#L424
Vulnerability details
Impact
Detailed description of the impact of this finding.
no slippage protection in decreaseLiquidity in withdrawOptionAssets and withdrawOptions
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
According to uniswap docs
but there is a passing 0,0
withdraw(amount, 0, 0)
, so there will be no slippage protectionsPositionManager/OptionsPositionManager.sol#L424
PositionManager/OptionsPositionManager.sol#L135
contracts/TokenisableRange.sol#L295
Tools Used
Recommended Mitigation Steps
Allow users to specific slippage protection according to uniswap docs and the same for
buyOptions
encode amount0Min, amount1Min to pass to flashloanAssessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: