Files
PocketPentester/vuln-lab/web/www/redirect.php
2026-04-19 21:10:40 +07:00

6 lines
214 B
PHP

<?php
// Open redirect — accepts any url/to/dest/next param.
$target = $_GET['url'] ?? $_GET['to'] ?? $_GET['dest'] ?? $_GET['next'] ?? '/';
header("Location: $target", true, 302);
echo "redirecting to $target";