CVE-2023-42449
Last modified
CVE-2023-42449 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. Hydra is the two-layer scalability solution for Cardano. Prior to version 0.13.0, it is possible for a malicious head initializer to extract one or more PTs for the head they are initializing due to incorrect data validation logic in the head token minting policy which then results in an flawed check for burning the head ST in the `initial` validator. EPSS estimates a 0.91% chance of exploitation in the next 30 days.
Description
Hydra is the two-layer scalability solution for Cardano. Prior to version 0.13.0, it is possible for a malicious head initializer to extract one or more PTs for the head they are initializing due to incorrect data validation logic in the head token minting policy which then results in an flawed check for burning the head ST in the `initial` validator. This is possible because it is not checked in `HeadTokens.hs` that the datums of the outputs at the `initial` validator are equal to the real head ID, and it is also not checked in the `off-chain code`. During the `Initial` state of the protocol, if the malicious initializer removes a PT from the Hydra scripts it becomes impossible for any other participant to reclaim any funds they have attempted to commit into the head, as to do so the Abort transaction must burn all the PTs for the head, but they cannot burn the PT which the attacker controls and so cannot satisfy this requirement. That means the initializer can lock the other participants committed funds forever or until they choose to return the PT (ransom). The malicious initializer can also use the PT to spoof that they have committed a particular TxO when progressing the head into the `Open` state. For example, they could say they committed a TxO residing at their address containing 100 ADA, but in fact this 100 ADA was not moved into the head, and thus in order for an other participant to perform the fanout they will be forced to pay the attacker the 100 ADA out of their own funds, as the fanout transaction must pay all the committed TxOs (even though the attacker did not really commit that TxO). They can do this by placing the PT in a UTxO with a well-formed `Commit` datum with whatever contents they like, then use this UTxO in the `collectCom` transaction. There may be other possible ways to abuse having control of a PT. Version 0.13.0 fixes this issue.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Iohk | Hydra | < 0.13.0 |
References
- https://github.com/input-output-hk/hydra/security/advisories/GHSA-9m8q-7wxv-v65pExploit, Vendor Advisory
- https://github.com/input-output-hk/hydra/security/advisories/GHSA-9m8q-7wxv-v65pExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-42449?
How severe is CVE-2023-42449?
How do I fix CVE-2023-42449?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-42443Vyper is a Pythonic Smart Contract Language for the Ethereum…8.1
- CVE-2023-42444phonenumber is a library for parsing, formatting and validat…7.5
- CVE-2023-42445Gradle is a build tool with a focus on build automation and …5.3
- CVE-2023-42446Pow is a authentication and user management solution for Pho…6.5
- CVE-2023-42447blurhash-rs is a pure Rust implementation of Blurhash, softw…7.5
- CVE-2023-42448Hydra is the layer-two scalability solution for Cardano. Pri…8.1
- CVE-2023-4245The WooCommerce PDF Invoice Builder for WordPress is vulnera…4.3
- CVE-2023-42450Mastodon is a free, open-source social network server based …7.5
- CVE-2023-42451Mastodon is a free, open-source social network server based …7.5
- CVE-2023-42452Mastodon is a free, open-source social network server based …5.4
- CVE-2023-42453Synapse is an open-source Matrix homeserver written and main…4.3
- CVE-2023-42454SQLpage is a SQL-only webapp builder. Someone using SQLpage …9.1
Are you affected by CVE-2023-42449?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
