Skip to content

Commit

Permalink
add index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
phith0n committed Apr 1, 2018
1 parent 7f8fe67 commit 15f0d25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions httpd/CVE-2017-15715/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
if(isset($_FILES['file'])) {
$name = basename($_POST['name']);
$ext = pathinfo($name,PATHINFO_EXTENSION);
if(in_array($ext, ['php', 'php3', 'php4', 'php5', 'phtml', 'pht'])) {
exit('bad file');
}
move_uploaded_file($_FILES['file']['tmp_name'], './' . $name);
}

0 comments on commit 15f0d25

Please sign in to comment.