Know every vulnerabilitybefore it knows you.
DevGuard continuously monitors your dependencies and alerts you when CVEs like this one affect your stack — with real-time threat intelligence built for developers.
GHSA-q4x6-6mm2-crg9
No affected components available
Summary
The Live restream log callback flow accepted an attacker-controlled restreamerURL and later fetched that stored URL server-side, enabling stored SSRF for authenticated streamers.
The vulnerable flow allowed a low-privilege user with streaming permission to store an arbitrary callback URL and trigger server-side requests to loopback or internal HTTP services through the restream log feature.
Details
The vulnerable chain was:
plugin/Live/view/getRestream.json.phpexposed a freshtokenForActionplugin/Live/view/Live_restreams/verifyTokenForAction.json.phpexchanged it for a validresponseTokenplugin/Live/view/Live_restreams_logs/add.json.phpaccepted attacker-controlledrestreamerURLplugin/Live/view/getRestream.json.phpandplugin/Live/view/Live_restreams/getAction.json.phplater fetched that stored URL server-side
The original issue existed because the responseToken was accepted, but the callback destination was not tightly constrained to trusted restreamer endpoints.
The maintainer confirmed the vulnerability and stated that the fix was applied by validating restreamerURL at storage time and re-validating the log-entry branch before use. The maintainer also noted that the m3u8 field follows the same general pattern but is not server-fetched in the current flow.
Proof of concept
- Log in as a non-admin user with streaming permission.
- Create a normal restream destination.
- Trigger
plugin/Live/view/Live_restreams/testRestreamer.json.phpto create a live transmission history row. - Call:
GET /plugin/Live/view/getRestream.json.php?live_transmitions_history_id=<id>&restreams_id=<id>
- Extract
tokenForActionfrom the returned URL. - Exchange it for
responseTokenvia:
POST /plugin/Live/view/Live_restreams/verifyTokenForAction.json.php
- Store a loopback callback URL:
POST /plugin/Live/view/Live_restreams_logs/add.json.php
restreamerURL=http://127.0.0.1:9999/index.php
- Trigger
getRestream.json.phpagain. - Observe that the returned response now contains the JSON body from the loopback-only service.
Impact
An authenticated streamer can cause the AVideo server to send HTTP requests to loopback or internal services and return the response through normal application endpoints by storing a malicious restreamerURL in the restream log flow. Because the callback destination was not constrained to trusted restreamer endpoints, the application could be used as a proxy to internal-only services that trust network locality. Successful exploitation can expose local admin panels, internal-only APIs, cloud metadata services if reachable, or other sensitive internal responses available from the application host.
Recommended fix
- Validate
restreamerURLagainst explicitly configured restreamer endpoints at storage time - Re-validate the stored callback URL before server-side fetch
- Bind
responseTokento the expected restream row and callback host - Apply SSRF validation to the initial destination of every server-side fetch, not only redirect targets
- Ignore or reject user-supplied callback hosts that do not match trusted configuration
The vulnerability can be exploited over the network without needing physical access. It is easy for an attacker to exploit this vulnerability. An attacker needs basic access or low-level privileges. No user interaction is needed for the attacker to exploit this vulnerability. The impact is confined to the system where the vulnerability exists. There is a high impact on the confidentiality of the information.
Exploitation attempts have been detected. Elevated vigilance and prompt remediation are advised.
The exploit probability is very low. The vulnerability is unlikely to be exploited in the next 30 days.
We did not find any exploit available. Neither in GitHub repositories nor in the Exploit-Database.
Browse More
Continuously monitor your dependencies and get alerted when vulnerabilities like this one affect your stack.
Checkout DevGuard