CVE-2023-38688
📋 TL;DR
This vulnerability in twitch-tui allows attackers to intercept unencrypted communications between the application and Twitch IRC servers. All users running versions before 2.4.1 are affected, as their authentication tokens and chat messages can be sniffed over the network.
💻 Affected Systems
- twitch-tui
📦 What is this software?
Twitch Tui by Xithrius
⚠️ Risk & Real-World Impact
Worst Case
Attackers intercept authentication tokens, hijack Twitch accounts, access private messages, and potentially compromise linked accounts or payment information.
Likely Case
Authentication tokens are captured, allowing attackers to impersonate users in Twitch chat, send messages, and access chat features.
If Mitigated
With TLS enabled, communications are encrypted, preventing interception of sensitive data.
🎯 Exploit Status
Exploitation requires network access to sniff traffic; no authentication needed.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 2.4.1
Vendor Advisory: https://github.com/Xithrius/twitch-tui/security/advisories/GHSA-779w-xvpm-78jx
Restart Required: Yes
Instructions:
1. Update twitch-tui to version 2.4.1 or later using your package manager or from source. 2. Restart the application to apply the fix.
🔧 Temporary Workarounds
Discontinue use of vulnerable version
allStop using twitch-tui until patched to prevent exposure of authentication tokens.
🧯 If You Can't Patch
- Avoid using twitch-tui on untrusted networks (public Wi-Fi, shared networks).
- Monitor Twitch account for unauthorized activity and rotate authentication tokens.
🔍 How to Verify
Check if Vulnerable:
Check twitch-tui version; if below 2.4.1, it's vulnerable.
Check Version:
twitch-tui --version
Verify Fix Applied:
Confirm version is 2.4.1 or later and verify TLS is enabled in connection settings.
📡 Detection & Monitoring
Log Indicators:
- Unusual login attempts or chat activity on Twitch account
Network Indicators:
- Unencrypted IRC traffic to Twitch servers on port 6667
SIEM Query:
Search for network traffic to/from Twitch IRC servers without TLS encryption.
🔗 References
- https://github.com/Xithrius/twitch-tui/blob/340afc3c8c07a83289fe6ef614aa7563c8b70756/src/twitch/connection.rs#L23
- https://github.com/Xithrius/twitch-tui/commit/74d13ddca35f8f0816f4933c229da1fd95c0350a
- https://github.com/Xithrius/twitch-tui/security/advisories/GHSA-779w-xvpm-78jx
- https://github.com/Xithrius/twitch-tui/blob/340afc3c8c07a83289fe6ef614aa7563c8b70756/src/twitch/connection.rs#L23
- https://github.com/Xithrius/twitch-tui/commit/74d13ddca35f8f0816f4933c229da1fd95c0350a
- https://github.com/Xithrius/twitch-tui/security/advisories/GHSA-779w-xvpm-78jx