Nov 03

For those of you that care, there is a caricature of me on the cover of the November issue of CPU Magazine. In the back of the magazine there is some Q&A with me mostly about social networks. It’s probably stuff you have heard Shawn and I say before, but cool nonetheless. So if you are in your favorite book store check out the magazine and see what you think.

Tagged with:
Oct 02

Password Reset: Your passport to a fuxored account.

Password Reset Methods Vulnerable? Really? Get out of here, you mean that many password reset methods are vulnerable to attack? You have to be kidding. The fact that people think vulnerable password reset is newsworthy have got to be crazy. This is something that many of us have been talking about for years. Now Sarah Palin’s email gets attacked and it is big deal. It amazes me why we always wait to get screwed by something before we fix it.

Why does everything in the security world have to be a response to something. Ok, not the security world but the business security world. They are definitely two different entities. I am truly tired of reactive security. Just think if other professions followed this reactive model, like a cop asking for a bullet proof vest after they have already been shot. Nobody can say they didn’t see this coming either. People make more of their life known through social networks, photo sharing, and blogs than ever before. The simple password reset questions just don’t hold up.

There is a lot of unnecessary fear about data from social networks being used to steal someone’s identity. Although this is mostly FUD, social networks can be a great source for password recovery data. A while back we recovered a password (with his permission of course) from my friend Brian’s Sprint account using data from his MySpace page. This is when we were first starting our research for the social network hacking project.

Let’s take a step back from social networks for a sec, would your friends, co-workers, significant other, etc. be able to recover your password with the information they know about you? If the answer to that question is yes, then you need to change something. Passwords should be something that you know, not you and a couple of other people.

What Types of Data are on Social Networks?

The information that people put on their social network pages range from minimal to wildly over the top. Some people even go above and beyond by posting survey questions that tell a lot about their personalities. Although they want to show off the depth of their personality, all it really does is show off the shallowness of their brain.

Social networks by their default nature basically allow you to “friend” the world. The information on people’s social network page typically contains information that was previously only known to traditional friends and acquaintances. This can be a huge problem for the password reset mechanism, not to mention a person’s privacy. If it’s deep and kinda scary from a privacy standpoint then it is probably on a social network. Remember when I mentioned if your friends knew enough about you to reset your password then you are in trouble, well you just friended the world with the information from your social network profile. Beyond standard profile information there are a users actions taken on a social network site and possibly social network applications that are being used as well. All of this information can be leveraged when attacking a password reset mechanisms.

You can use an email address to look up people’s accounts on social networking sites. On the flip side, someone social network profile might directly tell you a person’s email address or you can use the search features of the social network to query owner’s of certain email addresses. There are no secrets in social networking ;)

Email Accounts are Gold

With password resets an email account is really the jackpot. Many password reset mechanisms, including the ones from social networks, rely on sending either the password or a temporary password to the email address of the account owner. Someone who gets their email account compromised might just find that they have every other account tied to that email account compromised as well. I mean, it wouldn’t be a far stretch to figure that out once someone had access to the email account. Just think of all the crap that sites like Amazon, eBay, MySpace, Facebook, etc. send to your email account.

Typical Password Questions

Typical password recovery questions really vary in complexity from site to site. What is the problem with password recovery questions in general? Well, they are not typically made up of data that is private. Unlike a password which is supposed to be something that only you know, recovery questions may be known to many people around you.

Here are some questions from Yahoo:

  • Where did you meet your spouse?
  • What was the name of your first school?
  • Who was your childhood hero?
  • What is your favorite pastime?
  • What is your favorite sports team?
  • What is your father’s middle name?
  • What was your hight school mascot?
  • What make was your first car or bike?
  • What is your pets name?

Some of these questions look like questions that social networks ask when you are filling out a profile, don’t they? If not questions they ask, certainly data that people put on their social network profiles or divulge through other means on a social network.

The Obvious

Take a glance at someone’s profile or maybe your profile on a social network. From just this page without further probing there may be an enormous amount of information. Depending on the mechanism that is being attacked, it may be all that is needed. Here is an example of some of the things that may be found just on the profile page:

  • Name
  • Date of Birth
  • Hometown
  • Current town
  • Favorite movies, artists, music, people, TV, sports teams, etc
  • High School
  • College
  • Personal description
  • Personality traits
  • Networks and Groups
  • Relationship information
  • Family information
  • Employer

The list really goes on and on. Remember that many people are on multiple social networks. Checking out other social networks may fill in the blanks. It is easy to see why this information could be a problem and I don’t think it needs any further explanation.

The Not So Obvious

Some data is not so obvious and might not be directly spelled out. This may be information that has to be aggregated or inferred from the profile data, friends list, blog, group, network, etc.

  • Photos and photo tags
  • Comments on other profiles
  • Photo data (cloths, background, other individuals, etc)
  • Pets
  • Children
  • Siblings
  • Relatives (potentially ones with your mother’s maiden name?)
  • Potential usernames
  • Instant messenger data
  • Blogs and comments in friends’ blogs
  • Favorite teachers
  • Sexual preference
  • Religious views
  • Political views

The data is really limitless, but after all isn’t that what a nice web 2.0 application is supposed to provide? On the surface some of this data may seem silly for password resets but it is really not. This not so obvious information can be really helpful when when non-standard questions are used in the password reset process. This typically happens when people are left to their own devices when creating security questions. They typically create questions that are common and familiar to them. Stupid things like pet’s names, favorite teams, favorite TV shows, etc.

Just think for a moment about tagging. People may tag photos themselves with useful information. Also, friends may tag people in photos helping better define a person’s relationships with people and activities they are involved in. The URL of the social network may lead you to potential usernames / IM information such as www.myspace.com/(username). Maybe the data is completely visual like photo data. A lot of information can be obtained by looking at pictures. Favorite places, sports teams, cars, and countless other possibilities. You name it, people like pictures with their favorite things.

The actions people take on social networks helps better define relationships, networks, group affiliations, and activities. The person may place comments on other people’s photos, profiles, walls, blogs, etc. You may see comments like “That is why you are my BFF”. You may also see that someone is a member of a political party or religious group. People may discuss on boards or blogs about certain things happening in their life. Sharing is caring right?

So what you get in the end is a clear picture of who these people are. You get their likes, dislikes, friends, and affiliations are all in a nice clean package. You may have never even met this person but you have all of the information a traditional friend may have, possibly more.

Need a bit more?

If you almost have the nail in the coffin then you can turn to other sites to complete the task. You could look for name / username collisions on other sites to gain more data. You could take their high school and age information and find out who they went to school with. The possibilities are endless.

The User’s Choice

When people are given the option to choose their own security it has historically been bad. There is nothing that seems to suggest that allowing user’s to choose their security will get any better, so some of this may be wasted breath.

When looking at sites like Google, it seems they have slightly better security questions. Questions such as your library card number, frequent flyer number, etc. I think sites like these with better security questions probably have a high amount of people that end up just choosing their own questions when this option is available. People don’t seem to understand that this isn’t a function that you are going to use everyday. It is ok and preferable to use data that you may not be able to recall without looking up.

So What Can We Do?

The problem of personal data leakage isn’t going to stop until people realize the potential impacts of their data being strung out for the whole world to see. I personally don’t think this will change, in fact, I think with time it will get a lot worse. We live in this voyeuristic, virtual world where people create digital representations of how they see themselves. I think that has an appeal to many people, especially those who don’t particularly find their lives that exciting.

Don’t play by the rules when dealing with a sites password reset questions. Put blatantly wrong, hard to guess, or nonsensical information in to the answer blocks. This will make any information gathered on you useless when attempting to recover your password.

It seems that many sites want you to log in. You shouldn’t use the same password on every site. Use a trusted password safe such as KeePass to store your login credentials. KeePass is open source and multi-platform. Using a mechanism like this allows you to be in control of your password recovery along with allowing you to use different passwords for different sites. It would also be a good idea to back up the database of whatever password safe you choose to use as well. Just a thought ;)

The biggest mistake someone can make is thinking that there is nobody out there that gives enough of a crap about them to attack their accounts. People do weird things. Anybody is capable of just about anything. This isn’t being paranoid, it’s being safe. Think of it as locking the door on your house when you leave, only instead of your valuables you are protecting your data.

Tagged with:
Sep 18

Hello Everyone. I just wanted everyone to know that Shawn Moyer and I will be speaking at PhreakNIC 12. We are going to do the Satan is on my Friends List talk again. There were people who didn’t get to see it out in Las Vegas, and well, since BHJP is in a different part of the world we figured if people still wanted to see it we would do it again in the United States. We will have some updates so it won’t totally be the same talk we did in Vegas.

If you aren’t familiar with PhreakNIC it is a small conference in Nashville, TN. It’s loads of fun, there is great people, great conversation, and no vendor overload. I highly encourage people to go.

Tagged with:
Aug 13

I thought I would take a bit to explain some request forgeries Shawn Moyer and I found on MySpace and a couple of other social networking sites. These were demonstrated at our presentations at both Black Hat and Defcon. We found several functions were we could modify the request and trick the user’s browser in to making requests they didn’t intend. This is classic CSRF with an added advantage. The two demos we showed allowed us to get a victim’s web browser to send friend requests to a user of our choice and the other logged users out. There were also some more stealthy actions we could have taken such as block user communications from all visitors to their home page.

What made these request forgeries that much worse was that fact that we inserted them on the site we were attacking. In our case we used an image tag that linked to some offsite Python code doing a redirect back to MySpace. This basically gave us almost a 100% success rate due to the fact that we knew the user was viewing the page at that particular time. We could not only do this to profiles that we own but also anywhere that allows us to link to offsite content such as profile comments, photo comments, blog postings, classifieds, and many others.

I am not sure if people realize how serious this can be to the particular social network owner. If attacks using these particular methods propagate though the social network by some automated, semi-automated, or even planned method they could potentially cause DoS conditions that would be hard for the lay person to identify and fix. Being logged out constantly would be bad but more covertly someone could get you to block communication with everyone that visits your profile. That could be hard to catch.

Offsite Content = Fail

When you allow linking to offsite content you are inviting failure. This content is beyond the control of the particular social network. As an attacker all you care about is GET that the browser is using to retrieve the content. The fact that it fails on the return is inconsequential. What we did was use what was available to us on a MySpace profile page and comments, which was the IMG tag. We used the IMG tag to get the victims browser to make a request for an image that didn’t exist. This GET request from the browser hit a redirect which then sent a crafted GET back to MySpace with whatever payload we wanted. In our case it was a friend request or a logout.

Just think if MySpace disabled linking to offsite content, suddenly millions of MySpace profiles would instantly looked much better ;)

Same Site Content = Fail

Sometimes content on the same site can equal fail as well. If the social network allows certain HTML tags such as iframes or meta tags these can be used to construct request forgeries as well. The src attribute of the iframe tag and the meta refresh can be used to specify other locations in which to request content. These would not even have to leave the social network and be redirected. This would make it SSRF (Same Site Request Forgery) or just RF (Request Forgery). Hahah. Ok, now this is getting silly, let’s move on.

Combining Technical and Social Attacks

Think about the impacts from combining a couple of these attacks with a social attack. For instance, you may want to take over the profile of another user. Most likely, based on privacy settings, you can see the friends of a particular individual. You tag their profile with a request forgery that blocks communication to all visitors of the profile. You then create a new profile of the person you want to impersonate and send their friends new friend requests. You could state that you forgot your password and want to re-add them as friends. Combined technical and social attacks can lead to a higher degree of success depending on what the attacker’s goal is.

This blended threat is going to be much more common in the future and we are starting to see this now. Sites that use social methods to get people to download malware or take an action that an attacker wants. The reason these attacks are so successful is the implied trust of the user and their complacency. Be on the lookout for this more and more in the future, especially as defenses go up.

Fixing Your Profile

If your comments, photo pages, blog, or some other part of your profile tagged there are a couple of steps you can take to remove the content and protect yourself in the future. Since the profile content is rendered HTML it takes a few steps to remove the content. In the case of a logout, comments will be rendered and log you out prior to you being able to remove them. What you can do is use something to block the domain that is calling the logoff, which will most likely be collect.myspace.com. Once you block that domain you can go ahead and remove the content, then re-enable collect.myspace.com. If it is something such as a communication block you can go ahead and just remove the content (which ever it may be) and then use some out of social network band to contact your friends.

You should also go through your profile settings and ensure that HTML comments are turned off wherever possible. This will help give you a better handle on what content people have the ability to put on your profile. Of course, this doesn’t help you visiting other people’s pages.

If you notice shenanigans where you suspect someone is doing something malicious you should report it to the abuse contact at MySpace or at the social network you are using. That is what they are there for. The MySpace security team is working hard behind the scenes looking for items such as described here, so make sure if you notice shenanigans that you report it to them.

Oh… I am already on their watch list so don’t blame it on me because they will know it wasn’t ;) 0_0 They are watching me 0_0

Tagged with:
Aug 10

I just wanted to make a quick post to let people know our updated Black Hat and Defcon slides we used for those conferences have been posted. These are our updated slides. You can download them Here

Thank you to all who showed up, we hope you enjoyed the presentation. Let us know if you have any further questions.

Tagged with:
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
preload preload preload
blog