Jump to content

Recommended Posts

Alright, so in the past I have based all my auth methods for user logins based on a session. Like userlevel = 9, etc.

 

I noticed, however, that MySpace uses a little widget called MyToken in the url which looks very similar to a random md5 hash and upon further research I learned that this randonly generated alpha-numeric combination is generated based on the time, ip address, and a few other things and is used to authenticate users to view certain features on the site, for instance, viewing a private profile.

 

Does anyone have any ideas as to why they did this? Why not just have the authentication stuff embedded into the login session? I'm just wondering which is safer/more reliable and which method would you use?

 

Thanks in advance,

Gig

Link to comment
https://forums.phpfreaks.com/topic/121944-auth-question/
Share on other sites

How sure are you that the token is really for that sort of stuff xD

 

It was added for some reasons (correct me if I'm wrong):

 

With the latest release of newer versions of IE, this gave the users the option to disable cookies and sessions... and MySpace, being the size of a country, can't guarantee that EVERY SINGLE PERSON who uses it enables cookies or sessions (or javascript for that fact) so they added an encoded string into the auth (which is supposedly decodable but they dedicated a whole server for encoding the damn thing, alledgedly) so that they can determine who that user is. Honestly, don't mess with big sites like MySpace, Facebook, Google, Yahoo, AOL.. they've got kickass programmers who are genius in their own rights.

Link to comment
https://forums.phpfreaks.com/topic/121944-auth-question/#findComment-629439
Share on other sites

they've got kickass programmers who are genius in their own rights.

 

Well it'd be a security flaw to allow the sole use of an url encoded session id. And to support the fact, try to log in without accepting any cookies, even session cookies.

 

See this

 

 

P.S. Even geniuses can be fallible...

Link to comment
https://forums.phpfreaks.com/topic/121944-auth-question/#findComment-629475
Share on other sites

So what happens if a user disables sessions and tries to view a page that requires one? like an admin page or something? Will it have the same effect as a user being logged in and not having the appropriate privlidges?

 

I'm have IE 8.0 installed and looked for that feature, but couldn't find it :(

Link to comment
https://forums.phpfreaks.com/topic/121944-auth-question/#findComment-629528
Share on other sites

Probably isn't meant to be understood on our end of understanding things....in the MySpace world.

 

but if I had to make a guess on it.  I'm sure that the MySpace administrators have their own custom built administration panel/portal that reads and decrypts these "tokens" as was already mentioned.  Most likely it makes it much easier for them to pinpoint who is doing what and why.  And if it's good or bad.  They probably have a good banning system in place and yada yada.

 

Most likely the session id is part of the token as well.  MySpace is probably the most sensitive of all big sites I've seen, with the COPPA and what not.

Link to comment
https://forums.phpfreaks.com/topic/121944-auth-question/#findComment-629605
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.