Tally contest - JMukesh's results

The community owned and operated Web3 wallet.

General Information

Platform: Code4rena

Start Date: 20/10/2021

Pot Size: $30,000 ETH

Total HM: 5

Participants: 15

Period: 3 days

Judge: 0xean

Total Solo HM: 3

Id: 44

League: ETH

Tally

Findings Distribution

Researcher Performance

Rank: 7/15

Findings: 2

Award: $461.32

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: elprofesor

Also found by: JMukesh, Koustre, WatchPug, cmichel, pauliax

Labels

bug
duplicate
2 (Med Risk)

Awards

240.9613 USDC - $240.96

External Links

Handle

JMukesh

Vulnerability details

Impact

Use of transfer might render ETH impossible to withdraw becuase after istanbul hardfork , there is increases in the gas cost of the SLOAD operation and therefore breaks some existing smart contracts.Those contracts will break because their fallback functions used to consume less than 2300 gas, and they’ll now consume more, since 2300 the amount of gas a contract’s fallback function receives if it’s called via Solidity’s transfer() or send() methods. Any smart contract that uses transfer() or send() is taking a hard dependency on gas costs by forwarding a fixed amount of gas: 2300.

https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/

https://blog.openzeppelin.com/opyn-gamma-protocol-audit/

Proof of Concept

https://github.com/code-423n4/2021-10-tally/blob/c585c214edb58486e0564cb53d87e4831959c08b/contracts/swap/Swap.sol#L158

https://github.com/code-423n4/2021-10-tally/blob/c585c214edb58486e0564cb53d87e4831959c08b/contracts/swap/Swap.sol#L173

https://github.com/code-423n4/2021-10-tally/blob/c585c214edb58486e0564cb53d87e4831959c08b/contracts/swap/Swap.sol#L257

Tools Used

manual review

use call()

#0 - Shadowfiend

2021-11-04T16:12:35Z

Duplicate of #20.

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