WWBN AVideo chunkFile information disclosure vulnerability
The chunkFile parameter in AVideo's video encoder endpoint is used as a file path without validation, allowing an authenticated user to read arbitrary files on the server. An attacker could retrieve configuration files containing database credentials, potentially leading to privilege escalation.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the chunkFile functionality of WWBN AVideo 11.6 and dev master commit 3f7c0364. A specially-crafted HTTP request can lead to arbitrary file read.
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 takes the user-supplied chunkFile parameter and passes it directly to file operations (rename/copy) without validating that it refers to an uploaded temporary file or restricting it to a safe directory.
Impact
An authenticated user with upload permission could read arbitrary files on the server, including configuration files with database credentials, potentially leading to further compromise.
What the attacker needed
A user account with video upload permission
The fix
The vendor confirms the issue was fixed on July 7th 2022.
How it was found
- Send a POST request to the video encoder endpoint with a chunkFile parameter pointing to a target file (e.g., ../videos/configuration.php).
- The server copies or renames that file to a predictable location (e.g., .mp4).
- Request the copied file from the web server to read its contents.
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.
AVideo lets users upload videos. The upload code accepts a parameter called chunkFile that tells it where to find the video file. Because the code does not check that this path is safe, a user can point it at any file on the server, such as a configuration file with passwords. The attacker then downloads that file through the web server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.