php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

XSS in timeline from query

Open oprudkyi opened this issue 6 years ago • 0 comments

Hi

maximebf/debugbar v1.15.1 barryvdh/laravel-debugbar v3.2.8

in timeline tab, bottom table

sample query

\DB::statement("SELECT * FROM users WHERE id = '<script>debugger;alert(5);</script>' OR SLEEP(2)");

image

possible source - unescaped aggregate.label https://github.com/maximebf/php-debugbar/blob/1a1605b8e9bacb34cc0c6278206d699772e1d372/src/DebugBar/Resources/widgets.js#L506

oprudkyi avatar May 22 '20 18:05 oprudkyi