Open Redirect: JavaScript-based Redirects

Open redirectExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

If the application uses JavaScript for redirects, attackers may manipulate script variables:

Example:

js
var redirectTo = "http://trusted.com";
window.location = redirectTo;

Payload: ?redirectTo=http://malicious.com

Comments

No comments yet.