Open howlbot-integration[bot] opened 4 months ago
This was rejected in the Sherlock contest (https://github.com/sherlock-audit/2024-02-optimism-2024-judging/issues/87) but I could see an argument either way. I think it likely should be deemed out of scope since it was submitted there.
This report is technically valid, but we don't see it as an issue. The worst case scenario here is that a game is created without an initial bond when it is first registered, which wouldn't be the end of the world.
Going to mark this as sponsor acknowledged as I see where they're coming from, but this is likely a wontfix.
Reminder that this was also submitted in Oak Cobalt's QA report, so if it's deemed valid, that report should be dup'd in.
Currently leaning towards not rewarding this for the same reason it wasn't rewarded with Sherlock (requires admin error), as well as the fact that it was in the linked Known Issues repo.
Confirming the decision that this will be downgraded to QA for the above reasons.
zobront changed the severity to QA (Quality Assurance)
zobront marked the issue as grade-a
Lines of code
https://github.com/code-423n4/2024-07-optimism/blob/70556044e5e080930f686c4e5acde420104bb2c4/packages/contracts-bedrock/src/dispute/DisputeGameFactory.sol#L84
Vulnerability details
Summary
0xaliyah arabgodx
DisputeGameFactory
contractVulnerability Detail
according for the docs bot;
create
function the contract checks if the sent value (msg.value) matches the required initBond for the specified GameTypeinitBond
is indeed specific to each game type and must be set when configuring the game implementations in theDisputeGameFactory
in light of what is the given constraint then
gameImpls
) given the argument;gameType
without having first created required initBond for game type in priorcreate
. create is indeed even acceptable provided 0*value msg.value or with no any bond committed until some intervention from owner or admin by properly setinitBond
_claim
argument in themove
function ofFaultDisputeGame
that relate to i.e the claim created atcreate
function ofDisputeGameFactory
where themove
function hasn't no any checking if_claim
locked bond value is indeed is it existent at all then i.e such as themove
function is unsafe due toinitBond
not secured correctly orcreate
function approved non-honesty zero bond value claimsImpact
Code Snippet
Tool used
Manual Review
Recommendation
recommend change to
also recommend
a. the time-lock mechanism for the sensitive functions b. the two-step process with the mandatory delay for the impact changes
openzeppelin consensys
Assessed type
Invalid Validation