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

10 lines
145 B
PHP

<?php
$data = $_GET["data"];
// ruleid: unlink-use
unlink("/storage/" . $data . "/test");
// ok: unlink-use
unlink('/storage/foobar/test');
?>