NextGen - xiao's results

Advanced smart contracts for launching generative art projects on Ethereum.

General Information

Platform: Code4rena

Start Date: 30/10/2023

Pot Size: $49,250 USDC

Total HM: 14

Participants: 243

Period: 14 days

Judge: 0xsomeone

Id: 302

League: ETH

NextGen

Findings Distribution

Researcher Performance

Rank: 118/243

Findings: 1

Award: $12.62

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Awards

12.6178 USDC - $12.62

Labels

bug
2 (Med Risk)
downgraded by judge
partial-50
duplicate-971

External Links

Lines of code

https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/AuctionDemo.sol#L113

Vulnerability details

Impact

(bool success, ) = payable(owner()).call{value: highestBid}("");

owner() is an invalid address, which will result in the user with the highest bid being unable to send the balance to the token owner.

Proof of Concept

Executing claimAuction is invalid. The user with the highest bid and the token owner both lose, resulting in locked funds.

Tools Used

Manual review

参数改写为ownerOfToken

(bool success, ) = payable(ownerOfToken).call{value: highestBid}("");

Assessed type

Invalid Validation

#0 - c4-pre-sort

2023-11-16T01:08:02Z

141345 marked the issue as duplicate of #245

#1 - c4-judge

2023-12-08T22:27:05Z

alex-ppg marked the issue as partial-50

#2 - c4-judge

2023-12-09T00:22:20Z

alex-ppg changed the severity to 2 (Med Risk)

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax Β© 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter