CVE-2024-39899: PrivateBin allows shortening of URLs for other domains
In v1.5 we 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.
Neither the confidentially of existing pastes on the server nor the configuration options including the YOURLs token are affected.
References
- github.com/PrivateBin/PrivateBin
- github.com/PrivateBin/PrivateBin/commit/0c4e810e6728f67d678458838d8430dfba4fcca4
- github.com/PrivateBin/PrivateBin/pull/1370
- github.com/PrivateBin/PrivateBin/security/advisories/GHSA-mqqj-fx8h-437j
- github.com/advisories/GHSA-mqqj-fx8h-437j
- nvd.nist.gov/vuln/detail/CVE-2024-39899
Detect and mitigate CVE-2024-39899 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →