CVE-2022-24849 Contact to DisCatSharp-owned server using authenticated client
DisCatSharp library versions inadvertently sent bot tokens to a third-party server, exposing credentials to the library developers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-24849?
CVE-2022-24849 is a medium-severity vulnerability in Aiko-IT-Systems DisCatSharp, published on 14 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
DisCatSharp is a Discord API wrapper for .NET. Users of versions 9.8.5, 9.8.6, 9.9.0 and previously published prereleases of 10.0.0 who have used either one of the two `RequireDisCatSharpDeveloperAttribute`s or the `BaseDiscordClient.LibraryDeveloperTeam` have potentially had their bot token sent to a web server not affiliated with Discord. This server is owned and operated by DisCatSharp's development team. The tokens were not logged, yet it is still advisable to reset the tokens of potentially affected bots. 9.9.1 has been released to patch the issue for the current stable release and the current 10.0.0 prereleases are also no longer affected. Users unable to upgrade should remove all uses of the two `RequireDisCatSharpDeveloperAttribute`s and all direct calls to `BaseDiscordClient.LibraryDeveloperTeam`.
Weakness: CWE-200
Which versions are affected by CVE-2022-24849?
2 open source packages ship an affected version, including DisCatSharp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
DisCatSharp NuGet | From 9.8.5 | 9.9.1 |
DisCatSharp NuGet | From 9.8.5 | 9.9.1 |
Products include Aitsys Discatsharp.
How do I fix CVE-2022-24849?
Upgrade DisCatSharp to 9.9.1 or later.
Is CVE-2022-24849 being exploited?
There is no known exploitation of CVE-2022-24849 in the wild and no public exploit code.
Sources
Also known as GHSA-frxg-hf44-q765.