Open redirect
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Open Redirect Lab</title>
</head>
<body>
<h1>Welcome to the Open Redirect Lab</h1>
<p><a href="redirect.php?url=success.php">Go to Success Page</a></p>
<p><a href="redirect.php?url=http://malicious.com">Go to Malicious Page</a></p>
</body>
</html>all seniors
//Using #
<http://localhost/labs/op/redirect.php?url=http://evil.com#.google.com> or using %23
//Using \\,\\\\
<http://localhost/labs/op/redirect.php?url=http://evil.com\\.google.com>
//Using @
<http://localhost/labs/op/redirect.php?url=http://evil.com@google.com>
//Using TLD
<http://localhost/labs/op/redirect.php?url=.test.com>
//withOut // [http:google.com]
<http://localhost/labs/op/redirect.php?url=http:google.com>
Mitigation
Allowlisted Redirects
Absolute URL Validation
Last updated