![]() |
Possible bug/security issue
found this in core/includes/functions_login.php
Code:
if ($postvars['securitytoken'] = 'guest') |
No it is not a comparison operator, it is a string operator, http://php.net/manual/en/language.operators.string.php
Not a bug or security issue. |
Quote:
|
No it does not assign, $postvars['securitytoken'] with 'guest'
What it is is part of the login redirect, saying if the user logging in is a guest, to do this. |
I think he means that
if($postvars['securitytoken'] = 'guest') Will assign guest to the $postvars['securitytoken'] variable. However, it should be this: if($postvars['securitytoken'] == 'guest') I don't know the rest of the code so this might be intended by whoever wrote the script. |
I believe he is correct, it looks like a typo from the vb4 version of the same code.
|
This was fixed in vBulletin v4.1.11. :)
|
Quote:
/*================================================= =====================*\ || ################################################## ################## || || # vBulletin 5.1.2 Patch Level 3 - Licence Number ########## || # ---------------------------------------------------------------- # || || # Copyright ?2000-2014 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ################################################## ################## || \*================================================ ======================*/ I could upload the file as proof, if it doesn't get me into trouble for copyright violations. |
Quote:
VB5 was ported from VB4 before they fixed it in VB4, so it makes sense. Make sure you post it to JIRA, or if you do not want to bother let me know and I will handle it. |
Quote:
Thanks for letting me know, I think your explanation is very plausible and also the most likely given the circumstances. The reason I posted this here first was because I didn't want to submit an inaccurate bug report. |
All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|