CVE-2022-21696: OnionShare - Authentication Bypass
- Cve: CVE-2022-21696
- Name: OnionShare - Authentication Bypass
- 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.
- Impact: Attackers can impersonate other chat participants, potentially leading to social engineering or misinformation.
- Remediation: Implement input validation to prevent trailing whitespace characters in usernames.
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: Attacker needs access to the chat environment
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.00738
- Epss percentile: 0.55473
- Assignee: [email protected]
- Published at: 2022-01-18T20:15:07Z
- Age in days: 1771
- Modified at: 2026-06-17T04:26:46Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21696
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/onionshare/onionshare/releases/tag/v2.5 | nvd | Release Notes, Third Party Advisory |
| https://github.com/onionshare/onionshare/security/advisories/GHSA-68vr-8f46-vc9f | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| onionshare:onionshare | < 2.5 | no | nvd | /v1/products/onionshare/onionshare |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| onionshare/onionshare | fix, package, releases, security_advisory | yes | /v1/repositories/onionshare/onionshare |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts