Cudos contest - csanuragjain's results

Decentralised cloud computing for Web3.

General Information

Platform: Code4rena

Start Date: 03/05/2022

Pot Size: $75,000 USDC

Total HM: 6

Participants: 55

Period: 7 days

Judge: Albert Chon

Total Solo HM: 2

Id: 116

League: COSMOS

Cudos

Findings Distribution

Researcher Performance

Rank: 21/55

Findings: 1

Award: $502.47

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: p_crypt0

Also found by: 0x1337, GermanKuber, IllIllI, WatchPug, csanuragjain, danb, dirk_y, kirk-baird

Labels

bug
duplicate
2 (Med Risk)

Awards

502.4722 USDC - $502.47

External Links

Lines of code

https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L632

Vulnerability details

Impact

The reward tokens are not meant for Admins, but using withdrawERC20 function Admin can withdraw all reward tokens

Proof of Concept

  1. Observe the withdrawERC20 function

  2. Admin is allowed to withdraw any token including _newValset.rewardToken at Gravity.sol#L344.

  3. Ideally Admin should not be allowed to withdraw _newValset.rewardToken

Add a check in withdrawERC20 to fail the function if Admin tries to withdraw reward token

#0 - mlukanova

2022-05-10T14:31:49Z

Duplicate of #14

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