Project

General

Profile

Actions

Bug #70216

closed

Bug in compareUident (SaltedPasswordService.php) if salted passwords are used

Added by Thomas Hohn about 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Authentication
Target version:
-
Start date:
2015-09-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In fe_users we store the users password as salted password :-)

The call compareUident in SaltedPasswordService.php used by authUser seems to fail since
the password read from $loginData['uident_text'] is now salted and hence the call
to $validPasswd = $this->objInstanceSaltedPW->checkPassword($password, $user['password']);
will fail since the password here is expected to be in plaintext

The methods checkPassword implemented in PhpassSalt, and Md5Salt should be able to perform
the comparison even if a salted password is provided.

Actions #1

Updated by Helmut Hummel over 8 years ago

  • Status changed from New to Needs Feedback

Thomas Hohn wrote:

The call compareUident in SaltedPasswordService.php used by authUser seems to fail since
the password read from $loginData['uident_text'] is now salted

This is wrong, otherwise noting would work any more. $loginData['uident_text'] always contains the clear text password, unless an extension service wrongly replaces it with something different.

If you use a plain core, then this works correctly.

Can you clarify what your problem is?

Actions #2

Updated by Riccardo De Contardi about 8 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90+ days > closing this one.

If you think that this is the wrong decision or experience the issue again or have more information about how to reproduce it, please reopen it or open a new issue with a reference to this one.

Thank you

Actions

Also available in: Atom PDF