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 files8

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lib/PHPGGC/GadgetChain/PHPInfo.php

PHP · 551 bytes
<?php

namespace PHPGGC\GadgetChain;

abstract class PHPInfo extends \PHPGGC\GadgetChain
{
    public static $type = self::TYPE_INFO;

    public function test_setup()
    {
        return [];
    }

    public function test_confirm($arguments, $output)
    {
        $expected = [
            'phpinfo()',
            'PHP Authors',
            'Module Authors',
            'PHP Variables'
        ];
        foreach($expected as $needle)
            if(strpos($output, $needle) === false)
                return false;

        return true;
    }
}