-
Notifications
You must be signed in to change notification settings - Fork 3
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
Owner of the token will not receive the funds of the highest bid after an Auction is claimed #245
Comments
141345 marked the issue as primary issue |
a2rocket marked the issue as disagree with severity |
mintAndAuction function can only be called by trusted parties. The _recipient of that function will be a trusted wallet that will also call setApprovalForAll() from the Core contract for the Auction Contract. In our case the _recipient will be the deployer of the Auction contract so at the end of the day the token owner and auction owner are the same person. |
a2rocket (sponsor) disputed |
a2rocket (sponsor) confirmed |
141345 marked the issue as sufficient quality report |
alex-ppg marked issue #738 as primary and marked this issue as a duplicate of 738 |
alex-ppg marked the issue as satisfactory |
alex-ppg changed the severity to 2 (Med Risk) |
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/smart-contracts/AuctionDemo.sol#L113-L114
Vulnerability details
Impact
In
claimAuction
function ofAuctionDemo.sol
, token owner should receive funds, but it will be transferred toAuctionDemo
contract's owner.Proof of Concept
I tried to write tests for mintAndAuction and I'm attaching them below.
AuctionDemo.t.sol
DeployHelper.t.sol
Tools Used
VS Code, Manual Review
Recommended Mitigation Steps
Assessed type
Other
The text was updated successfully, but these errors were encountered: