Skip to content
Path traversal Advisory Intermediate CVE-2023-47862

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.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

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.

Claudio Bozzato, on Cisco Talos

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

  1. Send an HTTP request to the main page of AVideo without a session cookie.
  2. Set the Accept-Language header to a value that includes a path to a malicious PHP file.
  3. 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.

More by Claudio Bozzato

View all

185 more disclosed reports, best first.

More from Cisco Talos

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.