CVE-2022-21696 Username spoofing in OnionShare
Attackers can impersonate other chat participants in OnionShare by appending whitespace to usernames, bypassing identity verification.
- 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-21696?
CVE-2022-21696 is a medium-severity 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 it is possible to change the username to that of another chat participant with an additional space character at the end of the name string. An adversary with access to the chat environment can use the rename feature to impersonate other participants by adding whitespace characters at the end of the username.
Weakness: CWE-20
Which versions are affected by CVE-2022-21696?
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-21696?
Upgrade onionshare-cli to 2.5 or later.
Is CVE-2022-21696 being exploited?
There is no known exploitation of CVE-2022-21696 in the wild and no public exploit code.
Other vulnerabilities in onionshare
Sources
Also known as DEBIAN-CVE-2022-21696, GHSA-68vr-8f46-vc9f, PYSEC-2022-47.