В AVideo до 29.0 плагин CloneSite уязвим для сохраненной команды OS. В plugin/CloneSite/cloneClient.json.php (строка 270) сохраненный пароль SSH подставляется в командную строку rsync sshpass -p 'password' ... с простым str_replace и без побега, поэтому одна цитата в пароле вырывается из цитируемого слова и вводит произвольную оболочку. The password is written through the admin-only endpoint objects/pluginAddDataObject.json.php, whose only CSRF defense (isUntrustedRequest()/forbidIfIsUntrustedRequest()) is a no-op when the request source appears to be loopback — as happens behind a same-host TLS-terminating reverse proxy with $global['trustedProxies'] unset — or when an attacker-controlled application is co-hosted on the same hostname; on HTTPS the session cookie is issued with SameSite=None, so a cross-site POST carries it.
Таким образом, неавторизованный удаленный злоумышленник может заманить аутентифицированного администратора на установку вредоносного пароля (и управляемого злоумышленником cloneSiteURL), после чего документированная запись crontab плагина выполняет введенную команду без дальнейших действий администратора в качестве владельца crontab (обычно root или www-data). Эксплуатация требует, чтобы плагин CloneSite был включен с установленным документированным crontab и одним из вышеупомянутых каналов CSRF; по умолчанию однопроцессные развертывания Apache сообщаются как не CSRF-эксплуатируемые. Это остаточная раковина CVE-2026-41304.
Проблема подтверждена на мастере HEAD (8963b6a1); исправленная версия не доступна.
Показать оригинальное описание (EN)
In AVideo through 29.0, the CloneSite plugin is vulnerable to stored OS command injection. In plugin/CloneSite/cloneClient.json.php (line ~270) the stored SSH password is substituted into the command string `sshpass -p '{password}' rsync ...` with a plain str_replace and no escaping, so a single quote in the password breaks out of the quoted word and injects arbitrary shell. The password is written through the admin-only endpoint objects/pluginAddDataObject.json.php, whose only CSRF defense (isUntrustedRequest()/forbidIfIsUntrustedRequest()) is a no-op when the request source appears to be loopback — as happens behind a same-host TLS-terminating reverse proxy with $global['trustedProxies'] unset — or when an attacker-controlled application is co-hosted on the same hostname; on HTTPS the session cookie is issued with SameSite=None, so a cross-site POST carries it. An unauthenticated remote attacker can therefore lure an authenticated administrator into planting a malicious password (and an attacker-controlled cloneSiteURL), after which the plugin's documented crontab entry executes the injected command with no further administrator action, as the crontab owner (commonly root or www-data). Exploitation requires the CloneSite plugin to be enabled with the documented crontab installed and one of the above CSRF channels; default single-process Apache deployments are reported as not CSRF-exploitable. This is a residual sink of CVE-2026-41304. The issue is confirmed at master HEAD (8963b6a1); no patched version is available.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Wwbn Avideo
cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*
|
— |
<= 29.0
|