Hydra
Hydra: Deposit Claim omits Head state-token spending requirement
Hydra is a layer-two scalability solution for Cardano. Prior to 2.1.0, the `Claim` branch in `hydra-plutus/validators/deposit.ak` checks only that `datum.head_id` matches the attacker-controlled `redeemer.currencySymbol` and that the transaction is valid before the deposit deadline. It neither requires spending the Head state-token UTxO in the same transaction nor constrains outputs. After a deposit made through `POST /commit` is confirmed, any third party able to build a Cardano transaction can observe and consume the pending deposit UTxO before its deadline and redirect the assets to an arbitrary address. A standalone deposit spend invokes no Head validator, bypassing its safety checks; historical head-ID binding and the Aiken rewrite retained this missing invariant. The default deadline is three times depositPeriod, so the described attack applies to pending deposits before that deadline. This issue is fixed in version 2.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.1.0
Fixed in 2.1.0
Mitigation
Upgrade hydra to 2.1.0 or later.
References
- Vendor advisory github.com/cardano-scaling/hydra/security/advi…
- Patch github.com/cardano-scaling/hydra/commit/ff60e4…
- Release notes github.com/cardano-scaling/hydra/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.