The current implementation of UpdateWeightRunner
introduces a critical vulnerability in the protocol. If the quantammAdmin
modifies the UpdateWeightRunner
, it could lead to unexpected behavior where the protocol breaks. Specifically:
A new UpdateWeightRunner
might have a different quantammAdmin
, which would not align with the existing Pool
.
The rule required by the new UpdateWeightRunner
is not set because the rule is defined during the Pool
initialization phase.
This issue creates inconsistencies in the protocol, potentially leading to a denial of service (DoS) for affected pools.
The vulnerability arises when the UpdateWeightRunner is changed, causing critical issues:
Admin Ownership Mismatch: The new UpdateWeightRunner may have a different quantAdmin, leading to conflicting authority and governance inconsistencies.
Missing Rules: The pool’s rules, set during initialization, are not carried over to the new UpdateWeightRunner. This prevents updates, effectively causing a denial-of-service (DoS) for the pool.
Add the following test to QuantAMMWeightedPool2TokenTest
to simulate the issue:
UpdateWeightRunner
:Changing the UpdateWeightRunner
leads to the following issues:
Denial of Service (DoS):
The new UpdateWeightRunner
does not inherit the rule for the existing pool, rendering it non-functional.
Unauthorized Updates:
The quantAdmin
of the initial UpdateWeightRunner
can update the pool with the new UpdateWeightRunner
, creating further inconsistencies.
These flaws disrupt the protocol and can lead to operational outages or malicious misuse.
Manual review
To address this vulnerability, update the setUpdateWeightRunnerAddress
function to synchronize quantammAdmin
and ensure the rule is correctly set during the update. Modify the function as follows:
Likelihood: Low, when setting a new UpdateWeightRunner (for hotfixes) Impact: High, DoS performUpdate and force redeployment
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.