Skip to content
CVE-2026-63305 Microsoft Sentinel · KQL

Detect AVideo FFmpeg OS Command Injection via notifyCode/callback (CVE-2026-63305) in Microsoft Sentinel

Detects exploitation of CVE-2026-63305, an OS command injection vulnerability in WWBN AVideo prior to v29.1.0. The AVideo API endpoint (ffmpeg/json.php and related notification callback handling) passes attacker-controlled values from the notifyCode/callback parameters into an FFmpeg command line without sanitization, allowing injection of arbitrary shell metacharacters (CWE-78). Detection focuses on HTTP requests to AVideo API/plugin endpoints containing shell metacharacters in notifyCode or callback parameters, and on suspicious child processes (sh, bash, curl, wget, nc, id, whoami) spawned by the web server or FFmpeg process on AVideo hosts.

Based on VulnCheck Advisory: AVideo OS Command Injection via ffmpeg json.php

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-5f8a830f3f · https://df00tech.com/detections/CVE-2026-63305 · licence: https://df00tech.com/detections/licence
let metachars = dynamic([";", "|", "&", "`", "$(", "$(", "%3B", "%7C", "%26", "%60"]);
W3CIISLog
| where csUriStem has_any ("/plugin/", "/objects/", "ffmpeg", "json.php")
| extend qs = tolower(coalesce(csUriQuery, ""))
| where qs has "notifycode" or qs has "callback"
| where qs has_any (metachars)
| project TimeGenerated, cIP, csUriStem, csUriQuery, csUserAgent, scStatus, Computer
| order by TimeGenerated desc
high severity high confidence

Flags IIS-logged requests to AVideo API/plugin/ffmpeg endpoints where the notifyCode or callback parameter contains shell metacharacters indicative of command injection.

Data Sources

IIS LogsWeb Server Logs

Required Tables

W3CIISLog

False Positives & Tuning

  • Security scanners or vulnerability assessment tools probing the AVideo instance
  • Legitimate callback URLs that happen to contain encoded ampersands as parameter separators
  • Penetration testing engagements against the AVideo host

Other platforms for CVE-2026-63305


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 AVideo notifyCode command injection probe (semicolon)

    Expected signal: Web access log entry for json.php with notifyCode containing a semicolon; EDR process-start of 'id' parented by ffmpeg/php-fpm if vulnerable.

  2. Test 2 AVideo callback injection with command substitution

    Expected signal: Web log line with callback parameter containing $( ; possible whoami process spawned under web-server user.

  3. Test 3 Simulated FFmpeg-spawned recon shell

    Expected signal: Process-start events showing parent 'ffmpeg' spawning id/whoami/curl.


Response Playbook

Triage

  1. Identify the AVideo version on the affected host; confirm it is < 29.1.0 and therefore vulnerable to CVE-2026-63305.
  2. Extract the full notifyCode/callback parameter value from the triggering request and decode URL encoding to reveal the injected command.
  3. Determine whether the request returned a 200 status and whether a corresponding suspicious child process (sh/bash/curl/wget/nc) was spawned by php-fpm, the web server, or ffmpeg around the same time.
  4. Review the source IP's prior request history for reconnaissance or repeated injection attempts.

Containment

  1. Block the attacking source IP at the WAF/firewall and rate-limit or disable the AVideo API/ffmpeg endpoint until patched.
  2. Isolate the affected AVideo host from the network if command execution is confirmed, preserving volatile state for forensics.
  3. Rotate any credentials, API keys, or secrets accessible from the web-server process context.

Evidence Collection

  1. Capture the full web server access/error logs and IIS logs covering the attack window, including raw query strings.
  2. Collect process-creation telemetry (EDR) showing the parent/child chain from php-fpm/ffmpeg to the injected command.
  3. Preserve the AVideo videos/cache and any files written to webroot or /tmp during the window, plus the running process list.

Escalation Criteria

  • !Escalate to IR if a shell or recon command (id, whoami, curl, wget, nc) was confirmed to execute as the web-server user.
  • !Escalate if evidence of persistence (webshell, cron job, new service) or lateral movement from the host is found.
  • !Escalate to the application owner immediately so the AVideo instance can be upgraded to v29.1.0 or later.

Investigation Guide

Forensic Artifacts

  • >Web server access logs containing notifyCode/callback parameters with shell metacharacters
  • >Process-creation records linking ffmpeg/php-fpm to sh/bash/curl/wget
  • >Files or webshells written to the AVideo webroot or /tmp during the attack window

Tuning Guidance

Baseline legitimate callback URL formats used by your AVideo plugins and encoders, then exclude those exact parameter shapes. If FFmpeg legitimately spawns helper processes during transcoding, scope the process-chain detections to AVideo hosts and exclude known transcoding binaries. Raise severity when the HTTP request returns 200 and is followed within 60s by a shell/recon child process.


Hunting Queries

Surfaces source IPs repeatedly sending AVideo requests with metacharacter-laden notifyCode/callback parameters.

Hunting — KQL
kql
// df00tech DF00-5f8a830f3f · https://df00tech.com/detections/CVE-2026-63305 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriQuery has_any ("notifyCode", "callback") | where csUriQuery has_any (";","|","`","$(","%3B","%7C") | summarize count() by cIP, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-5f8a830f3f · https://df00tech.com/detections/CVE-2026-63305 · licence: https://df00tech.com/detections/licence ```
index=web (uri_query=*notifyCode* OR uri_query=*callback*) | regex uri_query="(?i)(;|\||`|\$\(|%3b|%7c)" | stats count by src_ip

Atomic Red Team Tests

Test 1 AVideo notifyCode command injection probe (semicolon)
linux

Sends a crafted request to the AVideo ffmpeg JSON endpoint with a semicolon-injected command in notifyCode to validate detection of the primary injection vector.

Command

bash
curl -s -o /dev/null -w '%{http_code}' "http://avideo.lab.local/plugin/API/get.json.php?APIName=ffmpeg&notifyCode=abc;id"

Cleanup

bash
echo 'no cleanup required (read-only probe)'

Expected Telemetry

Web access log entry for json.php with notifyCode containing a semicolon; EDR process-start of 'id' parented by ffmpeg/php-fpm if vulnerable.

Expected Detection

KQL/SPL web-log rules fire on notifyCode plus semicolon metacharacter.

Test 2 AVideo callback injection with command substitution
linux

Tests detection of the $(...) command-substitution variant via the callback parameter.

Command

bash
curl -s "http://avideo.lab.local/objects/ffmpeg.json.php?callback=x\$(whoami)"

Cleanup

bash
echo 'no cleanup required'

Expected Telemetry

Web log line with callback parameter containing $( ; possible whoami process spawned under web-server user.

Expected Detection

Web-log metacharacter rules and the EQL/CQL process-chain correlation fire.

Test 3 Simulated FFmpeg-spawned recon shell
linux

Simulates the post-exploitation child process by spawning a recon command from a parent named ffmpeg, validating endpoint process-chain detections.

Command

bash
cp /usr/bin/bash /tmp/ffmpeg 2>/dev/null; /tmp/ffmpeg -c 'id; whoami; curl -s http://127.0.0.1/ >/dev/null'

Cleanup

bash
rm -f /tmp/ffmpeg

Expected Telemetry

Process-start events showing parent 'ffmpeg' spawning id/whoami/curl.

Expected Detection

CrowdStrike CQL and Elastic EQL process-chain rules flag the ffmpeg-parented shell/recon processes.

Related Detections