Jump to content

Serial spoofing?


alberto2345

Recommended Posts

Hello,

Not sure whether this is the appropriate place to ask this question, but I'm making a login system and I have an idea to allow automatic login. It would be based off the players serial number and checked with the database to see if it matches a players account details with the serial number.

I'm worried about how secure that would be, more of the fact if the player can some how spoof their serial number to be of someone elses. I don't know how the serial numbers are generated and I don't know how secure they are, which is why I'm worried and wondering if anybody would know whether this is a safe decision to make, or whether it'd be best to pass on the idea? I know that it isn't easy to spoof it, but I'm wondering whether you can put alot of trust in them?

Thoughts?

Thanks.

Link to comment

Oh I understand what you mean now, but it is still basically the same system, its just that your idea has the extra step of checking if the username and password is in the file. So if someone was able to change the serial number to someone elses, then they would also just need to change their username and password in the file, which could be obtained by a program downloaded by the user which sends the file to a server, which a person demonstrated doing on another server I use to play on. It does require an extra bit of work for someone though.

Maybe I'm just too paranoid, idk :P

Edited by Guest
Link to comment

You could indeed use their serial to generate means of achieving secure auto-login, but I believe there is a small chance for users to have the same serial number. Do note though, that the chance of this happening is extremely small(read this some while ago, it's very possible this might have changed since then).

Then there's also the problem of the serial being generated as per your hardware(and IP I think?). So there's also the possibility of their serial being changed if they change some of the hardware and thus the auto-login would cease to work.

You'll also want to make sure you use a salt when you store people's passwords. Preferably a salt that is randomly generated every time someone attempts to register, this way each user would have their own unique salt.

Quite frankly I'm not entirely sure what would be the best approach to create auto-login within MTA in terms of security. I would guess their serial is a good place to start.

Personally I would refrain from storing any kind of information regarding their username and/or password on their computer, instead try and store it all on the server.

WTF dude :D

Who would do that just to get someone's account details. Well, if the player has rights in the server then he should be careful what he does on his PC.

I don't have any more ideas. Maybe the others do have.

Good luck!

You would be amazed by the amount of trouble some people can and will go through to get someone else's details. Also, as a programmer - you should always think ahead and assume that the user will do something wrong.

Link to comment
  • MTA Team

There have been some events of people using serial changers as well as players with the same serial. Therefore I'd suggest to avoid using the serial as an account login. My personal solution for auto-logins would be similar to the following:

Upon registration ask the user to provide username and password. Store the name and the hashed password in some database. Also create a random hash and store it in the database. Also send this hash to the client and store it there together with the username.

On subsequent logins the user has two options:

a) Login via Username and Password

b) Login via Username and random hash

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...