The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
< in Passwords
#2
Hey Brandin, I think I have the answer (I've been unable to post for several days, sorry for a late reply!). The password that is sent to the validation script in login.php has been sanitized by Input::get(), which in turn calls Input:Confusedanitize and calls htmlentities. The < has been converted to < in the password string.

This is the offending line in login.php:
Code:
$login = $user->loginEmail(Input::get('username'), trim(Input::get('password')), $remember);

To get around this with minimal code changes, you could modify the Input class call to this:
Code:
public static function get($item, $bypassSanitize = false) {

and later in the function when sanitizing the get/post arrays or single items, run an if ($bypassSanitize === true) before the sanitizing code. Then, in login.php you'd simply change the line to this:
Code:
$login = $user->loginEmail(Input::get('username'), trim(Input::get('password', true)), $remember);
  Reply


Messages In This Thread
< in Passwords - by Brandin - 07-03-2017, 06:33 PM
< in Passwords - by karsen - 07-09-2017, 07:28 PM
< in Passwords - by Brandin - 07-12-2017, 11:30 AM
< in Passwords - by mudmin - 07-12-2017, 12:26 PM
< in Passwords - by Brandin - 07-13-2017, 10:05 PM
< in Passwords - by karsen - 07-15-2017, 04:27 PM
< in Passwords - by Brandin - 07-16-2017, 06:10 PM
< in Passwords - by karsen - 07-16-2017, 08:34 PM
< in Passwords - by Brandin - 07-18-2017, 12:15 PM
< in Passwords - by Brandin - 07-18-2017, 12:18 PM
< in Passwords - by karsen - 07-18-2017, 05:13 PM
< in Passwords - by Brandin - 07-18-2017, 06:23 PM
< in Passwords - by karsen - 07-18-2017, 06:40 PM
< in Passwords - by Brandin - 07-18-2017, 06:43 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)