Issue Bug Closed

#76478Clean up DebuggerUtility

Nicole Hummel 06/07/16, 09:36 updated 10/02/18, 11:10

Description

Currently the DebuggerUtility is susceptible to some XSS. As this is not exploitable by an user, this can be handled in public.

Given the following code

$b = '<script>alert(456)</script>';
$a = new \stdClass();
$a->$b = '<script>alert(789)</script>';

$dummy = [
    function(array $a, $b = '<script>alert(123)</script>') {
        return '<script>alert(\'xss\')</script>';
    },
    $a
];

\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($dummy);

alert ‘123’ and ‘456’ can be seen.

Reviews 3