Skip to content

Commit

Permalink
Issue #8: Added unvalidated redirect vulnerability
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Goel <[email protected]>
  • Loading branch information
siddharthgoel88 committed May 10, 2015
1 parent 24d64e0 commit 1648047
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unvalidated-redirects/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
echo "Yuhu !! I am just another page <br/>";

if(isset($_GET['redirect'])){
echo "Will be redirecting in 5 seconds";
$redirect_url = $_GET['redirect'];
header("refresh: 5; url=" . $redirect_url );
}
?>
13 changes: 13 additions & 0 deletions unvalidated-redirects/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>Unvalidated Redirects</title>
</head>

<body>
<center>
<img src="unvalidated-redirects.jpg" alt="Unvalidated redirects" />
</center>
</body>
</html>
Binary file added unvalidated-redirects/unvalidated-redirects.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1648047

Please sign in to comment.