The $_POST['redirect'] system in identification.php can lead to redirect outside Piwigo. On any location actually. To avoid any "open redirect" security issue, Piwigo should make sure the redirection occurs only with Piwigo, not outside.
Reported by Eric Fernando Castañeda Nazario
The `$_POST['redirect']` system in identification.php can lead to redirect outside Piwigo. On any location actually. To avoid any "open redirect" security issue, Piwigo should make sure the redirection occurs only with Piwigo, not outside.
Reported by Eric Fernando Castañeda Nazario
<!-- github-sync-id:235796803 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The
$_POST['redirect']system in identification.php can lead to redirect outside Piwigo. On any location actually. To avoid any "open redirect" security issue, Piwigo should make sure the redirection occurs only with Piwigo, not outside.Reported by Eric Fernando Castañeda Nazario
@modus75 can you review that please :-) ?
For the "forced redirection" (second commit
bbb9c5e6b5), here are 4 examples:A) http://localhost/piwigo/git/identification.php?redirect=/piwigo/git/admin.php
B) http://localhost/piwigo/git/identification.php?redirect=http://piwigo.org
C) https://pierrick.piwigo.com/identification.php?redirect=%252Fadmin.php
D) https://pierrick.piwigo.com/identification.php?redirect=http://piwigo.org
Looks OK to me
Le 14 juin 2017 10:28, "Pierrick Le Gall" notifications@github.com a
écrit :
Thank you @modus75 commits merged :-)