Skip to content

Commit

Permalink
Merge pull request #162 from hitisec/fixpathtraversal
Browse files Browse the repository at this point in the history
Fix missing exit
  • Loading branch information
moufmouf authored May 7, 2021
2 parents a29c8be + 0ad5d10 commit 83354d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/direct/get_source_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

if (strpos($file, "..") !== false) {
echo "Error, invalid file name";
die("Error, invalid file name");
}

readfile(ROOT_PATH.$file);

0 comments on commit 83354d6

Please sign in to comment.