vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - [DBTech] Two-Factor Authentication (vB4) (https://vborg.vbsupport.ru/showthread.php?t=309138)

DragonByte Tech 03-03-2014 11:00 PM

[DBTech] Two-Factor Authentication (vB4)
 
1 Attachment(s)
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
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

Quote:

Originally Posted by AK47- (Post 2484966)
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

Quote:

Originally Posted by FF|Skyrider (Post 2486693)
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 is licensed under a BSD 2-Clause License, A.K.A. "Simplified BSD License" or "FreeBSD License" 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 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

Quote:

Originally Posted by Zachery (Post 2492142)
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
  1. upload the "dbtech" folder to public_html
  2. import the product XML via vBulletin productmanager
  3. goto domain.com/vbpath/profile.php?do=twofactor&action=enable
  4. Save the recovery key and scan the QR and save to Google Authenticator => click save
after 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

Quote:

Originally Posted by iraqiboy90 (Post 2492196)
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

Quote:

Originally Posted by Delphiprogrammi (Post 2492151)
Oops yes 4.2.2 PL 1 i install it like this
  1. upload the "dbtech" folder to public_html
  2. import the product XML via vBulletin productmanager
  3. goto domain.com/vbpath/profile.php?do=twofactor&action=enable
  4. Save the recovery key and scan the QR and save to Google Authenticator => click save
after 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.

Quote:

Originally Posted by Delphiprogrammi (Post 2492243)
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 :)

Quote:

Originally Posted by iraqiboy90 (Post 2492196)
Nice plugin :)

Could sound silly, but what is the following:

Permissions
  • Can View
  • Can Add User Channel

Sorry, 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

Quote:

Originally Posted by Zachery (Post 2493123)
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

Quote:

Originally Posted by DragonByte Tech (Post 2495929)
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.

Quote:

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?

MoDz 08-27-2014 02:12 AM

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

Quote:

Originally Posted by phriek (Post 2533336)
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

We don't support the mobile style at this time, sorry :(

Quote:

Originally Posted by Buzzle (Post 2533337)
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?


All times are GMT. The time now is 10:31 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.01524 seconds
  • Memory Usage 1,840KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete