Is everybody ready for us to begin? There's not a whole lot of audience participation, but a little bit. There is always audience participation at DEF CON. You guys ready for this? Yeah, so this is Satan is on my friends list, attacking social networks. I am Nathan Hamill, Senior Consultant, ID, Information Security, Associate Professor at UAT. And as a matter of fact, I might have some students here, so I'm on my best behavior. And I have Facebook, LinkedIn, MySpace, and Twitter. If you see accounts for us on any other network, assume they're not us. Thank you. I'm Sean Moyer. I hack for dollars for a company called Fishnet Security at the moment. Multipurpose windbag, frequent black hat speaker. LinkedIn, Twitter, kind of, sort of, kind of Facebook. Please pay us to come break your web apps. Thank you. And so not only are we in your extended network, but Satan is also in your extended network? And actually, Satan is actually rather elitist and doesn't like people adding him to his friends list. We tried to add, like, many Satans. And no one would have the time of day with us except apparently this Satan, who's 69 years old. We weren't surprisingly quite evil, it took a little while. We sent him a couple of them requests and finally. Finally he gave in, so we made Satan give in. Brief disclaimer, no animals, bloggers, journalists, or cam whores were harmed during these demonstrations while physical and users were involved. all payloads were benign and only resulted in wounded pride and possibly high blood pressure. We are not experts and should not be trusted in any way. Always ask your doctor before changing prescriptions or viewing live journal session captures. MySpace contains the most feature-complete open social implementation. Many of the issues discussed here are on their platform. The rest of you guys suck too. Seriously, we mean it. Yeah, we just don't want people to get the idea that we're only picking on MySpace because that's really not the case. It is kind of like beating up on a retarded kid. It's a lot of fun, but it's a little too easy. So what is our presentation about? This is our little roadmap-type thing, and it's out of order. So don't look at the order. Look at the content. It's totally in order. What the hell are you talking about? So, yes, our obsession with social networks is basically a series of kind of impromptu threat models and kind of pro bono penetration testing we did over drinks, boxed wine, hard liquor, whatever we get a hold of. Okay. Also seeing how many accounts we could get deleted very quickly, and that happens. Usually actually very slowly. Yeah, so if you care about your MySpace Facebook account, don't do any of the things that you see us do here because you won't have it very long. Okay, so this is like a really hard thing. We argued about this for like three or four months. Like, are these disclosure-worthy? Are they not disclosure-worthy? Well, I mean, they can get you massively owned, but they're documented in the APIs. Yeah, if you document your vulnerabilities, then... We kind of think that we don't have to tell you. You should probably know about them. Yeah, you should already know. So, yeah, we argued about different words for that. So we're like, you know, vulnerability and feature, like Brendan O'Connor said, call it a vulture. So we said, yeah, feature-abilities. These are all, you know, a lot of these things are things they put there on purpose. Yeah, so social networks is an attack platform. You know, obviously, millions of users, you know, something like seven or eight million on like Facebook and a couple of the other ones. The Alexa top 20 websites for like the highest traffic websites out there, like something like five of those are social networks. So, you know, so there's a lot of users, a lot of targets. You know, the business model is really about, guess what, not actually, you know, helping you find, you know, your old high school girlfriend, but allowing users to create all this content and all these groups and all these things so that they can sell marketing and direct things towards you. So you're volunteering to create your own focus group of your friends, right? And if you think about it, social networks are created by content that's really not theirs. They're counting on their user community to create this content and put it on there. So most of their content isn't created by them or kind of controlled by them, and you'll see that coming up. Yeah, and so sort of, you know, phone mashups, you know, there's a lot of social components to a lot of these things. There's also a lot of technical components. One of the big things about social networks is they're really kind of built on trust. It's very much this environment of everybody joining hands and singing kumbaya. So, you know, that makes it, you know, pretty interesting. Interesting to look at. Yeah, and then, you know, various kind of really kind of retarded demos and silliness. And this makes no sense until you see the slides. Yeah, things that we wish we could unsee. We're also going to talk about some particular things with the apps of these social networks. So attacking with clients, attacking apps with apps, and using a social net as a lightweight bot net. Also known as malware as a service. And, of course, some cross-site request forgeries. And actually some things that really aren't cross-site request forgeries. They're actually same-site request forgeries, which actually makes them really just request forgeries. Yeah, because we know, yeah, so they're IRF as opposed to CSIRF. So, you know, we already know you're logged into the site. We're using the site to get you to do other things. So, yeah. This is pretty much the moral of the story. External content equals bad. And we will discuss that here very shortly. More detail coming soon. This is Chris Bissell from the MySpace team. And we just want him to know that we don't want him to hate us too bad. His videos were very informative and helped out a lot when constructing a lot of these attacks. Thank you, Chris. So we appreciate it. Okay, now down to the external content equals fucks. Wow, that's dark. I think it's awesome. So if you link to things off-site, you're actually setting yourself up for failure. And a few of the things we went through is using an image tag to perform cross-site request forgeries. You know, you can do click fraud. Social net is bot net. You know, and it's not just MySpace, even though those are our demos. There's a lot of other sites that are vulnerable to this, too. You know, MySpace, High Five, Live Journal. Many of these sites allow you to link to content off-site, even if it's just an image. Yeah, well, pretty much anybody that gives you the ability to do something off-site, you know, on their site. We can fuck around with your requests. Mangle it and then send it back. And essentially, they have no control over what's going on. Oh, and yeah, just in case you didn't know, according to the Associated Press, we invented cross-site request forgery. You're welcome. That just came out yesterday. Yeah, we thought that was great. They've discovered a novel way to insert an image tag, you know. Yeah, this is all really old, really obvious stuff, which is why it's so, you know, appalling that it still works. And, of course, this is our same-site request forgery, things like this. Converting requests. If you take a particular post request and convert it to a GET, sometimes you find that certain things aren't enforced the same way. So you have filters, view state MAC. Sometimes it works for a post and doesn't work for a GET, which can be very bad. Yeah, and the reason that that's kind of interesting is a lot of kind of Ajax-y kind of functified stuff does a lot of post stuff. And it's a lot easier to forge GETs. So, you know, what we found is there's a lot of stuff there where that actually works. Yeah, and you don't need an XMLHTTP request to do sort of request forgeries. So now I want you to meet a few friends. This is Alice, Bob, and Eva. And we have a little demo to show you. Now, Eva has Bob as a friend. But she wants to get some more friends. So what she does is she looks at Bob, who has two friends. Which is her and Alice. If we could get that fixed, that would be great. So she wants Alice as a friend. So she goes to Bob's profile. And does this typical MySpace social network-y type thing. And she wants to leave a comment. So she clicks on it. Sorry, I was so painfully slow when recording this. So in this comment. She basically says, thanks for the ad. And inserts an image tag. That image tag links to off-site content. Which is one by one pixel. And they have some really elite 1980s anti-virus filtering technology that checks for the .jpg extension. So we were very impressed with that. And the ultra-secure CAPTCHA. Which is protecting you from all. CAPTCHA makes you safe. And now the comment is posted. Of course, you can't see the image. Which is actually failing. So you don't get the nice little red X. So when Alice visits Bob's profile. Eventually. This was done very slowly because it's on a Mac. Sorry. I thought it was because we were drunk. It's all that really cool core image. So as you can see on here. The watch. You'll see for yourself. She has a new friend request. Ta-da! The aristocrats. Basically Alice made a request. Friend request to Eva. But really didn't. So now she has. Alice and Bob as a friend. I know. Doesn't look earth shattering, does it? You want more friends? That sucked. So you laugh at that. This really gets bad when you start talking about things like innocuous functions. So there are certain things that are painfully obvious to developers or anybody protecting applications. You know, account management. You know, reading messages. Deleting messages. These things are all considered privileged functions. Things that should be protected. What people don't really think about are things that don't appear valuable. Like logging out. Or blocking communication. Or friend ads. Apparently. And lots of other things. Yeah. And I think, you know, one of the points of that is basically all of the CSRF stuff. There's really only one defense against CSRF right now. And that's just CSRF tokens. And CSRF tokens are not like something like a session ID where it's, you know, 128, 256 bits. Something like that. A lot of these are like 8, 10 bits. In one case. One of the sites actually uses. The session ID is a CSRF token. But then they also include that in URL. So you get a refer. And then you have the CSRF token. Yeah. It's a set and you refer. Yeah. And so, you know, pretty much once you're past CSRF token, it's kind of game over for everybody. So let's look at attacking an innocuous function on MySpace. So we go back to the typical Eva, Alice, Bob scenario. But Eva's pretty moody. And she doesn't like Bob anymore. And she really wants to get back at him. So she goes to Bob's profile. And wants to leave another comment. Same type of thing. Linking to an offsite image. Which is actually some Python code, by the way. I just thought I'd pimp Python a little bit. And she's going to leave him, you're a douche. And post that comment. And, of course, once again, ultra-secure CAPTCHA. You are safe because of CAPTCHA. Was I fatigued? Was I fat-fingering that? What is that? I don't know. We were drinking. So now that comment is now posted on Bob's profile. So when Bob goes to his profile, he is notified immediately that he has new comments. So he goes to view the comment. And sees the comment. Says, you're a douche. So being mad, he wants to send Eva a message. You're a whore. And is logged out. And what this will do is log Bob out every time that he views that or tries to change it. And also log everybody out that views Bob's profile. I totally missed that image. That was outstanding. Oh, yeah. Look at that. Live the dream. Start singing now. I love MySpace ads. As you'll see. So you don't just have to use an image tag to do this. If there are certain other methods that allow you to go and get this offsite get. Like you could use an image tag. You could use meta refresh or iframe source. Now some of these are painfully obvious. And social networks do protect against them. I think all of these are pretty painfully obvious. But most of them still work. Which is kind of frightening. One of the other things with that is if you log in. You look at. There's been a lot of malware propagation that's been using things like CSS on Blogger. And a lot of other sites that let you do your own CSS. So like MySpace will let you link to buttloads of images. And all this external content. Because you want to have like the dancing butterflies and all that on your page. Because it makes you cool. Actually something really awesome that somebody told me last night. Is that Jason Scott is personally responsible for goat seeing 235,000 people yesterday. So. Apparently the story goes that. And I'm sure he'll tell you a much longer version of it. Apparently the story goes that somebody created a MySpace skin. You know or whatever. And they linked to some content on textfiles.com for it. And he mailed them. And it's like please stop. And they're like ha, ha, ha. It's the internet. You can't make us. Or whatever. So he just wrote a 302 that bounced them to goat see. So 235,000 people on MySpace just you know. Went to their home page. And what's really cool about that though. Which is what I said. I'm like I wish we would have talked to you first. Because you can do far worse than that. You know we could have logged all of them out permanently. Every time they logged into their page. That CSS that included that image would have logged them out. And anyone else that viewed their profile. You know obviously you could also have turned them essentially into your own. You know kind of personal botnet. Bounced all of those requests to you know different hosts that you want to target. And you have 235 different. Or 235,000 different unique IPs that are at your disposal. You know. So I mean that's yeah. Basically external content equals fail. You know. Apparently microphone equals fail too as well. And it's not just logging people out. Something that would be a lot harder to detect doing the same thing. Would be to block communication. So you could actually block people's communication as they visit your profile. And they'll never be able to send you a message. And you'll never know what's going on. So that kind of makes it a little interesting as well. So let's talk about some logic attacks on social nets. Now logic attacks aren't really that straightforward. So it's not like you can find a vuln scanner that's like testing for you know particular logic attacks. It's extremely difficult to identify. And you're going to love our. So let's talk about adult friend finder. Everybody's favorite social network. And I see some people are looking very scared right now. And that is very funny. Yeah. So we kind of we argued about this for a while. And it's actually kind of hard to define now. Is you know we're talking about looking at social networks. And so you know what's a social network and what's not. I mean like blogger has like kind of friends list. Your friends. Your blog is friends with my blog. Blah blah blah. Live journal has some components like that. And so we kind of arrived at you know in arguing about that. That we decided that adult friend finder was actually a social network. When the only difference is that when you friend somebody you fuck them. You know it's pretty much. It's kind of like MySpace. We're just giving you a hard time. So this is a logic flaw in adult friend finder that allows you to. Do a certain sort of privilege escalation to view pay for content. Now here is a standard profile. And this member is online now. As another standard member. You should not be able to view standard member content. Now I realize that it looks like I know way too much about this. But I swear it was for research only. And I do not have a bunch of profiles out there in various stages of address. His current mood is naughty. That's my favorite part. Well that's. That's not mine. That's somebody else's. But they were in the same geographical area. So might as well troll a little bit while you're doing research. And we were actually saving you from having to see this. There's. You can come up afterwards and we'll give you the actual screenshots. We have a bunch of them. If you really want to. You can. We can also help you find your profile if you'd like. This basically shows. A sort of escalation in privilege. Because you're only supposed to view one webcam at a time. When it's as a standard member. And I realize it looks like I still know way too much about this. But obviously there's four going at the same time. And I could not wait to get the screenshot. And then turn this off. So Nathan mailed me about this one. And he's like dude. I just popped it old friend finder. And I didn't hear back of him for a couple of days. I was setting up some new profiles. Man in Las Vegas. Okay. So this is mine. Which is out fucking standing. Because we have one microphone. Thank you. Thank you so much AV guys. So. You know. One of the. One of the big things about. About all of this is that. You know. We really think about social networking attacks. As being. Just by definition. Kind of social engineering. It's all kind of about blended threats. And so. It's all kind of always tied together. It's hard to talk about one or the other. And that's. You know. That's kind of why it was so fun. A lot of the things that we did. Either looked at. You know. The technical components. Or they looked at the social. You know. I think it's kind of obvious. That when you combine the two together. It's. You know. Pretty ugly. Pretty fast. Interesting quote off of. Thank you. Interesting quote off of. Actually. Dan Kaminski's Twitter. From like three. Four months ago. He said something about. Why do people think I have to weaponize the obvious. What's wrong with them. And I'm like. Hmm. I wonder what that means. So yeah. It's just. The combination of these two together. So. With that. You know. It's really. Everybody always talks about. Like. Oh. We can find you on Facebook. And tie that to your MySpace. And then. You know. Your little friend finder. And you know. Whatever else you have. You know. We kind of think. That all the crap. That people say about. You know. Your identity can be stolen. On a social network. Is kind of retarded. If you share your information. On a social net. Assume it is public. You know. I kind of say to that. Like a footnote. You like. See Paris Hilton. Repeated pony. Right. I mean. Okay. I have no comment. So. Yeah. And actually. Something that was kind of terrifying to us. Is that Facebook takes credit cards now. Which we thought was kind of strange. But apparently. They're starting to create. Some kind of like. Stores. And sell things. So. Yeah. If you give your credit card number to Facebook. You deserve to fail. You know. When you talk to your coworkers. And you say. Hey. You know. We're working on this. Talk for. Black Hat. And Def Con. And. We're doing it on social networks. Do you have a MySpace account? Why. Yes I do. You should probably remove pictures like this. And what's really funny about this picture. Is. The caption. Which you can't read. And it says. Does this dress make me look fat? Yeah. Now. Although. I'm hoping that this is. Halloween. And not Friday night. Yeah. Although. Actually. Like. We were talking to somebody else earlier. And they're like. We. There's a couple other things like this. Where we like. From like. Somebody's LinkedIn profile. Like identified. Like something bondage related. Or whatever. And it's like. Somebody said to us. Like. Do you think people at. Def Con. Really care about. You know. Cross dressing. And bondage. So. You know. It's maybe not that revolutionary. But. It's just funny. Yeah. It's pretty funny. Actually. So. Yeah. So. One of the things that. That I spent a little time doing. Was kind of. Some social engineering exercises. On social networks. It was just something that. That. You know. Occurred to me. And other people have talked about it in the past. And I just wanted to kind of see. You know. How effective it was. So. You know. My deal is that. On business social networking sites. Especially. There's a lot of return on investment. For something. You know. That's a targeted attack. It's very little effort to do. You know. There's no. Real validation of any kind. That you work for company X or Y. Or whatever. So. You know. If you were going to. Target. Like an IBM. Or. A cloud. That says. You're like an intern there. Or whatever. And you friend all these people. And see how many connections you can get. Well. Guess what. From that. You have email addresses. You have the ability to send the messages. And all these other things. And guess what. They're typically accessing these sites. You know. From their desktop. Inside the company. Right. So. If. You know. It's like. Something like 5K. To write. You know. A piece of. You know. Custom malware. You know. To hit company X or Y. Within a company. Right. So. This is a great way to kind of get inside somewhere. So. Yeah. It's typically just about building some kind of plausible profile. Public sources. Getting a respectable number of connections to where it looks like a valid profile. And. You know. And sort of. And then what. You know. Like I said. In our case. We really just wanted to demonstrate how trivial it was to build those connections. I think it's pretty obvious what you would then. Sort of. The next step. Would be. For that. So. What we did was. We sent this email out. To. A whole bunch of high profile security people. Who didn't have any footprint on social networks. And most of them said hell no. We asked. Actually. I'll tell this story here. This is kind of cool. Was. We actually asked. Bruce Schneier. Phil Zimmerman. And. Marcus. And a couple other people. I won't name. Because. They're coming soon. And. Actually. Schneier was kind of a douche about it. But. Phil. Was. Zimmerman was. You and that word douche lately. I really wanted the chance to call Schneier a douche at DEF CON. So. He actually told us not only was it a bad idea. You know. For him personally. But that it wouldn't work. You know. So. It was. Our entire thesis was wrong. You know. But. Phil was really kind of funny. Because. He said. You know. People really think. You know. Like. My whole. Kind of. How people hire me to continue to do things. You know. It's like. I kind of make. You know. I'm an independent consultant in things. And. He's like. You know. They really kind of think Phil Zimmerman is a nice guy. And. I'm. I'm pretty sure people are going to really think I'm an asshole now. I'm like. I think really they'll just think I'm an asshole. But. You know. We can respect that. Marcus had no problem with that. So. You know. His deal was. All these people keep sending me all these things on social networks. And. You know. I keep telling them how retarded this is. And what a bad idea it is. And nobody will listen. So. You know. Go for it. Fire at will. And he's like. Do you want to know my bio? Do you want my resume? No. No. No. Let us figure it out. You know. We'll see what we can do. So. Over the course of a couple hours. What we did was. Basically. Every time a company hires Marcus Random. They put out a press release. You know. So we built his resume. Right. You know. It's like he started this date. You know. Random joins Tenable. Random joins NFR. You know. Took us a couple of hours. Put that together. Found a. You know. Press release photo from a conference. And took his bio off of his own website. But. Then. By the way. There are five Kevin Mitnicks on LinkedIn. Just related to that. And. What's really kind of bizarre. Is that. Most of my connections. Are like connections with one of them. But it's not really clear which one. So. If. If anybody knows which one is actually Kevin. You know. Maybe he just forgot his password. Like five times. He might have forgot his password. We don't know. Yeah. And actually. For what it's worth. I have. I've heard from a number of people. That like. When that happens. It's really hard to get your profile. Like taken off later. And then. You're not getting some help. So. Anyway. So we needed to get. Like kind of quick legitimacy. And so. You know. On. MySpace. These kind of people get called. Kind of friend whores. On LinkedIn. I kind of. Call them link whores. So these are basically people. Who. On LinkedIn. Think it's really cool. To have lots of connections. For no. Reason. I can really. Discern. And. This particular search is. 835 people. Identified on LinkedIn. Who are people. Who are. Not. There's another one. That I don't show here. That's like. There's 500 of those. That also work in the defense industry. So that was pretty damn cool. So. We kind of. What we did. Is we just went through a list. Like that. And we sent them all friend requests. As Marcus. And these are CSSPs. Right. So they should know. And. What happened. That was actually a joke. It was a joke. It was really. Kind of. So. What happened was. You know. We ended up with about. 40 or 50 connections. As Marcus. Over the course of. I think like. Four or five hours. From that. What we then started doing. Is joining all the. LinkedIn networking groups. So we made Marcus. A member of the. Security thought leaders. You know. Group. And. The Black Hat group. And I actually have to give. DT. Kind of props on this. We joined the Defcon group too. I think. But. For the Black Hat group. There's another group. For Black Hat speakers. And he mailed me. And he's like. Should I. Let you. Join that. And. You know. To make you a member. Of that. But yeah. He joined the CSO group. And the ISA group. And the ISACA group. And all these other things. And then. From that. We started. Kind of. Targeting people. A little bit. To just. Like I said. Just to make a connection. With them. So the end result. Was. We got about. 50 odd connections. Like say. In about 24 hours. CSO. Of a fortune. Actually. A fortune. Ten company. I. Had a bunch. Of old coworkers. And things. Of Marcus's. Who would mail us. And say like. Hey man. I'm so glad you're on here. Like give me a call. Here's my phone number. Here's my new email address. I've got something. I want to talk to you about. ISSA people. There was one guy. Which I thought was really cool. He like. Accepted our request. And he's like. Thanks Marcus. Love your product. I use it all the time. For security testing. I'm an independent consultant. And Marcus. You know. Us says. Marcus replied back. Thanks a lot. Thanks a lot. Make sure you register. You know. The official version. You know. See. I just changed the licensing. So. My personal favorite though. Is the one down below. He got this friend request. And it says. I don't know if you can see it. But it says. Whoa. You're on here now. Can I be in your network? And it says. They're former classmates. At college. And so. I said. Well man. This must be like. An old girlfriend. Or something. So I mailed it to Marcus. And he said. No. That's my sister. You know. And by the way. If you are. We're on his connection list. His email address was. Marcus. Dot. Random. At gmail. Dot. Com. So. And anybody who knows. Like. Of Marcus. Like. He's had the same email address. For like. 20 years. Which is like. Mjr. At random. Dot. Com. And that's the only email address. He even has like. On his page. And I'm presumably. Told his sister. At some point. Like. If you see anything. Other than that. That's not me. So. Yeah. So. After that. We went through. Another exercise. We. We. We. Actually. Didn't have. Permission. For this. But. I have. A good. Explanation. That. I'm. I'm not. Going to. Go into. So. What we. What we did. Was. There's. A lot. Of security. People. Now. That. Are. Like. Starting. To. On. Twitter. You know. And. So. I wonder. Those. Are. And. There's. A lot. Of. The. Security. Blogosphere. The. Thought. Leaders. And. And. These. People. That. Are. All. On. There. And. So. What. I. Did. Was. A. Same. Kind. Of. That. And. It. Actually. Far. More. Trivial. Just. Like. Found. A. Picture. Of. Gotti. Linked. To. His. Blog. And. Then. What. I. Did. Was. I. Started. Following. Funstack. Like. His. Listserv. And. Every. Time. Like. A. Post. Came. On. There. I. Twitted. It. You. Know. It. Said. Like. Hey. Check. This. Out. This. Is. Really. Cool. And. Then. Actually. Started. To. Kind. Of. Develop. The. Gotti. Voice. There's. One. Here. That's. A. Real. Player. Stack. Overflow. From. Zdi. Anyone. Knows. This. Is. Different. On. He. Bug. You. Know. In. Like. A. R. L. To. It. And. Like. Kind. Of. Talking. About. That. And. What. Happened. Was. People. Were. Talking. A. Lot. Well. You. Know. The. Best. Way. To. Catch. Us. You. To. Talk. To. Me. Is. On. Twitter. I'm. Always. On. Here. So. Just. Send. Me. Messages. And. So. Actually. I. Have. To. I. Have. To. Props. H. D. More. Out. At. Us. He. Was. Actually. On. Daddy's. Friends. List. On. Here. As. Well. But. This. Posted. And. Like. Look. Someone's. Impersonating. Me. Again. You. Know. And. Posted. On. His. List. Serve. And. Then. On. Blog. And. Then. For. While. There. I. Made. It. But. Our. Theory. Was. What. We. Were. To. Do. We. Thought. It. Sounded. Much. More. Illegal. Like. If. We. Actually. Said. We. Got. In. The. Interview. So. We. You. Will. Go. Off. The. Record. And. We. Were. Going. To. This. Meme. That. Like. All. The. Dns. Cash. Point. Is. Being. A. Tax. Or. Source. Out. Of. Latvia. It's. All. Latvia. You. Know. And. So. Like. You. Know. When. You. See. That. Everywhere. Like. We. Did. That. You. Know. But. We. Yeah. We. Outed. Ourselves. And. The. End. Result. Of. That. Is. That. The. Actual. God. Is. Now. On. Twitter. And. For. That. We're. Terribly. Sorry. Okay. Let's. Talk. About. The. Open. Social. So. Need. A. P. I. S. 100%. Arbitrary. Code. Right. Once. Own. Anywhere. Yeah. Was. Kind. Of. The. Intent. But. Open. Social. Is. The. First. To. Really. Do. Other. Than. Like. Plaxo. Which. Nobody. Cares. About. They. Were. The. First. To. Kind. Of. Go. Live. With. This. Yeah. And. That's. One. Of. The. Reasons. We. Chose. This. Is. Because. There. Has. Been. People. Looking. At. The. Facebook. Type. Apps. And. There's. Been. People. Who. Have. Written. Kind. Of. Like. Bad. Facebook. Apps. Other. Than. Just. The. Developers. Who. Write. Bad. Facebook. Apps. To. Begin. With. But. Open. Social. Is. Kind. Of. A. Neat. Thing. Because. There. Are. A. Of. Different. Social. Nets. That. Are. Implementing. It. So. If. Have. A. Particular. Piece. Of. Malicious. Code. You. Can. Go. Ahead. And. Propagate. That. Through. Every. Social. Net. That. As. As. Developer. Access. Of. Course. Which. Will. Get. Into. That. Apparently. On. Facebook. You. Can. Just. Add. The. Developer. App. And. The. Only. Thing. You. Need. To. Do. To. Publish. Your. Application. To. The. World. Is. Have. Five. Friends. Don't. Really. Know. What. That's. All. About. We. Made. Five. Friends. And. They. All. Friended. Each. Other. And. For. My. Space. You. To. Through. The. Development. Process. So. You. Had. To. Like. Submit. This. Form. And. Basically. Ask. You. Your. Name. So. Obviously. Didn't. There. What. Was. Your. Developer. App. That. You. Proposed. Well. I. Said. I. Was. Working. On. An. Encryption. Application. For. Sending. Messages. Based. On. The. Unbreakable. Rot. 13. Encryption. Scheme. So. And. Somebody. Yes. Somebody. At. My. Space. HQ. Went. Click. Approve. Click. Approve. Click. Approve. And. Some. Interesting. Things. About. This. Too. With. With. Many. Social. Networking. Apps. Is. It's. Centrally. Managed. Basically. Your. Code. Is. In. The. Center. And. Everybody. You. Know. Automatically. Gets. The. Most. Up-To-Date. Version. Of. Your. Code. So. If. Going. To. Launch. Some. Huge. Attack. What. You. Do. Is. Attached. To. Some. Meme. Get. A. Of. People. Installing. Your. App. And. Then. At. One. Point. You. Flip. The. Switch. And. Now. You. Have. The. Malicious. Code. Going. Out. To. All. These. People. So. Even. If. It. Was. Detected. At. Some. Point. There's. A. Of. Damage. You. Can. Do. In. A. Very. Short. Amount. Of. Time. With. These. Applications. And. You. Can. Kind. Of. Make. Your. Own. Personal. Little. Botnet. So. The. Social. Networks. How. They. Kind. Of. Handle. This. Is. They're. Counting. On. The. Domain. Security. Of. The. Browser. So. There's. A. Of. You. Know. Same. Origin. Type. Things. So. When. You. When. You. Run. Like. My. Space. Apps. For. Instance. It. Comes. From. A. P. I. Didn't. These. Apps. Which. Is. Perfectly. Reasonable. And. If. So. We're. Not. Really. Kind. Of. Publishing. These. Apps. If. You. Read. The. You. Know. You're. Absolving. Them. Of. Kind. Of. Any. Accountability. For. Anything. That. Happens. And. Like. Kind. Of. Our. Point. Is. The. Really. The. Only. Thing. That. They're. Really. Getting. Out. Of. Running. These. In. A. Separate. Domain. Is. Just. That. You. Know. Unless. You. Can. Over. Same. Origin. You. Can't. Hit. Them. Right. Because. That's. Really. The. Intent. They. Really. Need. To. Continue. To. Sell. Ads. And. Deliver. Service. But. There's. Nothing. You. In. The. Obviously. In. The. Process. Or. The. Ability. To. To. Push. Out. An. App. Or. Anything. Else. That. Keeps. Their. Users. Protected. You're. Just. They're. Protecting. Their. Users. From. Their. Own. Information. Which. Is. Kind. Of. Funny. On. A. Social. Net. And. They're. Not. Protecting. Their. User. Environment. From. Malicious. Apps. And. Also. Oddly. Enough. To. Get. Any. Post. To. Any. Site. Now. The. One. Thing. I. Will. Say. About. That. With. With. Regard. To. Cross. Site. Request. Forgery. And. Stuff. Like. That. Is. It. Doesn't. Execute. From. The. Client. Machine. It's. Actually. A. Server. On. The. My. Space. Network. That. Will. Go. Out. And. That. Coming. Up. So. It. Depends. On. Your. Goal. I. Mean. Sometimes. You. Just. Don't. Care. About. Same. Origin. If. Your. Goal. Is. To. You. Know. Put. Some. Malware. On. A. Client. Then. You. Really. Don't. Care. Where. It. Comes. From. Why. Do. I. Need. Elite. Zero. Date. XSS. When. I. Can. Just. Pop. The. Client. Itself. And. Get. Your. My. Space. Password. That. Way. Or. Whatever. It. Is. Right. I. Mean. We. Have. If. Have. An. Arbitrary. I. Frame. That. We. Can. Execute. Any. Code. From. We've. Got. Lots. Of. Other. Ways. To. Execute. JavaScript. When. Just. Ask. For. Permission. And. They. Let. You. Execute. Anything. You. Want. To. So. This. Doesn't. Look. Well. That's. My. Dumb. Face. But. This. Doesn't. Really. Show. Too. Much. And. The. Funny. Thing. Is. There's. An. Application. Added. To. My. Page. Called. Sea. Surfer. Hmm. I. Wonder. What. That. Does. But. Sea. Surfer's. Reading. A. Token. Or. It's. Reading. A. Cookie. From. Another. App. Called. Pants. Status. Pants. Status. Down. For. Maintenance. Yeah. Down. For. Maintenance. So. That. Doesn't. Look. Like. Too. Earth. Shattering. And. It's. Really. Not. But. It. Just. Shows. That. Apps. Can. Call. Other. App. Built-ins. It. Can. Request. Data. And. Coming. Up. Here. Pretty. Soon. We'll. Show. You. Can. Actually. Take. The. Entire. Code. From. Somebody. Else's. Self-contained. App. Copy. And. Paste. It. Into. Your. App. And. Call. The. Same. Stuff. And. Get. The. Same. Data. Back. That. Is. Bad. Now. Oh. If. I. Don't. Hold. The. If. Don't. Hold. It. Like. This. It. Goes. Out. That's. Why. I'm. Trying. To. Like. Look. Like. I'm. Singing. A. Rock. Song. How. About. This. This. Okay. That's. Awesome. I. Can't. Wait. To. See. This. Video. So. So. The. Point. The. Point. Of. This. You. A. Lot. Of. You. Can. Call. Anything. That. These. Other. Apps. Are. Doing. So. If. Doing. Like. Secret. Shit. I. Mean. It. Just. Doesn't. Work. You. Know. So. Yeah. I. Mean. Obviously. You. We're. Accessing. That. Cookie. We. Can. Steal. Any. Other. Functions. The. Apps. Do. They're. All. In. This. Giant. You. Know. Sort. Of. You. Know. Mad Max. Beyond. Thunderdome. Land. Of. Apps. Beating. The. Crap. Out. Of. Each. Other. I'll. Take. The. One. That. It. Actually. Works. Now. Hey. Wow. Cool. So. Here's. An. Example. Of. A. Function. Call. Called. Make. A. Request. And. This. Is. An. Open. Social. Thing. And. It's. Using. Gadgets. And. It's. Basically. An. Example. Of. To. Construct. A. Get. Request. Using. The. API. It. Defaults. To. A. Get. If. You. Don't. Specify. A. Post. And. Here's. An. Example. Of. A. Post. One. Couple. Things. To. Note. Here. Is. The. Different. Params. You. Can. Add. To. So. You. Can. Construct. To. Look. Like. You. Want. To. You. Can. Add. Headers. And. Do. All. Those. Other. Way. Get. There. There's. You. Pretty. Much. Can. Figure. Out. Any. Method. You. Can. Construct. The. Request. Is. Going. To. Get. There's. Some. Reference. For. It. Now. What. Happens. When. You. Do. These. Gets. Or. Posts. It. Sends. It. To. Something. Called. Relay. Proxy. And. That. Relay. Proxy. Goes. And. Grabs. Whatever. Information. That. You. Requested. The. Funny. About. That. Is. You. Don't. Even. Need. To. A. Developer. To. Send. Anything. To. Relay. Proxy. So. I. Mean. Did. You. Just. Now. Have. Your. Own. MySpace. Anonymous. Proxy. As. Can. See. Here. Just. Sending. It. To. What. Is. My. IP. Dot. Com. That. IP. Address. Is. The. IP. Address. Of. The. Server. On. The. MySpace. Network. MySpace. As. Open. Proxy. So. We. Thought. That. Was. Pretty. Cool. So. Let's. Talk. About. Some. Apps. Capabilities. And. This. Is. Really. Something. If. You. Put. It. On. A. Net. If. You. Put. It. That. Social. Net. It's. Available. To. A. Developer. So. They. Can. Query. Anything. In. A. Lot. Of. These. Social. Are. The. Way. That. Literally. Like. 90%. Of. These. Work. Unless. They. Do. Something. Really. Really. Simple. Is. That. They're. Running. A. Web. Server. Somewhere. And. They're. Sucking. Down. Whatever. Data. You. Have. Via. The. App. And. Then. Sending. It. To. Another. Site. Well. That's. Another. Thing. Too. Is. This. Has. App. This. Data. Has. Persistence. So. If. You. Submit. Data. To. One. Of. These. Apps. And. Then. You. Remove. The. App. And. Then. Add. The. App. Back. Again. Your. Data. Is. Still. There. So. There's. A. Different. We've. Been. Doing. That. All. Day. There's. A. Couple. Different. Things. To. Note. Here. You. Can. Either. Do. It. Kind. Of. Two. Different. Ways. You. Can. Use. The. API. And. Write. Code. Or. You. Can. Just. Pipe. In. An. I. Frame. And. That. Becomes. Important. Later. So. Let's. Talk. About. A. Little. Social. Net. App. Jiu. Jitsu. Attacking. Social. Net. Applications. Is. Very. Trivial. I. Bet. You. Nobody. Ever. Would. Have. Thought. That. Could. Be. True. A. Of. These. Apps. Actually. Real. Quick. Is. Harmony. Guy. Here. No. If. Are. Like. In. Don't. You. Don't. To. Raise. Your. Hand. But. Like. We. Want. To. Buy. Your. Beers. So. There's. A. There's. A. Person. And. Actually. Via. Social. Nets. I. Kind. Of. An. Idea. Who. Might. Be. Who. Has. Done. A. Lot. Of. Stuff. Looking. At. Social. You. App. That. He. Was. Able. To. Compromise. You. Know. And. Was. Forty. Five. Minutes. After. Lunch. You. Know. And. And. His. Old. Deal. Is. Like. I. Can't. Believe. This. Works. You. Know. So. These. Apps. Are. Actually. Delivered. In. One. Of. Three. Places. For. The. Most. Part. Of. The. Canvas. And. A. Lot. Of. Times. If. It's. Or. Something. You're. Playing. All. That. Will. Come. On. The. Canvas. And. Of. Course. Allows. Developers. To. Put. Ads. And. Stuff. In. There. On. The. Canvas. You. Also. Have. The. Profile. Which. Is. Your. Profile. View. And. Then. Your. Home. View. You. Can. You. Can. Have. A. Contained. App. That. Grabs. External. Content. And. It's. Coded. By. People. Who. Shouldn't. Be. Writing. Code. And. Let's. Take. A. Look. At. A. Examples. What. I. Did. When. I. Went. Through. Just. I. Thought. For. Anything. That. Said. Allow. Secret. Communication. Or. Covert. Communication. Communicate. Secretly. With. Your. Friends. I. Saw. This. Thing. Called. The. Keep. It. Real. Box. Of. Secret. Messages. That. Took. 30. Seconds. Yeah. 30. Seconds. As. Long. As. It. Took. To. Open. An. Interception. Proxy. And. Change. A. Param. And. There's. Like. There's. No. Validation. Of. It. And. Another. Funny. Thing. About. That. Is. If. Was. Your. Information. And. You're. Making. The. Assumption. That. You're. Communicating. Securely. You're. Wrong. I. Actually. Just. Noticed. That. The. First. Time. Sutra. Poll. Imagine. What. Kind. Of. Questions. They. Ask. Here. And. Yes. Reverse. Cowgirl. Is. On. The. List. Of. Sexual. Actually. I. Said. Nathan. Earlier. I. Said. That. Nathan's. Number. One. Was. Reverse. Cowgirl. But. It. Is. Actually. Spread. Eagle. Spread. Eagle. Was. The. Was. The. Answer. To. The. Favorite. Position. And. Then. And. There's. 54,000. People. I. Just. Notice. That. Used. This. App. 54,000. People. That. Use. This. App. And. First. Of. All. This. Is. Dangerous. Anyway. Because. It. Shows. You. People. Who. Match. Your. Responses. I. This. Is. Really. Much. Better. As. An. Old. Adult. Friend. Finder. App. Yeah. And. Actually. I. Just. Noticed. You. That. 1%. Of. All. People. Are. Like. You. And. I. Yeah. 1%. So. This. Kind. Of. Highlights. A. Problem. With. Social. That's. Like. A. Of. People. Complain. About. Social. Networking. As. Being. Bad. For. Privacy. Well. You. Think. It's. Bad. For. Privacy. Just. Answering. The. Questions. At. A. Few. These. Applications. Are. Really. Bad. Oh. By. The. Way. These. Aren't. My. Results. These. Are. Somebody. Else's. Results. By. The. Way. Now. Let's. Take. A. At. An. Application. That's. Quote. Unquote. Properly. Done. In. Open. Social. So. This. Is. A. Self. In. This. Person's. Page. I. Injected. A. Picture. Of. My. Face. On. There. And. I. Said. Most. Recently. Kissed. By. Haxor. So. And. Here's. The. Request. Which. Is. Kind. Of. There. So. No. No. Discussion. On. This. Would. Be. Complete. Without. Talking. A. Little. Bit. About. Kaha. Kaha. Is. An. Open. Social. Google. Slash. My. Space. We. Didn't. Have. To. Follow. It. So. It's. Completely. Opt. In. So. It's. Like. Use. Cold. Code. No. I. Don't. Think. I. Will. You. Know. Yeah. That. Was. Kind. Of. The. Name. Of. Your. Name. And. That. Is. I. It. I. Know. That. Pretty. We're able to use Relay Proxy and put any content we want. I mean, we don't need it. Again, we don't need XSS. We'll just give you an ActiveX control to download or Flash or whatever we want to do. This app is called C Surfer, and I don't think I need to explain what that does, but it demonstrates three different ways to do C Surfer on MySpace, image tags, iframes, and meta tags. Oh, my. And then, of course, it also demonstrates content on the Canvas profile in the home. Gotcha. Hey, wow. We made it with three minutes to go. Wow. So here's some of our recommendations, and this is usually where people start to get up and leave. It's like, we don't care how to fix this stuff. We just wanted to see what was bad. Kill external content, obviously. You can't control what goes off of your site. It's just not possible. You know, some of the other stuff is reduce API functionality. A lot of these APIs allow you to do so many crazy things that you'd never even imagine, and the reason that is is because they want to make it, is it's available to every social net as possible. So if you just created something that was specific to MySpace, you know, that might not hit high five, or LinkedIn. Well, and actually, something about, like, a lot of this stuff that we talked about earlier is that, you know, because it's all user-generated content, you know, really, your whole goal is to get people to come to your site and move in, right? And so, if you do anything to restrict them or make it kind of tricky, they'll just go somewhere else. And so, it's very much about just giving them as much functionality as they possibly can have, and that's, that's why they end up with a lot of fail. On the external content, one of the things that I've kind of said for a while is, I think a couple of social net sites will, like, partner with Photobucket, and a couple, like, other image sites, and, like, only let you link the content there. I think that's a good idea. It sounds pretty reasonable. Yeah, and if you have security models, don't make them opt-in, because opt-in always equals fail. You know, even, like, I mean, I use NoScript when I browse the internets, and I would say that probably a lot of people here do, but not a lot of people out there in the real world do. So, this is a very small... It just occurred to me, I wonder if we say douchebag or fail more. Like, which one? We need, like, a running tally. I don't know. We need a douchebag and fail counter. Okay. Yeah, and like I said, like, kind of threat model. That's a new social network app. Coming soon. Douchebag and fail counter. So, yeah, and like I said, like, kind of threat modeling. I mean, there's a very large Silicon Valley information security firm that did just, just did a very expensive job. They did a very expensive review of MySpace, and we're kind of baffled that they didn't find any of these things, because we just kind of got drunk and looked at shit, you know? It was 40, that first C-Surf was 45 minutes into deciding that we felt like doing it. So, we had to, like, boot up, and then we had to get on Sean's wireless network, which was almost impossible, even for having to do it normally. Even for me. Yes. And, yeah, it kind of props to late adopters. People take their time. We've got one minute. People take their time, you know, adding some of this. The people who are jumping on first are the ones that are looking really bad. So, a couple sites haven't, even though they're members of the open social standard, they haven't jumped onto it yet. I think that's a smart thing to do. Yeah, developers, developers, developers, or lack thereof. The profile lifetime bit, members since, that would, like, let you know. All right. Well, anyway, if you want to talk to us, we'll be around. Please come by, ask questions. Room 106. Room 106. 106, thank you. Thanks.