Skip to content
SSRF Advisory Beginner CVE-2023-51665CVE-2023-51697

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.

sylwia-budzynska Follow

Originally disclosed on GitHub Security Lab

Audiobookshelf is vulnerable to blind server-side request forgery (SSRF) vulnerabilities.

sylwia-budzynska, on GitHub Security Lab

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

  1. Start a simple Python web server serving a test file on localhost.
  2. Start Audiobookshelf and assume it is reachable at example.com.
  3. Send a request to the openid config endpoint with the issuer parameter pointing to the local Python server.
  4. Observe on the Python server that a request has been logged.
  5. For the second issue, send an authenticated POST request to the podcast feed endpoint with the rssFeed parameter pointing to the local Python server.
  6. 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.

More by sylwia-budzynska

View all

27 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.