CVE-2024-39899 PrivateBin allows shortening of URLs for other domains
Attackers can bypass URL shortening restrictions to shorten arbitrary external URLs, potentially facilitating phishing or spam campaigns.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-39899?
CVE-2024-39899 is a medium-severity vulnerability in PrivateBin, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PrivateBin is an online pastebin where the server has zero knowledge of pasted data. In v1.5, PrivateBin introduced the YOURLS server-side proxy. The idea was to allow using the YOURLs URL shortener without running the YOURLs instance without authentication and/or exposing the authentication token to the public, allowing anyone to shorten any URL. With the proxy mechanism, anyone can shorten any URL pointing to the configured PrivateBin instance. The vulnerability allowed other URLs to be shortened, as long as they contain the PrivateBin instance, defeating the limit imposed by the proxy. This vulnerability is fixed in 1.7.4.
Which versions are affected by CVE-2024-39899?
2 open source packages ship an affected version, including privatebin/privatebin.
| Package | Affected | Fixed in |
|---|---|---|
privatebin/privatebin Packagist | From 1.5.0 | 1.7.4 |
privatebin/privatebin Packagist | From 1.5.0 | 1.7.4 |
How do I fix CVE-2024-39899?
Upgrade privatebin/privatebin to 1.7.4 or later.
Is CVE-2024-39899 being exploited?
There is no known exploitation of CVE-2024-39899 in the wild and no public exploit code.
Sources
Also known as GHSA-mqqj-fx8h-437j.