Skip to content
Path traversal Advisory Beginner CVE-2023-50264CVE-2023-50265CVE-2023-50266

GHSL-2023-192_GHSL-2023-194: Several vulnerabilities in bazarr - CVE-2023-50264, CVE-2023-50265, CVE-2023-50266

Bazarr had two endpoints that took a user-supplied filename and passed it to send_file without validation, allowing unauthenticated arbitrary file reads. A third endpoint took a user-supplied protocol and URL and made a server-side request, allowing blind SSRF to internal and external resources.

sylwia-budzynska Follow

Originally disclosed on GitHub Security Lab

Bazarr is vulnerable to unauthenticated arbitrary file reads in two endpoints and a blind server-side request forgery (SSRF).

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

Impact

The file read issues may lead to unauthenticated arbitrary file read, and the SSRF issue allows crafting GET requests to internal and external resources on behalf of the server, such as determining whether internal resources exist; the SSRF was later partially fixed to limit it to HTTP/HTTPS protocols.

What the attacker needed

Network access to the Bazarr instance; no authentication required

The fix

The maintainer provided fixes for the two arbitrary file read issues and a partial fix for the SSRF that limits it to HTTP/HTTPS protocols.

How it was found

  1. Start Bazarr on a local address.
  2. Send a GET request to the backup download endpoint with a path traversal sequence.
  3. Observe that the system password file is returned in the response.
  4. Send a GET request to the swaggerui static endpoint with a path traversal sequence.
  5. Observe that the system password file is returned in the response.
  6. Start a local web server with a test file, then send a request to the test endpoint pointing at it and compare responses for existing and missing files.

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.

Bazarr is a subtitle tool that runs a small web server. Two of its web addresses accepted a file path from the visitor and used it directly to fetch a file, so someone could ask for files outside the intended folder, such as the system password file. Another address let a visitor make the server fetch any web address, which could be used to probe internal systems.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.