vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vBulletin SHA1 Workaround? (https://vborg.vbsupport.ru/showthread.php?t=151877)

agallian86 07-10-2007 11:15 AM

vBulletin SHA1 Workaround?
 
I have a 17 response thread in the general forum that has moved beyond abstractions and I could use some actual coding help.

https://vborg.vbsupport.ru/showthread.php?t=151539

It can all be summarized by noting that I've migrated a forum (SMF) into vBulletin. Now, obviously vBulletin uses an MD5 hash and SMF uses SHA1 hashing. I'm attempting to workaround having users reset their passwords. The basic idea is:

Quote:

Originally Posted by Marco van Herwaarden (Post 1286965)
Hmm what you COULD do:
- Check if the MD5 password matches
- If not encrypt the unencrypted password with SHA1, and check the password. If it is a match, re-hash the unencrypted password with MD5 and write to the database so the next attempt will match the normal MD5 hash vBulletin uses.

After some time most SHA1 hashed passwords should be gone.

I currently have my db storing all new accounts in plain-text, though this isn't desired for security purposes, I can now seemingly do the outline above. The only question is...how? I was assuming I need to create a type of vbulletin_sha1.js and modify some php file(s), could anyone point me on the correct path?

Thanks for the assistance guys!

Dismounted 07-11-2007 06:05 AM

Take a look at this thread I found of vB.com:
http://www.vbulletin.com/forum/showthread.php?t=81103

agallian86 07-11-2007 12:23 PM

Yeah, thanks.

Trouble is, I had already seen that, and it doesn't really go into that much specifics.

If someone could help me regarding what to do with his importer in order to modify it for my purpose that'd be wonderful.

Else, that thread is lacking the concrete details I need to take it past mere abstraction.

Reeve of shinra 07-11-2007 01:24 PM

I can't seem to find it at the moment but there was a hack released so that the login.php file uses the SMF authentication method (SHA1) instead of the vbulletin method (MD5 hashes).

It might have been for 3.0 or 3.5 but not much should have changed.

agallian86 07-11-2007 01:39 PM

Sweet, if that's avialable that's great.

I saw a SMF converter that converted the old SMF passwords which were MD5 to the hash required for vBulletin; and that particular tool was released for vBulletin 3.5 and SMF 1.0 (md5, pre-SHA1 days).

The converter I'm referring to, but hopefully you arent, is located at:
https://vborg.vbsupport.ru/showthread.php?t=97243

Is this what you had in mind, or do you know of a separate tool?

Reeve of shinra 07-11-2007 02:20 PM

Agallian - yes that was the hack I was referring to.

agallian86 07-11-2007 02:24 PM

Yeah, I figured as much.

Like I said, that worked for the days when MD5 was used in SMF, so it was just a matter of hashing the pw and salting it. As of SMF 1.1 they updated to the SHA1 hash and it no longer works.

I've done my research before outright begging you guys for help :)

agallian86 07-13-2007 11:24 AM

Alright, nearly 30 posts (between both threads) and nothing concrete, I guess I'll just have to have users switch their passwords.


All times are GMT. The time now is 04:16 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.01581 seconds
  • Memory Usage 1,724KB
  • 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
  • (8)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