Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unvalidated Redirects and Forwards

Unvalidated Redirects and Forwards

Also know as: Client Side URL Redirection or Open Redirection.
“An open redirect is an application that takes a parameter and redirects a user to the parameter value without any validation”

Sang Bui

June 17, 2016
Tweet

More Decks by Sang Bui

Other Decks in Technology

Transcript

  1.  It is an input validation flaw.  Application accepts

    an user input without validating.  Leads to an external URL.  Platform affected: All web platforms. “An open redirect is an application that takes a parameter and redirects a user to the parameter value without any validation”
  2. Could be used to:  Phishing attack  Redirect a

    victim to the malicious page  Misrepresent an organization or company  Bypass the application’s access control checks / Forwards to access unauthorized pages or functions
  3. "I plan to lose atleast 40 pounds with your diet

    program! hxxx://wzus1.ask.com/r?t=p&d=us&s=a&c=a&l=dir&o=0&sv=0a5 c407b&ip=5f19241a&id=94E847AC91F239E2B20A30571533AFB0 &q=How+long+did+Mark+Twain+insist+his+life+story+go+unpub lished%3F&p=1&qs=3045&ac=254&g=1a39vz0X%y%zxm&en=qo td&io=0&ep=&eo=&b=a001&bc=&br=&tp=171&ec=1&pt=hxxx://t umblrhealth.me&ex=&url=&u=hxxx://tumblrhealth.me …"
  4. Redirect External: http://www.abc.com?redirect=http://www.attacker.com  The victim that visits abc.com will

    be automatically redirected to www.attacker.com  Forwards (Transfers) send the request to a new page in the same application .. which could bypass authentication or authorization. http://www.abc.com/submit.php?fwd=admincp.php Redirect Internal:
  5.  Avoid using redirects and forwards  Unavoidable then it

    should be done without involving user parameters in redirecting the destination  Valid user input