<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3awwbnavideo/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 15 May 2026 18:34:29 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3awwbnavideo/feed.xml" rel="self" type="application/rss+xml"/><item><title>AVideo OS Command Injection via Unescaped m3u8 URL (CVE-2026-45578)</title><link>https://feed.craftedsignal.io/briefs/2026-05-avideo-cmd-injection/</link><pubDate>Fri, 15 May 2026 18:34:29 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-avideo-cmd-injection/</guid><description>AVideo is vulnerable to OS command injection (CVE-2026-45578) in the `on_publish.php` file due to improper sanitization of the m3u8 URL, allowing attackers to execute arbitrary commands by injecting shell metacharacters.</description><content:encoded><![CDATA[<p>AVideo, a video-sharing platform, is susceptible to a critical OS command injection vulnerability (CVE-2026-45578) within the <code>on_publish.php</code> file. The issue stems from constructing a command line for <code>execAsync()</code> by directly concatenating strings, single-quoting arguments without proper escaping using <code>escapeshellarg()</code>. This flaw, located in the YPTSocket notification branch of the Live plugin, enables a malicious actor to inject arbitrary commands by embedding a single quote (<code>'</code>) within the <code>$m3u8</code> URL or other command parameters. Successful exploitation allows the attacker to execute arbitrary OS commands with the privileges of the web server runtime user. This vulnerability affects AVideo versions up to and including 29.0. The lack of input sanitization and direct web accessibility to <code>on_publish.php</code> are key factors enabling this attack.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains a <code>canStream</code> account on the AVideo platform.</li>
<li>Attacker crafts a malicious stream key containing a single quote and shell metacharacters (e.g., <code>evilkey';id&gt;/tmp/pwn;#</code>) and persists it via <code>saveLive.php</code>.</li>
<li>Attacker sends a POST request directly to <code>https://target/plugin/Live/on_publish.php</code> with the crafted stream key in the <code>name</code> parameter and a valid password in the <code>p</code> parameter.</li>
<li><code>on_publish.php</code> processes the POST request, strips <code>&amp;</code> and <code>=</code>, but permits the single quote and other shell metacharacters in the stream key.</li>
<li><code>Live::getM3U8File</code> constructs the m3u8 URL with the injected payload (e.g., <code>https://server/live/evilkey';id&gt;/tmp/pwn;#.m3u8</code>).</li>
<li>The command string is built using string concatenation without proper escaping, resulting in a vulnerable command.</li>
<li><code>execAsync()</code> executes the command, leading to OS command injection.</li>
<li>Attacker achieves arbitrary OS command execution with the privileges of the web server user.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability (CVE-2026-45578) grants the attacker the ability to execute arbitrary OS commands on the AVideo server. This could lead to several consequences, including unauthorized access to sensitive data such as database credentials, exfiltration of user information, deployment of a webshell for persistent access, lateral movement to other plugin credentials (PayPal/Stripe API keys, AWS keys), or privilege escalation via local sudoers entries. The impact is significant, potentially leading to complete compromise of the AVideo platform.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Apply the provided patch that utilizes <code>escapeshellarg()</code> on all variables interpolated into the command string in <code>plugin/Live/on_publish.php</code> to prevent shell injection (see code diff in Overview).</li>
<li>Implement an <code>.htaccess</code> or nginx <code>location</code> rule to restrict access to <code>/plugin/Live/on_publish.php</code> to <code>127.0.0.1</code> and authorized RTMP server IPs as a defense-in-depth measure (see Overview).</li>
<li>Deploy the Sigma rule &quot;Detect AVideo on_publish.php Command Injection Attempt&quot; to identify potential exploitation attempts by monitoring for POST requests to <code>on_publish.php</code> with shell metacharacters in the <code>name</code> parameter (see Rules).</li>
<li>Enable webserver logging to capture HTTP requests, which are essential for detecting and investigating exploitation attempts (see Rules - logsource).</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>command injection</category><category>avideo</category><category>webserver</category></item></channel></rss>