Skip to content
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

Fix vulnerability that allows bidders to block people who will outbid #4

Merged

Conversation

jake-nyquist
Copy link
Contributor

@jake-nyquist jake-nyquist commented Apr 27, 2022

When a bidder is outbid, we return the money to them. Currently, they are able to cause the competing bid's call to revert by bidding with a contract that throws when payments are sent.

This fixes that issue and creates a test case to ensure that, even if a bidder attempts to avoid refunds, someone else can outbid them (and settle etc).

@linear
Copy link

linear bot commented Apr 27, 2022

HOOK-826 Fix vulnerability related to bidders who revert on refunds

Currently, a bidder can prevent themselves from being outbid by reverting on refunds received.

Copy link
Contributor

@EliecerC EliecerC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good to me

Copy link
Contributor

@regynald regynald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit. Can discuss later

@@ -0,0 +1,25 @@
pragma solidity ^0.8.10;

import "../../../interfaces/IHookCoveredCall.sol";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we start doing direct imports instead of long relative import paths like this?

Maybe if it's a ../ relative is fine. Otherwise direct

@jake-nyquist
Copy link
Contributor Author

jake-nyquist commented May 2, 2022 via email

@regynald regynald merged commit 632b835 into main May 2, 2022
@regynald
Copy link
Contributor

regynald commented May 2, 2022

What is direct? Jake Nyquist CEO @ Hook ( https://hook.xyz ) Telegram: @jakenyquist Twitter: @jake_nyquist

https://docs.soliditylang.org/en/v0.8.11/path-resolution.html#imports

@regynald regynald deleted the nyquist/hook-826-fix-vulnerability-related-to-bidders-who branch May 2, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants