![]() |
Since it's not a security issue, feel free to post how it works.
|
Wierd
|
Hi,
Quote:
As this was fixed in vb2.2.6, I've posted the details below: I have chosen to enable guest posting in my forum but did not want the username field to default to "Unregistered." I made the default username "". Vbulletin does not (much to my dismay) check for contents in the username field--neither via javascript nor internally. I therefore wanted to add this check, much in the same way checks are made for a subject and message. When a registered user posts, there is no username input field to check since it's already supplied (the link with [logout] next to it). Therefore, I tested what would happen if I created a hidden field with a username value of "null" (i.e. <input type="hidden" name="username" value="null">). Much to my dismay, vbulletin processed that value and used it for the thread table's username information. One can change the value of the username field in the thread display by passing it via a hidden input field. This will work so long as the value you specify is not a currently registered user. I have not checked any other areas of the code for similar failures in checking, although I can't picture a place where this would be a problem. I have verified that this no longer works in vb2.2.6 and the hidden username value is correctly ignored in favor of the actual logged in user. Thanks, Paul P.S. -- Those that are interested, I was able to check for a username value via javascript using the following code: Code:
if (typeof(theform.username) == "undefined") { Edit: Confirmed that vb2.2.6 now does check for the presence of a username and will not accept a blank value. :) |
aver......
|
This is happening on VB 3.0.1 . Any idea how to solve this? Users are being able to post with other user names, etc.
|
This thread is over 2 years old, please start a new thread with what your problems are exactly. and if you have not hacked vbulletin post it at vBulletin.com
|
All times are GMT. The time now is 07:03 PM. |
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:
|