Reputation: 109
Google's Webmaster blog wrote some solution on how to prevent Open Redirect Protection abuse, I've been perplexed by some of the solutions there for quite sometime, I tried googling but found no results.
My guesses on the solution:
%{HTTP_REFERER}
to do some checking in the url requestPlease let me know if my guesses are correct, and if they're not please tell me how to do it correctly in PHP or Apache. Thanks!
Upvotes: 1
Views: 3089
Reputation: 1027
Upvotes: 1
Reputation: 852
An Open Redirect becomes possible when your application does a blind redirect based on user supplied content ie by POST or GET. Open Redirects are most commonly exploited by Phishing attacks.
To prevent Open Redirects, you should validate and verify any URL that you redirect to if the URL is coming from user input. It should be verified based on a whitelist.
Upvotes: 0