CVE-2022-21691 Improper Access Control in Onionshare
Attackers can spoof chat leave messages in OnionShare, misleading other participants about their presence in the chatroom.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21691?
CVE-2022-21691 is a medium-severity missing authorization vulnerability in onionshare, published on 18 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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 chat participants can spoof their channel leave message, tricking others into assuming they left the chatroom.
Weakness: CWE-306
Which versions are affected by CVE-2022-21691?
3 open source packages ship an affected version, including onionshare-cli. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
onionshare-cli PyPI | All versions | 2.5 |
onionshare-cli PyPI | From 2.3 | 2.5 |
onionshare-cli PyPI | From 2.3 | 2.5 |
Products include Onionshare Onionshare.
How do I fix CVE-2022-21691?
Upgrade onionshare-cli to 2.5 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-21691 being exploited?
There is no known exploitation of CVE-2022-21691 in the wild and no public exploit code.
Other vulnerabilities in onionshare
Sources
Also known as DEBIAN-CVE-2022-21691, GHSA-w9m4-7w72-r766, PYSEC-2022-42.