In a multi-step process, I get the URL as a form field.
After processing, my PHP script redirects to this address using header("Location: ...");
Besides being able to be used as a redirect service for porn sites to create harmless looking email links ( Open Redirect , which can be helped by matching URLs for a local domain), are there any dangers for hacking / exploitation that you should be aware of in this process?
One thing that came to mind was that new lines were exported to the URL, which could open up the possibility of sending arbitrary headers to the client.
source share