Vulny-Code-Static-Analysis/vulns/unlink-use.php

10 lines
145 B
PHP
Raw Normal View History

2022-04-30 13:00:48 +00:00
<?php
$data = $_GET["data"];
// ruleid: unlink-use
unlink("/storage/" . $data . "/test");
// ok: unlink-use
unlink('/storage/foobar/test');
?>