mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-30 20:39:39 +02:00
new capacity bits (#67)
This commit is contained in:
parent
afaffc0df6
commit
7d0e7320e2
261 changed files with 10591 additions and 231 deletions
9
tests/fixtures/ssti/php/unsafe_smarty_string_fetch.php
vendored
Normal file
9
tests/fixtures/ssti/php/unsafe_smarty_string_fetch.php
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
// Unsafe: `$smarty->fetch("string:" . $src)` parses the inline template
|
||||
// source via the `string:` resource prefix. Tainted $src yields SSTI.
|
||||
|
||||
function handler() {
|
||||
$src = $_GET['template'];
|
||||
$smarty = new \Smarty();
|
||||
return $smarty->fetch("string:" . $src);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue