View Full Version : Integration with vBulletin - [DBTech] Two-Factor Authentication (vB4)
DragonByte Tech
03-03-2014, 11:00 PM
Two-Factor Authentication lets you ensure only trusted networks have access to your account, by using your smartphone to validate login attempts from new IP addresses.
Why use Two-Factor Authentication?
The most common form of "hacking" a forum today is someone guessing or in some other way gaining access to the password to an administrator account. Even with password protection on your AdminCP and ModCP directory, irreparable harm can be done with an administrator account without needing to log in to any of these locations. Enabling two-factor authentication ensures that only trusted networks can access the accounts of your staff as well as your members.
Our two-factor authentication mod uses Google Authenticator to pair a member's forum account with their smartphone app. A "Recovery Key" shown on-screen during setup ensures that if a member should ever lose their phone, they can regain access to their account.
-------------------------------------------------------------------------------------------
Other addons available @ www.DragonByte-Tech.com/forum (http://www.DragonByte-Tech.com/forum.php)
Support posted at our forum is generally answered much quicker.
-------------------------------------------------------------------------------------------
If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->
Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->
What does 'Marking As Installed' do ?
* It helps you to stay on top of updates - members who have installed modifications will be notified by us whenever new updates are available.
* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.
* Marking a modification as installed also helps us know how many people are using our work, giving us extra incentive to provide more features and new modifications.
We appreciate the support!
-------------------------------------------------------------------------------------------
Feature List
UserCP Integration
Adds a "Two-Factor Authentication" link in the UserCP under "My Account"
Displays a page with a button to activate or deactivate the authenticator
Network Verification
Logs the IP Address of members who have activated the authenticator
Asks for verification code for untrusted networks
Blocks forum, AdminCP and ModCP access attempts from untrusted networks
Google Authenticator
Uses Google's authenticator to handle the QR barcode and code generation
Works on Android and iOS
Recovery Key ensures that if you lose your phone, you can deactivate the authenticator
IP Whitelist
Adds a new config.php parameter, $config['TwoFactor']['ipwhitelist']
Whitelists IPs for all accounts for as long as the IP is in config.php
Follows the same rules as the AdminCP "IP Ban" interface for powerful IP management
General / Other
Display version number
Enter your Affiliate ID
-------------------------------------------------------------------------------------------
This mod displays a copyright notification in the footer of all pages which includes:
1 Link to DragonByte Technologies homepage
1 Link to Product Description page of this modification
Paul M
03-04-2014, 03:32 PM
This shouldn't be permitted....
What isnt permitted is random nonsense accusations.
Please do not make such claims unless you have solid evidence to back them up.
Unless such evidence is presented, I will be deleting these posts.
Gripi
03-04-2014, 04:39 PM
Thank you so much..
I really like two factor auth, just like fb with the sms auth code.
fjeans1
03-09-2014, 07:15 PM
i think it will be best if we can have alternative two factor auth
like email auth so other who dont prefer to link their phone with their
account can use email auth instead
anyway it a great idea and i been looking for something similar for sometime
Skyrider
03-12-2014, 03:35 PM
Is there anyway to see through the AdminCP to see if the user is using the Two-Factor Authentication? Great mod btw.
DragonByte Tech
03-12-2014, 06:33 PM
Is there anyway to see through the AdminCP to see if the user is using the Two-Factor Authentication? Great mod btw.Unfortunately not at this time. We might introduce a read-only display (something like "Authenticator Activated? Yes/No"), though :)
---
I decided to rename the class name in order to avoid class name collision, in the event that the user were experimenting with multiple different Two-Factor Authentication modifications to figure out which one is right for their forum.
The Google Authenticator class written by Michael Kliewe A.K.A. PHPGangsta (http://www.phpgangsta.de/) is licensed under a BSD 2-Clause License (http://opensource.org/licenses/bsd-license.php), A.K.A. "Simplified BSD License" or "FreeBSD License" (http://en.wikipedia.org/wiki/Bsd_license#2-clause_license_.28.22Simplified_BSD_License.22_or_ .22FreeBSD_License.22.29) and permits both derivative works as well as the use of this product in open- or closed-source products.
We have not removed any copyright information from the file and we have made no attempt to take credit for the creation of the class.
For that reason, until we hear from either the copyright holder or a legal representative of the copyright holder, we will proceed to use the file as-is in our project.
If anyone believes we have not followed the terms of the license as laid out, you are free to contact the copyright holder (or the copyright holder's legal representative) and point them to our Contact Us form (http://www.dragonbyte-tech.com/contactus.php) and we will be happy to work with them to rectify the situation.
Fillip
Paul M
03-12-2014, 08:37 PM
Off topic comments removed, any more will see infractions considered.
nextslit
03-14-2014, 03:24 AM
Thanks for sharing, this is a great mod, unfortunately it's not working on mobile style!
DragonByte Tech
04-01-2014, 05:55 PM
Two-Factor Authentication v1.0.1
Changes to Existing Features:
Using the "vSA Login To User Account" mod will no longer trigger the authentication requirement
Fillip
Skyrider
04-02-2014, 10:45 AM
Indeed, mobile / Tapatalk support would rock! I do have a question though. Is it possible that you can add something like the XenForo's 2-factor auth?
https://vborg.vbsupport.ru/external/2014/04/51.png
Showing last devices, etc. I love the way that this works perfectly with steam login.
Delphiprogrammi
04-08-2014, 07:15 AM
Hi,
This does not work on vBulletin 4.4.2 i mean it installs fine and it will let you setup the 2factor authentication after clicking the save button it says "2factor authentication has been enabled" and it logs you out but i can login again just with my username and password then when i goto the section under "myaccount" it shows me the setup screen again that is not the way 2factor authentication should work.
Zachery
04-08-2014, 06:16 PM
Do you mean 4.2.2? Did you follow all of the steps as laid out in the instructions?
Delphiprogrammi
04-08-2014, 07:36 PM
Do you mean 4.2.2? Did you follow all of the steps as laid out in the instructions?
Oops yes 4.2.2 PL 1 i install it like this
upload the "dbtech" folder to public_html
import the product XML via vBulletin productmanager
goto domain.com/vbpath/profile.php?do=twofactor&action=enable
Save the recovery key and scan the QR and save to Google Authenticator => click saveafter that i logout to see if it works but i can login with my username and password and no verification code is being asked.When i goto to profile.php?do=twofactor again then a verification is asked strange if you ask me.
iraqiboy90
04-09-2014, 01:36 AM
Nice plugin :)
Could sound silly, but what is the following:
Permissions
Can View
Can Add User Channel
Delphiprogrammi
04-09-2014, 08:17 AM
Nice plugin :)
Could sound silly, but what is the following:
Permissions
Can View
Can Add User Channel
that sounds like permissions but there is no "bitfield_productname.xml" in the zip so that is useless unless ofcource vBulletin changed the way permissions are implemented.
I don't see a plugin at any hooklocation that involves the loginproces so how is this seposed to work ?
Delphiprogrammi
04-09-2014, 12:23 PM
Hi,
Problem solved it seems this hack uses a DB table to verify ip addresses if your ip is verified no twofactor code is being asked however if you try to login with another computer (that has another ip) a verification code will be asked)
DragonByte Tech
04-10-2014, 07:02 PM
Oops yes 4.2.2 PL 1 i install it like this
upload the "dbtech" folder to public_html
import the product XML via vBulletin productmanager
goto domain.com/vbpath/profile.php?do=twofactor&action=enable
Save the recovery key and scan the QR and save to Google Authenticator => click saveafter that i logout to see if it works but i can login with my username and password and no verification code is being asked.When i goto to profile.php?do=twofactor again then a verification is asked strange if you ask me.
Hi,
Problem solved it seems this hack uses a DB table to verify ip addresses if your ip is verified no twofactor code is being asked however if you try to login with another computer (that has another ip) a verification code will be asked)
Correct :)
Nice plugin :)
Could sound silly, but what is the following:
Permissions
Can View
Can Add User ChannelSorry, that was a copy/paste mistake. It's been removed from the description.
Fillip
iraqiboy90
04-14-2014, 03:19 PM
Users are complaining that on phone devices the website will re-direct them back to the validation code on login after they have already submitted it.
i.e.
1. They login; username & password
2. Validation code.
3. Validation code accepted, and redirects them back to "2."
I've received this complaint regarding iPads and iPhones.
I have tested myself with iPad, but no problems.
I will still continue to test and gather more info.
Zachery
04-14-2014, 03:40 PM
I suspect their wireless providers have an IP changing on every page request, which would make it difficult to validate properly.
Might need a cookie set so the IP doesn't have to match.
iraqiboy90
04-16-2014, 12:54 PM
I suspect their wireless providers have an IP changing on every page request, which would make it difficult to validate properly.
Might need a cookie set so the IP doesn't have to match.
That would be nice. Or a device ID based authorization?
http://twofactorauth.org/providers/
SecureAuth seems to be the best one, but I'm still searching on how to implement it on vbulletin....
DragonByte Tech
04-25-2014, 10:23 PM
We'll be looking at future authentication providers in the future :)
Fillip
DragonByte Tech
05-02-2014, 09:56 PM
Two-Factor Authentication v1.0.2
New Features Added:
IP Whitelist
Adds a new config.php parameter, $config['TwoFactor']['ipwhitelist']
Whitelists IPs for all accounts for as long as the IP is in config.php
Follows the same rules as the AdminCP "IP Ban" interface for powerful IP management
Fillip
imported_silkroad
05-03-2014, 01:09 PM
Will this (potentially) install and work for vB 3.8.X forums?
DragonByte Tech
05-03-2014, 01:37 PM
Unfortunately not, as the templates are made with vB4 syntax, as are the calls to the template. Sorry :(
Fillip
iraqiboy90
05-07-2014, 12:09 PM
Two-Factor Authentication v1.0.2
New Features Added:
IP Whitelist
Adds a new config.php parameter, $config['TwoFactor']['ipwhitelist']
Whitelists IPs for all accounts for as long as the IP is in config.php
Follows the same rules as the AdminCP "IP Ban" interface for powerful IP management
Fillip
Does this work with partial IP?
DragonByte Tech
05-07-2014, 12:30 PM
Yes it does, it works with partial IPs and wildcards just like the AdminCP IP Ban interface.
Fillip
Cadellin
07-04-2014, 07:46 AM
Just installed this and I must say it's a great idea however I think it needs a few minor additions to make it work more universally.
- vBulletin mobile style support - currently users cannot use their mobile effectively as they get a error "this page is not supported via the mobile style".
- Option not to remember IP after current session expires
What's the current sitation with Tapatalk does anyone know? Does this mod conflict or is there an in-built workaround to avoid clashes?
mikez006
07-06-2014, 01:43 PM
There is a bug when you have password expiration enabled.
Your password is x days old, and has therefore expired.
Please change your password using this page.
When the user clicks to change their password the page simply reloads and doesn't allow the user to reset their password. I disabled two-factor authentication and the password change link then worked.
Anyone know how to fix this?
DragonByte Tech
07-12-2014, 04:06 PM
Two-Factor Authentication v1.0.2 Patch Level 1
Bug Fixes:
This mod will no longer interfere with the "Password Expiry" feature
This mod will no longer interfere with the "Force Profile Fields" feature
Fillip
DragonByte Tech
07-27-2014, 01:53 PM
Two-Factor Authentication v1.0.2 Patch Level 2
Bug Fixes:
This mod will no longer interfere with the "Password Expiry" feature
This mod will no longer interfere with the "Force Profile Fields" feature
Fillip
iraqiboy90
07-27-2014, 08:11 PM
what does the pl2 do differently than the pl1?
DragonByte Tech
07-27-2014, 08:21 PM
Updates the bugfix from PL1, which was incomplete.
Fillip
Esaam
08-12-2014, 12:38 AM
Hi,
I have an issue. The google authenticator tells me that the QRCode is not a valid google authenticator QRcode. Anyone has the same problem? I might have overlooked something. Sorry if that's the case.
iraqiboy90
08-12-2014, 02:21 AM
Request if possible:
an option to select from whether the plugin asks for the code when:
- IP changes
or
- Always (like in wordpress with a plugin)
Btw, any news about the Device ID / Cookie (with 24h ttl?) based authorization, so users with dynamic IPs that frequently changes (or every page request) can browse without getting interrupted by this plugin?
Can you add Yubikey Authentification? :)
DragonByte Tech
08-31-2014, 08:57 AM
Feature Requests are best posted @ our site, as we cannot log feature requests found on this site.
Fillip
phriek
01-19-2015, 08:20 AM
How can i add this nice addon to the standard-mobile-style? I get a "not supported"-error in the mobile view and have to switch to "Desktop Version" to enter my Authentication-Code
Buzzle
01-19-2015, 08:41 AM
Why does it say Invalid Authentication?
DragonByte Tech
01-19-2015, 05:01 PM
How can i add this nice addon to the standard-mobile-style? I get a "not supported"-error in the mobile view and have to switch to "Desktop Version" to enter my Authentication-CodeWe don't support the mobile style at this time, sorry :(
Why does it say Invalid Authentication?Make sure you are using the right authenticator app.
Fillip
Master Of Unive
01-25-2015, 05:07 AM
Great mod, but is there a way for Admin to email a user the recovery key incase the user has lost it?
DragonByte Tech
02-03-2015, 06:14 PM
You could look in the database, in the user table. The dbtech_twofactor_recovery column holds the recovery key.
Fillip
highlander29
06-15-2015, 09:29 PM
Is there anyway to see through the AdminCP to see if the user is using the Two-Factor Authentication? Great mod btw.
I'd like to ask this question again.
This is a nice mod but it would be really helpful to know who has that turned on.
DragonByte Tech
06-15-2015, 09:39 PM
Not at this time, sorry :(
Fillip
Alfa1
10-27-2015, 07:48 PM
Will this work for vb3?
Alan_SP
10-29-2015, 10:23 PM
Actually, it's already been asked and answered. Link to post (https://vborg.vbsupport.ru/showpost.php?p=2496013&postcount=23) were is that asked, next post is answer.
And no, it won't.
dany_danay
01-03-2016, 09:19 PM
Dont work.
DragonByte Tech
01-03-2016, 09:21 PM
Dont work.Hi there,
Would you be able to elaborate? Your post doesn't make it very easy for me to diagnose the issue, and we have hundreds of users of this mod that have no issues with it :)
Fillip
dany_danay
01-03-2016, 09:52 PM
Sorry, i post in your forum. QR and code its not accepted some time in Google Authentication App, and when it is acepted, the verification code is invalid...
https://vborg.vbsupport.ru/external/2016/01/24.png
DragonByte Tech
01-03-2016, 10:02 PM
I'll answer this @ our forum as soon as I can, thank you :)
Fillip
EvoDarrenshan
01-16-2016, 02:30 AM
Can you add the option of manually inserting the google auth ID for manual inserting the code on the auth app?
DragonByte Tech
01-18-2016, 04:56 PM
We'll definitely look into that for a future version :)
Fillip
DragonByte Tech
02-15-2016, 08:50 PM
Two-Factor Authentication v1.0.3
Changed Features:
Improved the security of the Google Authenticator integration class with fixes from GitHub
2FA no longer runs when attempting to authorise your IP address with vBSecurity, preventing scenarios where users have to click the vBSecurity authorisation link twice
Fillip
Doesn't seem to be working for me. No prompt for code.
Not sure what I am missing.
Version 4.2.3
DragonByte Tech
06-22-2016, 01:16 PM
Doesn't seem to be working for me. No prompt for code.
Not sure what I am missing.
Version 4.2.3Could you please try disabling all other modifications and see if that works for you?
Also, bear in mind that when you first add the authenticator, it trusts your current IP so you will only be asked for a code if you login from a new IP address.
Fillip
Ahh..I misunderstood the instructions.
I logged in from another machine. It is working.
I expected it to always prompt you for the code.
DragonByte Tech
12-19-2016, 09:18 PM
Two-Factor Authentication v1.0.4:
Fix: Fixed an issue with IPv6-only interfaces producing a database error
Fillip
dany_danay
02-06-2018, 05:42 PM
Still not working. Google app dont recongise the QR
IggyP
02-06-2018, 07:48 PM
Still not working. Google app dont recongise the QR
+1
i was just hearing the same thing....seemed to be kind of working, then suddenly wasnt....somethings going on idk
dany_danay
02-08-2018, 02:55 PM
Someone can rewrite this?
dany_danay
03-05-2018, 04:39 PM
Up.. not working
DragonByte Tech
03-05-2018, 04:40 PM
I am not able to replicate any issues with it, it works perfectly fine @ our site.
Fillip
Zelda-King
04-05-2018, 11:24 AM
I've installed it fine on 4.2.5. The only suggestion is a way for it to work per trusted device as those not on a static IP will have to re-authenticate every session.
Piloux
08-02-2018, 06:59 PM
One of my users installed it but lost his phone and doesn't have the recovery key.
As the website administrator, is there a way I can remove it from his account?
Piloux
08-19-2018, 12:29 PM
One of my users installed it but lost his phone and doesn't have the recovery key.
As the website administrator, is there a way I can remove it from his account?
One of my users installed it but lost his phone and doesn't have the recovery key.
As the website administrator, is there a way I can remove it from his account?
This happened with one of my users a few days ago, I had to remove the values in the dbtech_twofactor_secret & dbtech_twofactor_recovery fields for that user in the user database table to get him back in.
If you post over at dragonbyte's support forum they may have a better way.
Piloux
08-23-2018, 08:01 AM
This happened with one of my users a few days ago, I had to remove the values in the dbtech_twofactor_secret & dbtech_twofactor_recovery fields for that user in the user database table to get him back in.
If you post over at dragonbyte's support forum they may have a better way.
Alright thanks, so it's in the table users ?
Yes, I cleared the values in the "dbtech_twofactor_secret" & "dbtech_twofactor_recovery" fields in the "user" table for that member.
fortforum
08-24-2018, 01:19 PM
Such a feature would be extremely nice to have access to from admincp.
Sforums
10-17-2019, 12:01 PM
Uninstalled.
Using vb 4.1.0 - "Two factor Authentication" nowhere to be seen under "My Account"
wolfe
08-25-2022, 01:31 PM
is it possible to make this so it pops up on every login and not just on new IPs ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.