In a multi-step form process, I am receiving a URL as a form field.
After processing, my PHP script redirects to that address using header("Location: ...");
Apart from the possibility of being misused as a redirect service for porn sites to generate harmless-looking links in E-Mails (Open Redirect, which can be helped by matching the URL to the local domain), are there any hacking / exploitation dangers to be aware of in this process?
One thing that came to mind was smuggling newlines into the URL, which might open the possibility of sending arbitrary headers to the client.