Open hats-bug-reporter[bot] opened 2 months ago
user A create a prediction market A, saying 1 + 1 = ?, option A: 2, option B: 3
user B create a prediction market B, saying 1 + 1 = ?, option A: 4, option B: 5
This is not the case, if you have different options, the question will be different (keep in mind a reality question contains the potential answers), therefore the questionsIds
will be different, therefore the questionId
will be different.
Github username: -- Twitter username: -- Submission hash (on-chain): 0xe432ebda613a088596684faab1f2aa9b25b82823bf302d17e4252e6603e55bbc Severity: high
Description: Description\
When the market is created,
the code initialize the market with the following parameter:
However, when resolve the market in RealityProxy,
the code only hash the number of outcome, but not the outcome content, this is a issue
and allow malicous user to create a market and resolve the market incorrectly.
In this case, user B can resolve market A because the code cannot tell if the out come is different,
the code only know that both number of out come is the same (2), the question id and template id and low and high are the same.
Attack Scenario\ Describe how the vulnerability can be exploited.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)