Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Security] Allow custom scheme to be used as redirection URIs#50552
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Spomky commentedJun 4, 2023
The support for URNs could be removed. It looks like it is not part of the current best practices (seeRFC8252); custom scheme like |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(don't miss syncing the PR description with latest changes)
ee69421 to0486a18CompareUh oh!
There was an error while loading.Please reload this page.
chalasr left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
See stof's review. Also keeping existing tests untouched makes the patch easier to review, which makes me much more confident to merge on security-related topics especially. Please avoid any refactoring if possible :)
7e2abc6 todf36a1aCompareSpomky commentedJun 6, 2023
Hi@chalasr, Many thanks for your comment. I restored the previous tests and keep the one I created. Let me know if you agree with the modifications. Regarding the behavior of paths starting with |
df36a1a to9c5d1e6Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I removed the part about supposedly security hardening, which are unproven to me and change the behavior.
Spomky commentedJul 7, 2023
Agreed. Let's keep it simple and without any BC. |
Uh oh!
There was an error while loading.Please reload this page.
9c5d1e6 to3a6969fComparenicolas-grekas commentedJul 13, 2023
Thank you@Spomky. |
Uh oh!
There was an error while loading.Please reload this page.
ping@sdespont and@MatTheCat
This PR aims at fixing the redirection issue where only URLs starting with
httpare allowed.With the modified behavior, it is now allowed to use any URL scheme. It will be possible to redirect to
android-app://com.google.android.gm/.In addition, it prevents the redirection to the following URLs:With path traversal e.g.https://example.com/foo/../../.htpasswdWith protocol-relative e.g.//malicious.app/foo/bar