> For the complete documentation index, see [llms.txt](https://kathan19.gitbook.io/howtohunt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kathan19.gitbook.io/howtohunt/open-redirection/open_redirection_bypass.md).

# Open Redirection Bypass

This bypass I found in a application while I doing pentesting. I hope it will helps you too!

1. While you I trying to redirect <https://targetweb.com?url=http://attackersite.com> it did not redirected!
2. I Created a new subdomain with with [www.targetweb.com.attackersite.com](http://www.targetweb.com.attackersite.com)
3. And when I tried to redirect with <https://targetweb.com?url=www.targetweb.com.attackersite.com>
4. It will successfully redirected to the [www.targetweb.com.attackersite.com](http://www.targetweb.com.attackersite.com) website!
5. Due to the bad regex it has been successfully bypass their protection!

## Authors:

* [@bishal0x01](https://twitter.com/bishal0x01)

## Reference Tweets:

* <https://twitter.com/bishal0x01/status/1262021038080053248>
