Real Neon Robin
High
The addMarketConfig
function lacks a validation check to ensure that the creationCost
parameter is greater than or equal to the minimum required creationCost
. This omission can lead to an exploit where an admin sets the creationCost
to 0, bypassing the intended cost mechanism.
In ReputationMarket.sol:366, there is a missing validation check to ensure that the creationCost
parameter is greater than or equal to the minimum required creationCost
.
No response
No response
- An admin creates a premium market configuration with a
creationCost
of 0. - An approved user leverages this configuration to create a market at no cost (
creationCost
= 0). - Since the market is premium (characterized by less price fluctuation), it attracts user activity, leading to increased
donationFee
earnings for the approved user. - The approved user benefits disproportionately by earning
donationFee
on user transactions within the market at nocreationCost
.
- Deviation from the intended economic model of the system.
- As users buy or sell votes, the approved user earns
donationFee
at nocreationCost
. - Funds in
marketFunds
mapping will comprise only users who bought votes for the market.
No response
Add a validation check in the addMarketConfig
function to ensure that creationCost
is greater than or equal to the minimum acceptable creationCost
.