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.
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).
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
- Start Bazarr on a local address.
- Send a GET request to the backup download endpoint with a path traversal sequence.
- Observe that the system password file is returned in the response.
- Send a GET request to the swaggerui static endpoint with a path traversal sequence.
- Observe that the system password file is returned in the response.
- 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.