Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #50552 [Security] Allow custom scheme to be used as redirection U…
…RIs (Spomky) This PR was merged into the 5.4 branch. Discussion ---------- [Security] Allow custom scheme to be used as redirection URIs | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #50500 | License | MIT | Doc PR | not needed ping `@sdespont` and `@MatTheCat` This PR aims at fixing the redirection issue where only URLs starting with `http` are 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/../../.htpasswd`~ * ~With protocol-relative e.g. `//malicious.app/foo/bar`~ Commits ------- 3a6969f363 [Security] Allow custom scheme to be used as redirection URIs
- Loading branch information