Loading...
 
Skip to main content

Security warning when logout with Web server authentication and Firefox

Status
Open
Subject
Security warning when logout with Web server authentication and Firefox
Version
18.x
Category
  • Bug
Resolution status
New
Submitted by
Mauro Innocenti
Lastmod by
Mauro Innocenti
Rating
(0)
Description

I'm using the last LTS Tikiwiki version (18.1) on Apache 2.2/PHP 5.6/Mysql 5.5.

I configured Tikiwiki with "Web server" authentication method.
Using Firefox (no problems with Chrome), when I logout from Tikiwiki, the browser alert me with this popup:
"You are about to log in to the site "ww.example.com" with the username "admin", but the website does not require authentication. This may be an attempt to trick you.
Is "www.example.com" the site you want to visit?"

Looking at code, I found this suspect line (336) of "lib/userslib.php" :
header('Location: ' . str_replace('//', '//admin:@', $url)); // simulate a fake login to logout the user

Importance
5
Easy to solve?
10 easy
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6672
Created
Tuesday 29 May, 2018 14:26:30 UTC
by Mauro Innocenti
LastModif
Tuesday 29 May, 2018 14:26:30 UTC


Show PHP error messages