GHSL-2023-266_GHSL-2023-267: Blind server-side request forgery (SSRF) vulnerabilities in Audiobookshelf - CVE-2023-51665, CVE-2023-51697
Two endpoints in Audiobookshelf accepted user-controlled URLs and made server-side GET requests to them, allowing blind SSRF. An attacker could make the server send requests to internal or external hosts, but the responses were not returned to the attacker.
Originally disclosed on GitHub Security Lab
Audiobookshelf is vulnerable to blind server-side request forgery (SSRF) vulnerabilities.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application passed user-controlled URL parameters directly to an HTTP client without validating or restricting the destination.
Impact
An attacker could make the Audiobookshelf server send GET requests to arbitrary hosts, but the responses were not returned, so the impact is limited to blind SSRF.
What the attacker needed
None for the first issue; an authenticated user for the second issue
The fix
The maintainer created fixes for both vulnerabilities.
How it was found
- Start a simple Python web server serving a test file on localhost.
- Start Audiobookshelf and assume it is reachable at example.com.
- Send a request to the openid config endpoint with the issuer parameter pointing to the local Python server.
- Observe on the Python server that a request has been logged.
- For the second issue, send an authenticated POST request to the podcast feed endpoint with the rssFeed parameter pointing to the local Python server.
- Observe on the Python server that a request has been logged.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Server-side request forgery (SSRF) happens when a server fetches a URL that an attacker supplies. Here, the server made requests to attacker-chosen addresses, but the attacker could not see the replies, so it is called blind. This still lets an attacker probe internal networks or make the server contact other systems.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.