Skip to content

Commit 4a4a5fa

Browse files
Pascal de Vinkxabbuh
Pascal de Vink
authored andcommitted
Warn user about open redirects
1 parent 0c5defb commit 4a4a5fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

controller.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ and ``redirect()`` methods::
186186

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

189+
.. tip::
190+
191+
The ``redirect()`` method does not check it's input. If you use user input
192+
directly as it's parameter, you might open up your page to unvalidated
193+
redirects and forwards, which is in the OWASP top 10 of web application
194+
security flaws. For more information, see https://www.owasp.org/index.php/Open_redirect
195+
196+
189197
.. tip::
190198

191199
The ``redirectToRoute()`` method is simply a shortcut that creates a

0 commit comments

Comments
 (0)