Skip to content
/ redirex Public

tool that generates bypasses for open redirects

Notifications You must be signed in to change notification settings

wfinn/redirex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirex

This tool generates bypasses for open redirects.
Many of the bypasses apply for software other than browsers, but I recommend thorough fuzzing there.

  1. find a redirect on your target
  2. generate list of payloads for the domain
  3. use Intruder, ffuf or headless browsers to test payloads
  4. do manual testing for app specific payloads if the redirect seems unusual
go install github.com/wfinn/redirex@latest
redirex -t target.tld -a attacker.tld
redirex -h # to see all options

Bypasses

Many bypasses require that you have catch all DNS for your domain.
Some bypasses only work in Safari.

This tool does not create all possible permutations, but aims to generate a good amount.

Finding Redirects

You can use these parameters at login, logout & register.

?Redirect=/Redirect&RedirectUrl=/RedirectUrl&ReturnUrl=/ReturnUrl&Url=/Url&action=/action&action_url=/action_url&backurl=/backurl&burl=/burl&callback_url=/callback_url&checkout_url=/checkout_url&clickurl=/clickurl&continue=/continue&data=/data&dest=/dest&destination=/destination&desturl=/desturl&ext=/ext&forward=/forward&forward_url=/forward_url&go=/go&goto=/goto&image_url=/image_url&jump=/jump&jump_url=/jump_url&link=/link&linkAddress=/linkAddress&location=/location&login=/login&logout=/logout&next=/next&origin=/origin&originUrl=/originUrl&page=/page&pic=/pic&q=/q&qurl=/qurl&recurl=/recurl&redir=/redir&redirect=/redirect&redirect_uri=/redirect_uri&redirect_url=/redirect_url&request=/request&return=/return&returnTo=/returnTo&return_path=/return_path&return_to=/return_to&rit_url=/rit_url&rurl=/rurl&service=/service&sp_url=/sp_url&src=/src&success=/success&target=/target&u=/u&u1=/u1&uri=/uri&url=/url&view=/view

To test for for redirects that require full urls use echo "params" | sed 's#=/#=https://TARGETDOMAIN/#g'.

You could also use my (currently experimental) tool redirs to do something like:

$ waybackurls target.tld | uro > urls.txt
$ redirs < urls.txt
from:  https://target.tld/logout.php?return=home
to:    https://target.tld/home.php
...

Issues

  • The order of the generated list is not ideal, manually tweaking it is recommended if you have many endpoints on the same target to get a hit faster.

Thanks to:

About

tool that generates bypasses for open redirects

Topics

Resources

Stars

Watchers

Forks

Languages