[Bug report] lobby/main 2FA

Discussion in 'Help & Support / Errors & Bugs' started by 314, Oct 8, 2017.

  1. 314

    314 Irratioπal President, former ServerAdmin
    President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $27,000,000
    Ratings:
    +4,866
    Minecraft Username:
    314.

    Brief Description:
    The 2FA codes from the lobby and main server appear to overwrite each other.

    Instructions:
    1. Set up /2fa on the main server.
    2. Set up /2fa on the lobby server; it will use the same code generator as the main server.
    3. Go to the main server.
    4. Attempt to use /2fa <code> and receive "Invalid code!" errors.
    Right now my phone's 2FA list contains the following entries:

    How many times did you recreate this bug?:
    Twice.

    Result:
    The main server suddenly regards 2FA codes as invalid.

    Expected Result:
    Either separate code generators for the lobby and the server (like it used to be when the lobby was first released a long time ago) or one generator that isn't overwritten by different servers.

    Evidence:
    N/A, unless you want to see screenshots of "Invalid code!" error messages.

    @zr2002 had a similar issue recently, although I believe it was the other way around (i.e. being unable to enter the code on the lobby server).
     
  2. zr2002

    zr2002 Nub Moderator
    Resident ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Aug 17, 2014
    Messages:
    5,474
    Trophy Points:
    63,660
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +3,161
    Nope, I had the exact same thing you did :p
     
    • Informative Informative x 1
    • List
  3. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    @andrewkm - I think the DB's might be overwriting eachother.
     
  4. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
    @314 @zr2002 @Nicit6

    You are all on crack. This is my final conclusion.
    I have just done 100% extensive testing and absolutely cannot reproduce this myself. I have removed my code several times and added it in all sorts of different fashions.

    My conclusion is: Get a better 2FA application.

    I personally use "AUTHY" and recommend you all switch over to it if you're not already on it.
     
  5. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
  6. 314

    314 Irratioπal President, former ServerAdmin
    President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $27,000,000
    Ratings:
    +4,866
    @andrewkm, you are not going to like this post...


    Step 1: Set up 2FA on the main server.
    [​IMG]

    Step 2: Set up 2FA on the lobby server.
    [​IMG]

    Step 3: Fail to enter the main server's 2FA code.
    [​IMG]

    Step 4: Realize that switching from Google Authenticator to your recommended Authy did not fix the issue.
    [​IMG]


    TL;DR:
    I am officially cursed, I am driving andrew insane, I need one last 2FA data reset and I will probably have to avoid the lobby from now on.
     
  7. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
    You're not driving me insane, you just failed to follow my steps.
    Dump all your 2fa programs and use Authy. Problem solved. The issue is not on our end.

    Your 2fa has been reset.
     
  8. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
    @314 2fa reset.

    Download and use authy.
    Note down every step you make.

    If you still fall into any issues, give me these notes and I will attempt to reproduce.

    I refuse to test any program other than authy tho.
     
  9. 314

    314 Irratioπal President, former ServerAdmin
    President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $27,000,000
    Ratings:
    +4,866
    I did follow your instructions... but it's still not working.

    Thanks... I guess this will probably be the last time; at this point I just want to access the main server again and I'll probably avoid the lobby from now on.
     
  10. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
    Have you tried renaming it from [email protected] to something else so it doesn’t over write it obviously?
     
  11. 314

    314 Irratioπal President, former ServerAdmin
    President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $27,000,000
    Ratings:
    +4,866
    Yes. I renamed the main server to "ECC-main", but it appears to be overwritten by the lobby server (which I kept as [email protected]).
     
  12. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,370
    Trophy Points:
    102,160
    Ratings:
    +15,065
    @Nicit6 appears to have found a possible solution with another authentication app.
     
  13. 314

    314 Irratioπal President, former ServerAdmin
    President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $27,000,000
    Ratings:
    +4,866
    So... this is interesting.

    I was unable to set up 2FA with Authy because the server kept denying my initial 2FA code, and I think I have finally found the reason:

    I used a screenshot of my QR code to register the code on both Authy and Google Authenticator.

    Google Authenticator's (functional) code:
    Code:
    123456
    
    Authy's (non-functional) code:
    Code:
    456 123
    
    For some reason Authy is displaying the last three digits before the first three digits.


    The original issue is no longer appearing since the latest Authy update. Everything appears to be working fine, at least as long as I can remember that Authy's code must be split in half, then reversed, then read.