-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Redirects can be used for XSS #24
Comments
Can you fix it? |
I suppose this should have a similar behaviour as Latte, when there is a variable in |
Maybe |
@JanTvrdik url may be relative |
(Why is „Close issue“ 3px near from „Comment“ dear @github? #uxfail) |
@fprochazka Latte regex for quick fix :) |
@dg It could be useful as |
If the attacker finds a hole, where he can provide an URL that is passed directly to
Http\Response::redirect()
, then he's able to create XSS.for example
Which executes to
The browser won't redirect, because it's not a valid url, but HTML will be printed
This happened to us in our mailing click-through counter.
Also relevant http://forum.nette.org/cs/21315-parsovani-absolutni-url-routerem-aplikace#p146150
The text was updated successfully, but these errors were encountered: