Missing maximum bond signature parameter
The signed authorisation used to register an operator's agent instances did not commit to any bond amount, so a service owner could raise the required bond after the signature was given and reuse the same signature. The operator's tokens would then be bonded at the higher amount without their consent and stay locked until the service was terminated.
santipu_ Follow with aestheticbhai, Evo and 4 others
Originally disclosed on Code4rena
Submitted by santipu_, also found by aestheticbhai, Evo, fullstop, SiderSoner, SpicyMeatball, and Tupaia
autonolas-registries/../contracts/ServiceManager.sol#L421
The registerAgentsWithSignature function in the ServiceManager contract allows a service owner to register agent instances on behalf of an operator using a signed message.
The signature is computed over the following parameters:
- operator address
- service owner address
- service ID
- agent instance addresses
- agent IDs
- nonce
However, this message does not include any upper bound on the bond amount. As a result, if the service configuration changes after the operator has signed the message (specifically, if the bond requirement increases) the operator may unintentionally lock significantly more funds than originally intended.
Example scenario:
- Bob creates a service requiring Agent1 instances, each with a bond of 1e18.
- Alice agrees to participate and signs a message authorizing Bob to register her agent instances.
- Bob then updates the service and increases the bond to 100e18 per agent. The exact path for Bob is to first terminate the service before any register occurs, then update the service, and activate registrations again.
- Bob uses Alice’s original signature to register her agents with the updated bond amounts, locking 100x more funds than she intended.
- Alice’s excess funds remain locked and unavailable until the service is terminated.
This issue occurs because the signed message lacks a reference to the bond amounts, giving the service owner unilateral control over the financial implications of a previously signed authorization.
The absence of a maximum bond parameter in the signed message enables a service owner to increase the required bond after a signature has been issued, then reuse the original signature to register the operator’s agents. This can lead to operators having large amounts of tokens bonded without their consent. These funds remain locked until the service is terminated, which is decided solely by the service’s owner.
Recommended mitigation steps
Include a new parameter in the signed message that defines the maximum acceptable bond per agent instance. This value should be used in both the signature hash and enforced during execution to prevent unintended over-bonding.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The signed message omits any maximum bond amount, so the signature does not bind the financial terms the operator agreed to.
Impact
Operators could have far more tokens bonded than they intended, and those funds stay locked until the service owner terminates the service.
What the attacker needed
Operator signs a registration message; service owner controls service config; service can be terminated and reactivated
The fix
The signed message should include a maximum acceptable bond per agent instance, checked both in the signature hash and during execution.
How it was found
- The service owner creates a service with a small bond per agent instance.
- The operator signs a message authorising registration of their agent instances.
- The owner terminates the service, updates it to a much higher bond, and reactivates registrations.
- The owner submits the operator's original signature to register the agents at the higher bond.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A service owner can ask an operator to sign a message saying 'you may register my agents for me'. That message did not say how much money (the bond) each agent must put up. So the owner could quietly raise the bond afterwards and still use the old signature, tying up far more of the operator's tokens than they agreed to.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.