Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a vulnerability in the Nutshell software, a component of the Cashu token system, that could allow an attacker to overwhelm the system's database and storage. While the potential impact is a denial-of-service, the primary concern is to confirm if your organization utilizes this specific technology.
- Attackers can fill storage with arbitrary data.
- Understand if this Cashu component is in use.
- Assess potential service disruption if exposed.
Attack Path
How an attacker could exploit the issue
An attacker could exploit this vulnerability by sending specially crafted cashu tokens to a vulnerable Nutshell mint. Because the mint does not check the size of the preimage data when spending these tokens, an attacker can provide excessively large preimages. This would cause the mint to store this arbitrary data, potentially filling up its database and disk space.
- Accessible via the network.
- Sending tokens with large preimages.
- Denial of service, database/disk exhaustion.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, this vulnerability could allow an attacker to exploit how NUT-14 tokens are spent by versions of nutshell before 0.18.0. This could lead to the mint's database and disk being filled with arbitrary data, potentially impacting service availability.
- Mint database and disk storage.
- Spending tokens with oversized preimages.
- Service denial due to disk exhaustion.
Operational Fix
Recommended remediation, mitigation, and detection steps
The Nutshell project, specifically versions prior to 0.18.0, is susceptible to a denial-of-service vulnerability due to unvalidated preimage sizes. This could allow an attacker to fill the mint's database and disk with arbitrary data, impacting its availability. Initial steps should focus on identifying all instances of affected Nutshell deployments, assessing their exposure and business criticality, locating the accountable owner, and then planning remediation or mitigation based on the assessed risk.
- Identify affected deployments and owners.
- Verify public reachability and business impact.
- Plan risk-based remediation or mitigation.