The vulnerability, identified as GHSA-3mjv-375j-6h92, is a path traversal flaw in the AVideo platform. The issue resides in the view/update.php script, which is responsible for handling database updates. According to the vulnerability description, the script takes a filename from the $_POST['updateFile'] parameter and directly concatenates it into a file path. This path is then used in a call to PHP's file() function to read the specified update script.
The root cause of the vulnerability is the lack of input sanitization on the $_POST['updateFile'] parameter. An authenticated administrator can exploit this by supplying a path with directory traversal sequences (e.g., ../). This allows them to read arbitrary files on the server that are accessible to the web server process, leading to information disclosure.
The vulnerable code is not contained within a specific function but rather in the global scope of the view/update.php script. During exploitation, a runtime profiler would indicate execution within this script, with a call to the file() function using a malicious, user-controlled path. The analysis of the master branch of the repository shows that a fix has been implemented by validating the $_POST['updateFile'] parameter against an allow-list of expected update files before passing it to the file() function. However, the advisory notes that there is no official patched version released yet.