WWBN AVideo getLanguageFromBrowser local file inclusion vulnerability
The getLanguageFromBrowser function in AVideo uses the Accept-Language header to build a file path for inclusion without proper sanitisation, allowing an attacker to include arbitrary local PHP files. This can lead to arbitrary code execution if the attacker can upload a malicious PHP file to the server.
Originally disclosed on Cisco Talos
A local file inclusion vulnerability exists in the getLanguageFromBrowser functionality of WWBN AVideo dev master commit 15fed957fb. A specially crafted HTTP request can lead to arbitrary code execution.
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 Accept-Language header value is used directly in a file path without sufficient validation, allowing path traversal and local file inclusion.
Impact
An attacker could execute arbitrary code on the server, but this requires the ability to upload a malicious PHP file to the server first.
What the attacker needed
No session cookie; Ability to upload a PHP file to the server
The fix
The vulnerability was fixed by the vendor in a patch release.
How it was found
- Send an HTTP request to the main page of AVideo without a session cookie.
- Set the Accept-Language header to a value that includes a path to a malicious PHP file.
- The application uses this header value to include the file, executing it.
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.
The application takes the language preference from your browser's request header and uses it to decide which language file to load. Because it doesn't check the value properly, an attacker can trick it into loading a different file from the server, such as a malicious script they uploaded. This lets them run their own code on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.