Reality Cards contest - 0xsanson's results

The world's first 'outcome ownership' prediction market.

General Information

Platform: Code4rena

Start Date: 19/08/2021

Pot Size: $30,000 USDC

Total HM: 5

Participants: 11

Period: 7 days

Judge: 0xean

Total Solo HM: 4

Id: 26

League: ETH

Reality Cards

Findings Distribution

Researcher Performance

Rank: 9/11

Findings: 3

Award: $486.83

🌟 Selected for report: 1

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: leastwood

Also found by: 0xsanson, JMukesh, cmichel, gpersoon, hickuphh3

Labels

bug
duplicate
1 (Low Risk)

Awards

227.1627 USDC - $227.16

External Links

Handle

0xsanson

Vulnerability details

Impact

Treasury.sol has a mapping marketWhitelist[addr] to check if a certain market has to be restricted.

The issue is that the contract doesn't have a function to change the marketWhitelist values, so every market is always not-restricted. In other words, the following requirement in RCMarket.sol is always satisfied:

// restrict certain markets to specific whitelists require( treasury.marketWhitelistCheck(_user), "Not approved for this market" );

Proof of Concept

https://github.com/code-423n4/2021-08-realitycards/blob/main/contracts/RCMarket.sol#L758-L761

Tools Used

editor

Add a function where the owner can change marketWhitelist in Treasury.sol.

#0 - Splidge

2021-08-26T08:58:53Z

Duplicate of #18

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