GHSA-j432-4w3j-3w8j
## Summary The `isSSRFSafeURL()` function in `objects/functions.php` contains a same-domain shortcircuit (lines 4290-4296) that allows any URL whose hostname matches `webSiteRootURL` to bypass all SSRF protections. Because the check compares only the hostname and ignores the port, an attacker can reach arbitrary ports on the AVideo server by using the site's public hostname with a non-standard port. The response body is saved to a web-accessible path, enabling full exfiltration. ## Details Commit `40872e529` fixed an extension-based SSRF bypass by making `isSSRFSafeURL()` unconditional. However, `isSSRFSafeURL()` itself contains a same-domain shortcircuit that returns `true` when the URL's hostname matches `webSiteRootURL`'s hostname, without validating the port: ```php // objects/functions.php:4290-4296 if (!empty($global['webSiteRootURL'])) { $siteHost = strtolower(parse_url($global['webSiteRootURL'], PHP_URL_HOST)); if ($host === $siteHost) { _error_log("isSSRFSafeURL: allowing same-domain request to {$host} (matches webSiteRootURL)"); return true; // Returns immediately — port, path, scheme all unchecked } } ``` The attack flow through `objects/aVideoEncoder.json.php`: 1. User-supplied `$_REQUEST['downloadURL']` is passed to `downloadVideoFromDownloadURL()` at line 166 2. `isSSRFSafeURL()` is called at line 368 — passes due to hostname match 3. `url_get_contents($downloadURL)` fetches the attacker-controlled URL at line 378 4. Response is written to `Video::getStoragePath() . "cache/tmpFile/" . basename($downloadURL)` at line 393-395 The `cache/tmpFile/` directory is under the web-accessible videos storage path. The attacker can retrieve the file to exfiltrate the internal service response. The auth requirement is `User::canUpload()` (line 59), which is satisfied by any authenticated user with upload permission. Alternatively, a valid `video_id_hash` (a per-video token) can be used via `useVideoHashOrLogin()` at line 57. ##
Properties
- ghsa_id
- GHSA-j432-4w3j-3w8j
- summary
- WWBN AVideo has a SSRF via same-domain hostname with alternate port bypasses isSSRFSafeURL
- severity
- high
- cvss_score
- 7.7
- cve_id
- GHSA-j432-4w3j-3w8j
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- is_ghsa_only
- true
- ghsa_published
- 2026-04-14T23:22:01Z
- source_url
- https://github.com/advisories/GHSA-j432-4w3j-3w8j
- ghsa_updated
- 2026-04-14T23:22:04Z
Related Entities (4)
AFFECTS (1)
VULNERABLE_TO (1)
HAS_WEAKNESS (1)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph