You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Profile Unable to buy Votes in ReputationMarket due to wrong basePrice is set when initializing marketConfigs
Summary
marketConfigs.push() in initialize() is set to DEFAULT_PRICE instead of MINIMUM_BASE_PRICE
Root Cause
In ReputationMarket.sol:223-255 3 MarketConfigs (Default, Premium & Deluxe) are initialized with a basePrice of DEFAULT_PRICE (0.01ETH) instead of MINIMUM_BASE_PRICE (0.001ETH)
Internal pre-conditions
ReputationMarket is initialized with three marketConfigs with wrong basePrice
External pre-conditions
No external pre-conditions
Attack Path
ReputationMarket is initialized with three marketConfigs with wrong basePrice
Profile calls createMarketWithProfileId() and a marketConfigIndex.
A market is created with wrong basePrice parameter
Impact
A profile gets less votes or no votes at all when calling buyVotes() on a ReputationMarket due to wrong basePrice.
PoC
No response
Mitigation
Either reinitialize ReputationMarket implementation with the correct minimm basePrice set, or call addMarketConfig() to create new marketConfigs with the correct value
The text was updated successfully, but these errors were encountered:
Immense Vinyl Flamingo
Medium
Profile Unable to buy Votes in ReputationMarket due to wrong basePrice is set when initializing marketConfigs
Summary
marketConfigs.push() in
initialize()
is set toDEFAULT_PRICE
instead ofMINIMUM_BASE_PRICE
Root Cause
In ReputationMarket.sol:223-255 3 MarketConfigs (Default, Premium & Deluxe) are initialized with a basePrice of
DEFAULT_PRICE (0.01ETH)
instead ofMINIMUM_BASE_PRICE (0.001ETH)
Internal pre-conditions
ReputationMarket
is initialized with threemarketConfigs
with wrong basePriceExternal pre-conditions
No external pre-conditions
Attack Path
ReputationMarket
is initialized with threemarketConfigs
with wrong basePricecreateMarketWithProfileId()
and amarketConfigIndex
.basePrice
parameterImpact
A profile gets less votes or no votes at all when calling
buyVotes()
on a ReputationMarket due to wrongbasePrice
.PoC
No response
Mitigation
Either reinitialize ReputationMarket implementation with the correct minimm basePrice set, or call
addMarketConfig()
to create new marketConfigs with the correct valueThe text was updated successfully, but these errors were encountered: