This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit

Germany/Projekte/Top 10-2013-A10-Ungeprüfte Um- und Weiterleitungen

Revision as of 18:26, 15 June 2013 by T.Gigler (talk | contribs) (Import vom engl. Wiki, mit language=de)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NOTE: THIS IS NOT THE LATEST VERSION. Please visit the OWASP Top 10 project page to find the latest edition.

← A9-Nutzung von Komponenten mit bekannten Schwachstellen
2013 Inhaltsverzeichnis

2013 Die Top-10-Risiken

Nächste Schritte für Software-Entwickler →
Bedrohungsquellen Angriffsvektoren Schwachstellen Technische Auswirkung Auswirkung auf das Unternehmen
Application / Business Specific

Consider anyone who can trick your users into submitting a request to your website. Any website or other HTML feed that your users use could do this.

Attacker links to unvalidated redirect and tricks victims into clicking it. Victims are more likely to click on it, since the link is to a valid site. Attacker targets unsafe forward to bypass security checks.

Applications frequently redirect users to other pages, or use internal forwards in a similar manner. Sometimes the target page is specified in an unvalidated parameter, allowing attackers to choose the destination page.

Detecting unchecked redirects is easy. Look for redirects where you can set the full URL. Unchecked forwards are harder, because they target internal pages.

Such redirects may attempt to install malware or trick victims into disclosing passwords or other sensitive information. Unsafe forwards may allow access control bypass.

Consider the business value of retaining your users’ trust.

What if they get owned by malware?

What if attackers can access internal only functions

Bin ich durch 'Ungeprüfte Um- und Weiterleitungen' verwundbar?

The best way to find out if an application has any unvalidated redirects or forwards is to:

  1. Review the code for all uses of redirect or forward (called a transfer in .NET). For each use, identify if the target URL is included in any parameter values. If so, if the target URL isn’t validated against a whitelist, you are vulnerable.
  2. Also, spider the site to see if it generates any redirects (HTTP response codes 300-307, typically 302). Look at the parameters supplied prior to the redirect to see if they appear to be a target URL or a piece of such a URL. If so, change the URL target and observe whether the site redirects to the new target.
  3. If code is unavailable, check all parameters to see if they look like part of a redirect or forward URL destination and test those that do.
Wie kann ich 'Ungeprüfte Um- und Weiterleitungen' verhindern?

Safe use of redirects and forwards can be done in a number of ways:

  1. Simply avoid using redirects and forwards.
  2. If used, don’t involve user parameters in calculating the destination. This can usually be done.
  3. If destination parameters can’t be avoided, ensure that the supplied value is valid, and authorized for the user.
    It is recommended that any such destination parameters be a mapping value, rather than the actual URL or portion of the URL, and that server side code translate this mapping to the target URL.
    Applications can use ESAPI to override the sendRedirect() method to make sure all redirect destinations are safe.

Avoiding such flaws is extremely important as they are a favorite target of phishers trying to gain the user’s trust.

Mögliche Angriffsszenarien

Scenario #1: The application has a page called “redirect.jsp” which takes a single parameter named “url”. The attacker crafts a malicious URL that redirects users to a malicious site that performs phishing and installs malware.

Scenario #2: The application uses forwards to route requests between different parts of the site. To facilitate this, some pages use a parameter to indicate where the user should be sent if a transaction is successful. In this case, the attacker crafts a URL that will pass the application’s access control check and then forwards the attacker to administrative functionality for which the attacker isn’t authorized.


  • OWASP Article on Open Redirects
  • ESAPI SecurityWrapperResponse sendRedirect() method


  • CWE Entry 601 on Open Redirects
  • WASC Article on URL Redirector Abuse
  • Google blog article on the dangers of open redirects
  • OWASP Top 10 for .NET article on Unvalidated Redirects and Forwards
← A9-Nutzung von Komponenten mit bekannten Schwachstellen
2013 Inhaltsverzeichnis

2013 Die Top-10-Risiken

Nächste Schritte für Software-Entwickler →

© 2002-2013 OWASP Foundation This document is licensed under the Creative Commons Attribution-ShareAlike 3.0 license. Some rights reserved. CC-by-sa-3 0-88x31.png