Sublime contest - 0xngndev's results

Democratizing credit via Web3.

General Information

Platform: Code4rena

Start Date: 09/12/2021

Pot Size: $50,000 USDC

Total HM: 19

Participants: 21

Period: 7 days

Judge: 0xean

Total Solo HM: 14

Id: 61

League: ETH

Sublime

Findings Distribution

Researcher Performance

Rank: 11/21

Findings: 3

Award: $1,269.70

🌟 Selected for report: 6

πŸš€ Solo Findings: 1

Findings Information

🌟 Selected for report: 0xngndev

Labels

bug
2 (Med Risk)
sponsor confirmed

Awards

845.0261 USDC - $845.03

External Links

Handle

0xngndev

Vulnerability details

Impact

In AaveYield.sol the functions:

  • liquidityToken
  • _withdrawETH
  • _depositETH

Make a conditional call to IWETHGateway(wethGateway).getAWETHAddress()

This function does not exist in the wethGateway contract, causing these function to fail with the error "Fallback not allowed".

The function they should be calling is getWethAddress() without the "A".

Small yet dangerous typo.

Mitigation Steps

Simply modify:

IWETHGateway(wethGateway).getAWETHAddress()

to:

IWETHGateway(wethGateway).getWETHAddress()

In the functions mentioned above.

#0 - ritik99

2021-12-27T05:45:07Z

We were using an older version of the contracts that had this definition, will be updated accordingly

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