vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to create a user bridge? (Getting plain text password) (https://vborg.vbsupport.ru/showthread.php?t=240651)

lennix 04-17-2010 03:43 PM

How to create a user bridge? (Getting plain text password)
 
Hey there,

I've been searching for a solution of my problem for more than 2 days now and I can't find anything.

I'm running vBulletin 4.0 and I'm really happy with it. My Project is running a game server where you need to register an account to be able to play. I want to create a bridge, that registering on vBulletin also registers the user on the login server of my game server.
To achieve this I need the plain text password and the username of the user on registration and on change of password. I already hacked the login-routine but "$vbulletin->GPC['vb_login_password'];" is empty on "if ($_POST['do'] == 'login')" in login.php.

Do you have any idea how to resolve this problem? I would love to solve this with the cool plugin-system.

Thanks in advance,
Lennix aka. Pascal

NickyDee 04-17-2010 06:05 PM

It might be easier to just setup your game server to share the same user name and password tables with vBulletin, depending on how much control you have over the game server?

Problem with the vBulletin password is its double MD5 hashed and salted when its passed to and stored in the database. Getting the text version will require pretty extensive modification of vB, its also going to kill your users security and privacy because their password will be passing around with no encryption on it.

lennix 04-17-2010 06:17 PM

The main problem is that the game server and the web server are running on different systems. And due to security matters we only have a one-way connection web server->game server established.

Somebody told me that at the moment I click on login the password is already hashed using javascript. Is that true? Because then I have to give up and create another page for registration on the game server. I could run it inside vBulletin so that the players are forced to sign up on our boards.

But if the password is hashed on the backend using php I could grep it and work with it.

Best regards,
Lennix aka. Pascal

NickyDee 04-17-2010 06:35 PM

Quote:

Originally Posted by lennix (Post 2022795)
Somebody told me that at the moment I click on login the password is already hashed using javascript. Is that true? Because then I have to give up and create another page for registration on the game server. I could run it inside vBulletin so that the players are forced to sign up on our boards.

But if the password is hashed on the backend using php I could grep it and work with it.

I'm fairly certain the hash is achieved with javascript. This means that the password is hashed before it leaves the page (so the password isn't vulnerable if its intercepted during the exchange).

I would consider setting this up as something like a compulsary user profile field on signup that is passed to your game server when they login. If your current users haven't completed the field then they get an error message or even a redirect to complete the compulsary field.


All times are GMT. The time now is 02:12 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
  • Page Generation 0.01078 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete