Skip to content

Warn user about open redirects #7056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ and ``redirect()`` methods::

For more information, see the :doc:`Routing chapter </routing>`.

.. caution::

The ``redirect()`` method does not check its destination in any way. If you
redirect to some URL provided by the end-users, your application may be open
to the `unvalidated redirects security vulnerability`_.


.. tip::

The ``redirectToRoute()`` method is simply a shortcut that creates a
Expand Down Expand Up @@ -605,3 +612,5 @@ Learn more about Controllers
:glob:

controller/*

.. _`unvalidated redirects security vulnerability`: https://www.owasp.org/index.php/Open_redirect