Infinity NFT Marketplace contest - obront's results

The world's most advanced NFT marketplace.

General Information

Platform: Code4rena

Start Date: 14/06/2022

Pot Size: $50,000 USDC

Total HM: 19

Participants: 99

Period: 5 days

Judge: HardlyDifficult

Total Solo HM: 4

Id: 136

League: ETH

Infinity NFT Marketplace

Findings Distribution

Researcher Performance

Rank: 99/99

Findings: 1

Award: $11.08

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

11.084 USDC - $11.08

Labels

bug
duplicate
3 (High Risk)

External Links

Lines of code

https://github.com/code-423n4/2022-06-infinity/blob/765376fa238bbccd8b1e2e12897c91098c7e5ac6/contracts/staking/InfinityStaker.sol#L345

Vulnerability details

Impact

The rescueETH() function does not have the ability to access any of the contract's Eth. As a result, any Eth sent to this contract outside of the normal staking functionality will be permanently lost.

Proof of Concept

Rather than sending the Eth from the contract to the destination address, the function forwards along the Eth sent to it via msg.value.

  • If no value is sent, the function does nothing.
  • If some value is sent, that value is passed along from the caller to the destination, without the contract's funds ever being touched.
Proof of Concept Test

Replace {value: msg.value} on line 346 with {value: address(this).balance}.

#0 - nneverlander

2022-06-23T12:27:30Z

Duplicate

#2 - HardlyDifficult

2022-07-09T17:00:02Z

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