CVE Vulnerabilities

CVE-2022-21689

Uncontrolled Resource Consumption

Published: Jan 18, 2022 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions the receive mode limits concurrent uploads to 100 per second and blocks other uploads in the same second, which can be triggered by a simple script. An adversary with access to the receive mode can block file upload for others. There is no way to block this attack in public mode due to the anonymity properties of the tor network.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

Name Vendor Start Version End Version
Onionshare Onionshare * 2.5 (excluding)
Onionshare Ubuntu bionic *
Onionshare Ubuntu esm-apps/focal *
Onionshare Ubuntu esm-apps/jammy *
Onionshare Ubuntu focal *
Onionshare Ubuntu impish *
Onionshare Ubuntu jammy *
Onionshare Ubuntu lunar *
Onionshare Ubuntu mantic *
Onionshare Ubuntu trusty *
Onionshare Ubuntu upstream *
Onionshare Ubuntu xenial *

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References