Skip to main content

PHP CVE-2026-33492

HIGH
Session Fixation (CWE-384)
2026-03-20 https://github.com/WWBN/AVideo GHSA-x3pr-vrhq-vq43
7.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious link with fixed PHPSESSID parameter
  2. Exploit
    Victim clicks link and establishes session with attacker-controlled ID
  3. Execution
    Victim authenticates to AVideo application
  4. Impact
    Attacker hijacks authenticated session using known session ID

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session fixation prevention
Exploitation Conditions

Attacker with low-privilege AVideo user account must trick victim into clicking a crafted link containing malicious PHPSESSID parameter. Victim must complete login on same domain where attacker's session was fixed. Requires AVideo's _session_start() function accepting arbitrary session IDs and disabled session regeneration in User::login().

Impact

This vulnerability presents a high real-world risk despite requiring user interaction. The CVSS score of 7.3 reflects Network attack vector, Low complexity, Low privileges required, and Required user interaction, with High impact to Confidentiality and Integrity. The attack complexity is genuinely low because the attacker only needs to inject a malicious link into user-generated content (comments, video descriptions) on the AVideo platform itself, and victims clicking these links while browsing the site will naturally send same-domain Referer headers that bypass protections. A detailed proof-of-concept exists in the GitHub security advisory (GHSA-x3pr-vrhq-vq43), providing step-by-step exploitation instructions including curl commands. The vulnerability enables full account takeover including administrator accounts, making it a critical priority for AVideo installations. The fact that session regeneration is explicitly commented out in the codebase (with a developer note about saving session info) suggests this is an intentional but insecure design decision that won't be automatically fixed by framework updates.

Exploit ScenarioDerived

An authenticated attacker posts a comment on a popular video containing a malicious link to https://target.example.com/objects/getCaptcha.php?PHPSESSID=attacker_controlled_id. When a victim clicks this link while browsing the AVideo site, the browser sends a same-domain Referer header, causing the application to accept the attacker's session ID and skip regeneration due to the getCaptcha.php blacklist. The victim then logs in normally, and because session regeneration is disabled in User::login(), the session ID remains unchanged. The attacker uses the known session ID to access the victim's authenticated session, gaining full access to their account including admin privileges if the victim is an administrator.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

AVideo, an open-source video platform, contains a session fixation vulnerability that allows attackers to hijack user sessions and achieve full account takeover. The flaw affects the AVideo Composer package (pkg:composer/wwbn_avideo) and stems from accepting arbitrary session IDs via URL parameters, bypassing session regeneration for specific endpoints, and disabled session regeneration during login. A public proof-of-concept exploit is available in the GitHub security advisory, and the vulnerability requires only low privileges (authenticated attacker) and user interaction (victim clicking a malicious link), making it highly exploitable.

RemediationAI

Apply patches provided by the AVideo project via the GitHub security advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-x3pr-vrhq-vq43. The primary fix requires three code changes: re-enable session regeneration in objects/user.php line 1317 by uncommenting the _session_regenerate_id() call in the User::login() function, remove or strictly validate the GET-based PHPSESSID parameter handling in objects/functionsPHP.php lines 344-383 to prevent attacker-controlled session IDs, and remove session ID exposure via objects/phpsessionid.json.php and view/js/session.js which negate HttpOnly protections. Until patching is complete, implement compensating controls such as enforcing IP-based session validation, implementing additional CSRF tokens for sensitive operations, and monitoring for suspicious session fixation attempts by logging instances where PHPSESSID is passed via GET parameters.

Affected Packages

composer wwbn/avideo no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects AVideo, a PHP-based video streaming platform distributed via Composer (pkg:composer/wwbn_avideo). The root cause is CWE-384 (Session Fixation), a classic web security flaw where attackers can force victims to use a predetermined session identifier. The vulnerability chains three implementation weaknesses: the _session_start() function accepts attacker-controlled session IDs from the PHPSESSID GET parameter and programmatically sets them via PHP's session_id() API (bypassing session.use_strict_mode protections), specific endpoints like getCaptcha.php skip session regeneration when requests originate from the same domain, and the User::login() function has session regeneration explicitly disabled via commented-out code. Additionally, the platform exposes session IDs through a JSON endpoint (phpsessionid.json.php) and JavaScript global variables, negating HttpOnly cookie protections.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionGitHub Advisory

Summary

AVideo's _session_start() function accepts arbitrary session IDs via the PHPSESSID GET parameter and sets them as the active PHP session. A session regeneration bypass exists for specific blacklisted endpoints when the request originates from the same domain. Combined with the explicitly disabled session regeneration in User::login(), this allows a classic session fixation attack where an attacker can fix a victim's session ID before authentication and then hijack the authenticated session.

Details

The vulnerability is a chain of three weaknesses that together enable session fixation:

1. Attacker-controlled session ID acceptance (objects/functionsPHP.php:344-367)

php
function _session_start(array $options = [])
{
    // ...
    if (isset($_GET['PHPSESSID']) && !_empty($_GET['PHPSESSID'])) {
        $PHPSESSID = $_GET['PHPSESSID'];
        // ...
        if (!User::isLogged()) {
            if ($PHPSESSID !== session_id()) {
                _session_write_close();
                session_id($PHPSESSID);   // <-- sets session to attacker's ID
            }
            $session = @session_start($options);  // <-- starts with attacker's ID

The code reads $_GET['PHPSESSID'] and programmatically calls session_id($PHPSESSID), which bypasses both session.use_only_cookies and session.use_strict_mode PHP settings since the session ID is set via the PHP API, not via cookie/URL handling.

2. Session regeneration bypass for blacklisted endpoints (objects/functionsPHP.php:375-378, objects/functions.php:3100-3116)

php
// functionsPHP.php:375-378
if (!blackListRegenerateSession()) {
    _session_regenerate_id();  // <-- SKIPPED when blacklisted + same-domain
}
php
// functions.php:3100-3116
function blackListRegenerateSession()
{
    if (!requestComesFromSafePlace()) {
        return false;
    }
    $list = [
        'objects/getCaptcha.php',
        'objects/userCreate.json.php',
        'objects/videoAddViewCount.json.php',
    ];
    foreach ($list as $needle) {
        if (str_ends_with($_SERVER['SCRIPT_NAME'], $needle)) {
            return true;  // <-- regeneration skipped for these endpoints
        }
    }
    return false;
}

The requestComesFromSafePlace() check at objects/functionsSecurity.php:182 only verifies that HTTP_REFERER matches the AVideo domain. When a victim clicks a link from within the AVideo platform (e.g., in a comment or video description), the browser naturally sets the Referer to the AVideo domain, satisfying this check.

3. Disabled session regeneration on login (objects/user.php:1315-1317)

php
// Call custom session regenerate logic
// this was regenerating the session all the time, making harder to save info in the session
//_session_regenerate_id();  // <-- COMMENTED OUT

The session regeneration after authentication is explicitly disabled. This means the session ID persists unchanged through the login transition, which is the fundamental requirement for session fixation to succeed.

Amplifying factors

  • objects/phpsessionid.json.php exposes session IDs to any same-origin JavaScript without authentication (line 12: $obj->phpsessid = session_id())
  • view/js/session.js stores the session ID in a global window.PHPSESSID variable and logs it to console (line 15)
  • No session-to-IP or session-to-user-agent binding exists (verified via codebase search)

PoC

Step 1: Attacker obtains a session ID

bash
# Attacker visits the site to get a valid session ID
curl -v https://target.example.com/ 2>&1 | grep 'set-cookie.*PHPSESSID'
# Response: Set-Cookie: PHPSESSID=attacker_known_session_id; ...

Step 2: Attacker injects a link on the platform

The attacker posts a comment on a video or creates content containing a link:

https://target.example.com/objects/getCaptcha.php?PHPSESSID=attacker_known_session_id

This can be placed in a video comment, video description, user bio, or forum post - anywhere AVideo renders user-provided links.

Step 3: Victim clicks the link while browsing AVideo

When the victim clicks the link from within the AVideo platform:

  1. Browser sets Referer: https://target.example.com/... (same-domain)
  2. _session_start() processes $_GET['PHPSESSID'], victim is not logged in, so session_id('attacker_known_session_id') is called
  3. blackListRegenerateSession() returns true (script is getCaptcha.php + same-domain Referer)
  4. _session_regenerate_id() is skipped
  5. Victim's session is now fixed to attacker_known_session_id

Step 4: Victim logs in

The victim navigates to the login page and authenticates. User::login() populates $_SESSION['user'] but does NOT regenerate the session ID (line 1317 is commented out).

Step 5: Attacker hijacks the authenticated session

bash
# Attacker uses the known session ID to access victim's account
curl -b "PHPSESSID=attacker_known_session_id" https://target.example.com/objects/user.php?userAPI=1
# Response: victim's user data, confirming session hijack

Impact

  • Full account takeover: An attacker can hijack any user's authenticated session, including administrator accounts
  • Data access: Full access to the victim's videos, private content, messages, and personal information
  • Privilege escalation: If the victim is an admin, the attacker gains full administrative control over the AVideo instance
  • Lateral actions: The attacker can perform any action as the victim - upload/delete content, modify settings, access admin panel

Recommended Fix

Fix 1: Re-enable session regeneration on login (objects/user.php:1317)

php
// Replace the commented-out line:
//_session_regenerate_id();

// With:
_session_regenerate_id();

This is the most critical fix. Session regeneration on authentication transition is a fundamental defense against session fixation (OWASP recommendation).

Fix 2: Remove GET-based session ID acceptance (objects/functionsPHP.php:344-383)

Remove or restrict the $_GET['PHPSESSID'] handling entirely. If it is needed for specific use cases (e.g., CAPTCHA), validate the session ID against a server-side token rather than blindly accepting arbitrary values:

php
// Instead of accepting any GET PHPSESSID, remove this block entirely.
// If CAPTCHA requires session continuity, pass a CSRF token instead.
if (isset($_GET['PHPSESSID']) && !_empty($_GET['PHPSESSID'])) {
    // REMOVED: Do not accept session IDs from URL parameters
}

Fix 3: Remove session ID exposure (objects/phpsessionid.json.php, view/js/session.js)

The phpsessionid.json.php endpoint and the session.js global variable negate the httponly cookie flag. If JavaScript needs to reference the session for AJAX requests, the browser automatically includes session cookies - there is no need to expose the session ID value to JavaScript.

Executive ViewAI

Why It Matters

AVideo installations face an immediate account takeover risk through session hijacking attacks that require minimal attacker effort and only user interaction. Any organization running AVideo for video hosting or collaboration is vulnerable to unauthorized access to user accounts, potentially exposing sensitive video content and user data with no available patch to remediate the issue.

Business Impact: High
Compensating Controls

Deploy Web Application Firewall (WAF) rules to detect and block session ID parameters in URLs; implement mandatory session regeneration at login through application code patching if source code access exists; enforce network segmentation restricting AVideo access to internal users only; disable public video sharing features if not critical to operations; implement continuous session validation and IP-based access controls; monitor for suspicious session activity and authentication anomalies; consider disabling the affected endpoint functionality until patch availability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Affected Products (CPE)GitHub Advisory

pkg:composer/wwbn_avideo

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy