1 00:00:00,000 --> 00:00:08,400 Yes, thumbs up. Yes, good, perfect. All right, so my name's Robert Hanson. This is Tom Strassner. 2 00:00:08,500 --> 00:00:13,080 We're talking about exploiting Google gadgets. It's nice that you guys could come and join us. 3 00:00:13,240 --> 00:00:18,460 I thought the room was going to be about a third the size, so welcome to everybody. 4 00:00:19,860 --> 00:00:25,180 You might have seen some stuff in the news over the last couple days, front page of MSNBC, 5 00:00:25,880 --> 00:00:32,540 Associated Press. It's all over the place. So we modified the speech a little bit from Black Hat 6 00:00:32,540 --> 00:00:36,920 just because we got more information over the last couple days, and we also had to shorten 7 00:00:36,920 --> 00:00:41,020 a little bit just to fit it in the hour time slot, so we're going to be kind of racing through 8 00:00:41,020 --> 00:00:44,860 a couple points, but you'll get the good stuff. Tom? 9 00:00:47,040 --> 00:00:49,820 So of course you know Robert. He really needs no introduction. 10 00:00:52,240 --> 00:00:55,000 My name is Tom Strassner. I'm a senior security analyst. 11 00:00:55,180 --> 00:01:01,960 We're an application security company, specialize in producing an application security scanner 12 00:01:01,960 --> 00:01:08,280 and do software as a service. So I'm their chief analyst, and this is Robert. 13 00:01:08,900 --> 00:01:12,660 I'm Robert Hanson for the five people in the audience who have not met me. 14 00:01:12,860 --> 00:01:14,780 Please come up afterwards. I'd like to talk to you. 15 00:01:15,400 --> 00:01:18,500 I run a small consulting company. It's five people. 16 00:01:18,760 --> 00:01:24,900 We have more billion-dollar companies than we have employees, and I run a small website 17 00:01:24,900 --> 00:01:25,160 called Microsoft.com. 18 00:01:25,180 --> 00:01:26,660 I run a small website called hackers.org and slackers.org. 19 00:01:27,220 --> 00:01:28,420 Have you heard of it? Anybody? 20 00:01:29,740 --> 00:01:30,060 Okay. 21 00:01:31,800 --> 00:01:33,100 There's one person back there. 22 00:01:33,620 --> 00:01:40,840 So I just wanted to start off by saying thank you so much for having me. 23 00:01:41,020 --> 00:01:42,860 This is the first time I've ever talked at DEF CON. 24 00:01:42,980 --> 00:01:45,420 I've talked at Black Hat three times, but this is the first time here. 25 00:01:46,320 --> 00:01:47,920 So I'm actually really honored to be here. 26 00:01:48,700 --> 00:01:52,960 I wanted to start this whole thing off by spending a couple minutes, and I apologize, 27 00:01:53,040 --> 00:01:54,820 but I kind of want to do this because I think it's important. 28 00:01:55,180 --> 00:01:57,100 I want to talk about the history of how this all came to be. 29 00:01:57,640 --> 00:02:02,420 There's been a lot of miscommunication, I think mostly on my part, and there's been 30 00:02:02,420 --> 00:02:05,860 a lot of reasons for that, a lot of people that I had to protect and a lot of stuff going 31 00:02:05,860 --> 00:02:08,160 on. I didn't want to do things too quick, too 32 00:02:08,160 --> 00:02:11,160 fast. So I want to talk about what happened, and 33 00:02:11,160 --> 00:02:12,740 hopefully that'll explain some of this stuff. 34 00:02:13,520 --> 00:02:18,360 Only a few people know the story. Myself, a couple people at Google knew parts 35 00:02:18,360 --> 00:02:20,980 of it as they kind of floated in and out of the company. 36 00:02:21,240 --> 00:02:23,760 I'm the only kind of consistent factor in all of this stuff. 37 00:02:24,560 --> 00:02:29,560 So just sit back, and I'll explain. So before we start, I think we've all heard 38 00:02:29,560 --> 00:02:31,420 these types of sentiments before, different companies. 39 00:02:31,880 --> 00:02:35,340 This is Google's version of this. If you find a vulnerability, we ask that you 40 00:02:35,340 --> 00:02:38,720 share it with us, and we'll let you know, and we'll fix it in a timely manner or whatever, 41 00:02:38,880 --> 00:02:42,180 all the kind of normal jargon you get from big companies. 42 00:02:43,280 --> 00:02:45,440 So we'll get back to this. This is the director at Google. 43 00:02:46,500 --> 00:02:53,380 So this all started about four years ago, 2004. I found, well, not me personally, but 44 00:02:53,760 --> 00:02:58,480 people I was working with found a bunch of redirections were all being used by phishers 45 00:02:59,440 --> 00:03:05,380 through Visa, DoubleClick, eBay, and Google to try to anonymize and or, you know, confuse 46 00:03:05,380 --> 00:03:10,440 users as they were clicking through things to land on the amount of page that they didn't 47 00:03:10,440 --> 00:03:14,560 assume they were going to be landing on. So we told everybody about the problem, for 48 00:03:14,560 --> 00:03:16,880 those of them who weren't aware, and of course no one was aware. 49 00:03:17,300 --> 00:03:22,020 So we told everybody that it was happening, and everyone perked up immediately and said, 50 00:03:22,100 --> 00:03:22,760 oh, yeah, that's bad. 51 00:03:23,760 --> 00:03:29,220 They went off to go do their fixes or not. So in this case, Visa closed their hold down 52 00:03:29,220 --> 00:03:33,160 in just a matter of hours. It was amazingly fast, incredibly fast. 53 00:03:33,380 --> 00:03:36,440 I've never seen anything like it. And usually, redirects are kind of complicated 54 00:03:36,440 --> 00:03:41,820 to close because you end up breaking functionality. DoubleClick fixed theirs within days, but 55 00:03:41,820 --> 00:03:44,480 they only sort of fixed it. They fixed it with a blacklist. 56 00:03:44,660 --> 00:03:47,460 They said they had a permanent fix for it, but they didn't want to turn it on because 57 00:03:47,460 --> 00:03:50,220 they didn't want to incur the usability hit if they didn't have to. 58 00:03:50,340 --> 00:03:52,200 They thought it was a one-time deal, and for them it was. 59 00:03:52,300 --> 00:03:53,640 So they did a good job. 60 00:03:54,060 --> 00:03:56,460 They have the ability to turn it off any time they feel like it. 61 00:03:57,140 --> 00:04:00,380 eBay fixed it within a couple weeks, and there's a bunch of reasons why it took that long. 62 00:04:00,600 --> 00:04:04,140 Like I said, a lot of the functionality that they had to kind of deal with, and they broke 63 00:04:04,140 --> 00:04:05,780 stuff, and so they had to fix that other stuff. 64 00:04:06,720 --> 00:04:10,220 And Google still hasn't fixed all the vulnerabilities, and it's been four years. 65 00:04:14,660 --> 00:04:18,660 So word got out fast. This wasn't just something that a couple of 66 00:04:18,660 --> 00:04:22,220 companies knew about. It's out there. This is happening. It's in people's inboxes. 67 00:04:22,240 --> 00:04:23,280 I'm not making this stuff up. 68 00:04:23,760 --> 00:04:29,040 So 2004 was when it really started. About 2006, it started being used for spam as well. 69 00:04:30,140 --> 00:04:33,040 But it's out there. I mean, if you search for this stuff, you're going to find it. 70 00:04:33,680 --> 00:04:37,340 So there's a couple of failures that kind of came to be throughout this whole process 71 00:04:37,800 --> 00:04:41,580 that I'd kind of like to point out. Everybody's got vulnerabilities. 72 00:04:41,880 --> 00:04:45,680 I'm not the guy to say, oh, that guy's horrible. He's got terrible security because he's got 73 00:04:45,680 --> 00:04:50,800 one tiny little redirection hole. But I'm pretty sensitive to people's problems, 74 00:04:50,940 --> 00:04:53,240 but I also try to protect consumers whenever possible. 75 00:04:53,760 --> 00:04:57,920 So we informed Google that they were actually being exploited. 76 00:04:58,180 --> 00:05:01,940 And they said, okay, we're going to fix this, but we're going to do it with a blacklist. 77 00:05:02,480 --> 00:05:05,800 And I think we all know how to get around a blacklist. 78 00:05:05,880 --> 00:05:08,380 You just change a character and you're past the blacklist. 79 00:05:08,480 --> 00:05:11,560 So that didn't exactly work. And the bad guys figured it out as fast as 80 00:05:11,560 --> 00:05:22,700 I just told you. So we felt like this kind of bad, we should 81 00:05:22,700 --> 00:05:23,740 be talking with them. We talked to them. 82 00:05:23,740 --> 00:05:26,420 We had a bit of a dialogue, and they just wouldn't budge. 83 00:05:26,620 --> 00:05:29,520 And it actually took a really long time to even get them to implement the blacklist. 84 00:05:29,920 --> 00:05:31,780 I don't have a time frame for you, but it was months. 85 00:05:33,120 --> 00:05:36,640 So there's a bunch of reasons why you'd want to fix it. 86 00:05:37,640 --> 00:05:39,160 Sorry, why not to fix it, rather. 87 00:05:39,580 --> 00:05:40,220 It's expensive. 88 00:05:40,560 --> 00:05:43,280 You have to hire, or if you don't already have the engineers on staff, 89 00:05:43,720 --> 00:05:46,280 you have to QA it and release it, and you break stuff, 90 00:05:46,460 --> 00:05:47,820 and you've got to go QA and release that stuff. 91 00:05:48,020 --> 00:05:49,680 And it takes time and that kind of stuff. 92 00:05:50,360 --> 00:05:51,740 It's useful for tracking users. 93 00:05:51,740 --> 00:05:56,500 And that's the primary reason why most of that stuff was there in the first place. 94 00:05:56,820 --> 00:05:59,940 It was actually designed so they could track people as they're navigating through the site 95 00:05:59,940 --> 00:06:03,960 and click on links so that they can do navigation changes or tune their rules or whatever. 96 00:06:05,660 --> 00:06:08,500 Lastly, it would break stuff like feeling lucky, 97 00:06:08,660 --> 00:06:11,560 which is a huge portion of why people like Google so much. 98 00:06:11,640 --> 00:06:14,180 You can click that button, and you're on to the next page, and it's great. 99 00:06:14,280 --> 00:06:16,600 You don't have to deal with the whole search results thing. 100 00:06:16,820 --> 00:06:17,000 I don't know. 101 00:06:17,060 --> 00:06:18,620 Does anyone actually use that, by the way? 102 00:06:20,320 --> 00:06:21,240 Raise your hand, please. 103 00:06:21,380 --> 00:06:21,720 Like, what? 104 00:06:21,740 --> 00:06:21,820 One? 105 00:06:21,980 --> 00:06:22,260 Two? 106 00:06:22,680 --> 00:06:23,040 Okay. 107 00:06:23,220 --> 00:06:24,260 Google, you can fix that one. 108 00:06:25,180 --> 00:06:26,680 So why to fix it? 109 00:06:27,980 --> 00:06:28,520 Altruism, right? 110 00:06:28,580 --> 00:06:29,360 It's the right thing to do. 111 00:06:29,460 --> 00:06:30,460 Google's not evil, right? 112 00:06:30,520 --> 00:06:32,360 We're trying to fix a consumer-level problem. 113 00:06:34,460 --> 00:06:35,540 It's being used. 114 00:06:35,680 --> 00:06:36,880 It's not a theoretical attack. 115 00:06:37,060 --> 00:06:38,800 It's actively being used by bad guys. 116 00:06:38,940 --> 00:06:40,520 We've got tons and tons of examples of it. 117 00:06:41,360 --> 00:06:43,480 And ultimately, it stops contributing to the problem. 118 00:06:43,800 --> 00:06:46,360 So I waited two years. 119 00:06:46,680 --> 00:06:48,280 I sat on it. 120 00:06:48,300 --> 00:06:49,100 I talked with them. 121 00:06:49,160 --> 00:06:50,420 I didn't do anything for two years. 122 00:06:50,560 --> 00:06:51,720 And then I went full disclosure. 123 00:06:51,720 --> 00:06:52,320 And then I went full disclosure on their ass. 124 00:06:59,740 --> 00:07:01,580 So I don't hate Google, right? 125 00:07:01,680 --> 00:07:03,800 But I like consumers a lot more, it turns out. 126 00:07:04,700 --> 00:07:09,900 So the first thing I did was release four redirection vulnerabilities on full disclosure, I think it was. 127 00:07:10,480 --> 00:07:11,200 Or bug tracks. 128 00:07:11,340 --> 00:07:12,120 I can't remember which one now. 129 00:07:12,700 --> 00:07:14,140 And I didn't get any reaction. 130 00:07:14,380 --> 00:07:16,300 No one even commented on it or anything. 131 00:07:16,480 --> 00:07:18,020 So I was kind of like, well, that didn't work. 132 00:07:18,880 --> 00:07:20,540 So then I disclosed an XSS vulnerability. 133 00:07:20,740 --> 00:07:21,500 And then suddenly. 134 00:07:21,500 --> 00:07:22,080 Suddenly, it exploded. 135 00:07:22,340 --> 00:07:23,320 Everybody was all interested. 136 00:07:23,520 --> 00:07:24,620 Everyone wanted to talk about it. 137 00:07:24,700 --> 00:07:26,280 And it's like, it's the same damn thing. 138 00:07:26,360 --> 00:07:27,400 I can redirect either way. 139 00:07:27,560 --> 00:07:28,720 You know, I'm sure there's other stuff. 140 00:07:28,820 --> 00:07:29,420 And I can grab cookies. 141 00:07:29,580 --> 00:07:32,760 But the bad guys are really very interested in this redirection thing, too. 142 00:07:32,940 --> 00:07:39,920 So I was trying to use that as a point to leverage the bigger picture, which is that we need to close down this redirection thing that's still there. 143 00:07:40,100 --> 00:07:40,980 It's been there for years. 144 00:07:41,140 --> 00:07:41,820 We're going to fix that. 145 00:07:43,340 --> 00:07:44,940 So Google actually agreed with me. 146 00:07:45,180 --> 00:07:47,180 This isn't something like, they're like, no, no. 147 00:07:47,360 --> 00:07:48,900 You know, this isn't something we want to fix. 148 00:07:49,400 --> 00:07:51,460 Matt Cutts is their head search guru. 149 00:07:52,480 --> 00:07:54,720 He's kind of their unofficial spokesman for search. 150 00:07:55,060 --> 00:08:00,140 And there's three different examples of them on the net talking about why this is bad and how it's being used for phishing attacks. 151 00:08:00,400 --> 00:08:01,440 So Google knows. 152 00:08:01,540 --> 00:08:01,880 They agree. 153 00:08:02,220 --> 00:08:05,440 This is, you know, not me just sitting up here telling you it's a bad thing. 154 00:08:05,520 --> 00:08:06,180 They agree with me. 155 00:08:07,880 --> 00:08:10,040 So why do I personally care about it? 156 00:08:10,160 --> 00:08:14,560 So first of all, let me explain how phishing technology works for those of you who don't, like, deal with this every day. 157 00:08:15,260 --> 00:08:17,160 First, you have, like, known good sites. 158 00:08:17,340 --> 00:08:20,840 So, like, the website, you know, Annie Bay, Citibank. 159 00:08:20,920 --> 00:08:21,480 Those are the white labels. 160 00:08:21,500 --> 00:08:23,140 You don't want to mark those as phishing sites. 161 00:08:23,300 --> 00:08:26,100 Even though they look an awful lot like a phishing site, it turns out they're the real site. 162 00:08:27,620 --> 00:08:31,780 The false positives, you know, a good example is Google Cash, for instance. 163 00:08:31,960 --> 00:08:33,100 You don't want to block Google Cash. 164 00:08:33,340 --> 00:08:34,560 So you have to put that on the whitelist. 165 00:08:35,840 --> 00:08:37,920 Webmail, it looks awful like a phishing site. 166 00:08:38,080 --> 00:08:38,960 It's got a form on it. 167 00:08:39,060 --> 00:08:43,620 It might even say, you know, username and password, even though there's no username and password field necessarily. 168 00:08:44,540 --> 00:08:47,420 So you've got to mark all that stuff as whitelist because you don't want to deal with it. 169 00:08:47,480 --> 00:08:48,880 Your CSRs don't want to get overloaded. 170 00:08:48,920 --> 00:08:49,920 It's a pain in the butt. 171 00:08:50,500 --> 00:08:51,480 So second is BlackRock. 172 00:08:51,500 --> 00:08:54,620 You want to, you know, you have a known set of bad things. 173 00:08:54,700 --> 00:08:57,600 People are sending to you or you detect it or whatever, and you want to mark it as bad. 174 00:08:57,720 --> 00:09:02,700 And you throw it in your antiphishing stuff, and then everybody's safe a couple hours later when it propagates 175 00:09:02,700 --> 00:09:04,920 or 10 minutes or whatever it is, depending on the technology. 176 00:09:05,920 --> 00:09:07,300 And lastly is heuristics. 177 00:09:08,400 --> 00:09:10,340 Heuristics really aren't very good, it turns out. 178 00:09:10,800 --> 00:09:14,900 I've read tons of papers, and every paper I've read just, it blows up in real life 179 00:09:14,900 --> 00:09:17,140 when you actually look at the vast weirdness of the Internet. 180 00:09:18,840 --> 00:09:20,440 And you also have DNS sometimes. 181 00:09:20,440 --> 00:09:27,520 But that's, you know, stuff like OpenDNS, and it doesn't work at all because phishers have learned to use IP addresses, so that doesn't matter. 182 00:09:28,920 --> 00:09:35,000 So Google is not exactly the most forgiving company when you mark them as a phishing site. 183 00:09:35,880 --> 00:09:38,400 And you block a million people from going to their website. 184 00:09:40,280 --> 00:09:43,700 And, well, we did that because it turns out they were a phishing site. 185 00:09:44,560 --> 00:09:48,880 And, you know, we felt bad about it, but really, at the end of the day, you have two options, right? 186 00:09:49,000 --> 00:09:50,420 You either aren't a phishing site. 187 00:09:50,420 --> 00:09:52,080 Or we mark you as a phishing site. 188 00:09:52,280 --> 00:09:56,080 So it's really, it's up to them to stop being a phishing site, so. 189 00:09:58,800 --> 00:10:03,860 So I found this Google Gadget thing, just kind of randomly looking at it one day. 190 00:10:04,580 --> 00:10:09,260 And, by the way, I never, never go to Google, so within five seconds I found this thing, too. 191 00:10:10,000 --> 00:10:13,060 So it happens that JavaScript can redirect as well. 192 00:10:13,220 --> 00:10:15,700 It doesn't just have to steal cookies or all this other stuff. 193 00:10:15,800 --> 00:10:16,640 It also can redirect. 194 00:10:17,280 --> 00:10:18,760 It's pretty good at it, as a matter of fact. 195 00:10:19,420 --> 00:10:20,400 And it turns out that it works. 196 00:10:20,400 --> 00:10:25,880 It turns out that most people have JavaScript turned on, especially when they're on Google because Google breaks a lot of stuff if you don't have JavaScript turned on. 197 00:10:26,580 --> 00:10:28,360 So I'm nice, though, this time. 198 00:10:28,500 --> 00:10:30,280 I'm actually trying to be nicer to Google. 199 00:10:30,520 --> 00:10:31,420 You know, I kind of fluctuate. 200 00:10:31,460 --> 00:10:32,720 Sometimes I'm like, come on, Google. 201 00:10:32,880 --> 00:10:34,720 And then other times I'm like, hey, Google, you know. 202 00:10:35,580 --> 00:10:37,780 So this time I actually release it to them. 203 00:10:37,860 --> 00:10:38,440 I send it to them. 204 00:10:38,500 --> 00:10:40,680 And I'm like, all right, you know, here it is. 205 00:10:40,740 --> 00:10:41,760 I'm being a nice guy, gentleman. 206 00:10:41,920 --> 00:10:42,540 Go fix it. 207 00:10:42,700 --> 00:10:45,260 You know, they've been pretty good about XSS in the past. 208 00:10:46,540 --> 00:10:50,380 So their response is, on further review, it turns out that this is not a bug. 209 00:10:50,400 --> 00:10:52,760 But instead the expected behavior of this domain. 210 00:10:53,560 --> 00:10:54,160 All right. 211 00:10:55,720 --> 00:11:03,000 Since these modules reside on the gmodules.com domain instead of the Google domain, cross-protection stops them from being used to steal Google-specific cookies. 212 00:11:03,220 --> 00:11:04,940 So they gave me the definition of XSS. 213 00:11:06,140 --> 00:11:09,140 Well, it sort of turns out that I wrote the book on XSS. 214 00:11:12,200 --> 00:11:14,640 So my response was a one-word wow. 215 00:11:15,940 --> 00:11:17,560 Because what are you going to say to that, right? 216 00:11:17,760 --> 00:11:20,280 So shame on you, Google. 217 00:11:20,360 --> 00:11:20,380 You know what? 218 00:11:20,400 --> 00:11:20,580 You're not going to be able to steal Google, right? 219 00:11:25,800 --> 00:11:28,160 So Google already agreed that this was bad, right? 220 00:11:28,460 --> 00:11:29,280 They agreed. 221 00:11:29,520 --> 00:11:30,540 We're on the same page. 222 00:11:30,800 --> 00:11:32,780 Google is still an evil litigious company. 223 00:11:32,960 --> 00:11:34,720 Maybe now so than ever. 224 00:11:34,840 --> 00:11:40,200 There's a lot of reasons that they're more careful about how they protect their brand. 225 00:11:40,860 --> 00:11:44,400 Google doesn't have the first clue about what JavaScript could be used for, apparently. 226 00:11:45,300 --> 00:11:49,280 And they lied about the danger of the vulnerability that they had already agreed to fix. 227 00:11:49,280 --> 00:11:50,920 In this case, the redirection vulnerability. 228 00:11:52,060 --> 00:11:53,380 I'm not going to worry about that guy. 229 00:11:55,060 --> 00:11:56,720 And bad guys are still using it. 230 00:11:57,480 --> 00:12:01,320 So there's other stupidity that just kind of rolls into all this stuff. 231 00:12:02,100 --> 00:12:06,520 This is another guy who found the exact same type of vulnerability, but it was in Blogspot. 232 00:12:06,820 --> 00:12:10,200 And he said, this is an email that he's relaying to me. 233 00:12:10,760 --> 00:12:14,900 The issue you describe is not actually a vulnerability and is not cross-site scripting. 234 00:12:15,120 --> 00:12:17,740 In this case, you are simply including a loud script in your blog. 235 00:12:17,740 --> 00:12:19,700 This does not constitute a security breach. 236 00:12:20,580 --> 00:12:21,280 You heard me. 237 00:12:21,580 --> 00:12:24,800 If you include malicious JavaScript, that's not a security breach. 238 00:12:25,280 --> 00:12:26,220 You heard it from Google. 239 00:12:26,600 --> 00:12:32,880 So it turns out that Google is marked as the most top infected IP range by Stop Badware. 240 00:12:32,980 --> 00:12:33,860 By their own metrics. 241 00:12:34,220 --> 00:12:35,940 This is not somebody else's metrics. That's theirs. 242 00:12:37,960 --> 00:12:39,960 They were quick to remind me of that. 243 00:12:40,120 --> 00:12:41,640 I don't know why that helps, but there you go. 244 00:12:42,700 --> 00:12:45,420 This is something that was posted on my blog. 245 00:12:45,700 --> 00:12:47,720 So, you know, normally when people are posting on their blog, 246 00:12:47,740 --> 00:12:50,180 they're talking to me or to other people. 247 00:12:50,840 --> 00:12:53,740 And in this case, he's talking in third person. 248 00:12:54,100 --> 00:12:58,120 So Google, you know, their internal department is trying to defame me on my own website 249 00:12:58,120 --> 00:12:59,540 from their own IP space. 250 00:12:59,820 --> 00:13:01,880 So it turns out I'm pretty good at looking at my logs. 251 00:13:04,140 --> 00:13:05,800 So, meanwhile, more holes are opening. 252 00:13:05,960 --> 00:13:07,020 Things keep opening up. 253 00:13:07,080 --> 00:13:08,480 And, you know, we're not getting ahead of the problem. 254 00:13:08,600 --> 00:13:10,000 We're actually opening up more vulnerabilities. 255 00:13:10,700 --> 00:13:12,980 So I kind of want to get ahead of this problem. 256 00:13:13,100 --> 00:13:16,380 Because it turns out that, you know, my mom serves the Internet. 257 00:13:16,540 --> 00:13:17,260 I kind of care, right? 258 00:13:17,740 --> 00:13:18,140 I have an invested interest. 259 00:13:19,000 --> 00:13:20,900 So, ultimately, I just want to stop fighting 260 00:13:20,900 --> 00:13:22,780 and let's all just get along and fix these things. 261 00:13:22,920 --> 00:13:25,020 Because, you know, I don't really like playing this game. 262 00:13:25,160 --> 00:13:28,080 I'm getting old, you know, 30, balding a little bit. 263 00:13:29,660 --> 00:13:32,000 So this is some other press-worthy stuff. 264 00:13:33,920 --> 00:13:35,920 Regarding the security flaw disclosure. 265 00:13:36,140 --> 00:13:38,020 Actually, this is about a Google desktop thing that I found, 266 00:13:38,100 --> 00:13:41,820 unrelated to this particular topic, but just some context. 267 00:13:42,440 --> 00:13:43,740 Regarding the security flaw disclosure, 268 00:13:43,980 --> 00:13:45,980 Mr. Merrill, who was their CIO, 269 00:13:46,140 --> 00:13:47,660 I think he just recently left a couple months ago, 270 00:13:47,740 --> 00:13:49,820 or something, says that Google hasn't provided much 271 00:13:49,820 --> 00:13:51,640 because consumers, its primary users today, 272 00:13:51,720 --> 00:13:54,020 often aren't tech-savvy enough to understand security bulletins 273 00:13:54,020 --> 00:13:55,500 and find them distracting and confusing. 274 00:13:56,380 --> 00:13:57,800 They're very distracting. 275 00:13:58,200 --> 00:13:59,920 All this security stuff. 276 00:14:00,400 --> 00:14:01,460 And all of you, 277 00:14:01,520 --> 00:14:03,100 you're too stupid to understand 278 00:14:03,100 --> 00:14:04,580 all the security stuff. 279 00:14:05,800 --> 00:14:07,540 So because Google fixes, 280 00:14:08,420 --> 00:14:09,860 because it's something they make on the servers, 281 00:14:09,960 --> 00:14:10,640 or deemed invisible, 282 00:14:11,000 --> 00:14:12,420 they shouldn't have to tell you guys. 283 00:14:14,200 --> 00:14:15,560 And another thing, 284 00:14:15,760 --> 00:14:16,800 phishing problem. 285 00:14:18,380 --> 00:14:20,080 We were talking about something else, 286 00:14:20,120 --> 00:14:21,260 but news.com basically said, 287 00:14:21,420 --> 00:14:24,180 in the two months since our snake first made its concerns public, 288 00:14:24,320 --> 00:14:26,500 no one from Google has publicly disputed anything he's said. 289 00:14:27,120 --> 00:14:28,100 So it turns out, 290 00:14:28,520 --> 00:14:28,920 yesterday, 291 00:14:29,320 --> 00:14:30,540 or two days ago, 292 00:14:30,740 --> 00:14:33,160 Google did dispute something I said. 293 00:14:33,260 --> 00:14:33,660 Finally. 294 00:14:33,800 --> 00:14:36,180 So it's been four years and they finally said, 295 00:14:36,300 --> 00:14:37,220 we don't agree with you. 296 00:14:37,880 --> 00:14:39,940 And the one thing they said they don't agree with, 297 00:14:39,980 --> 00:14:42,140 not any of the actual security stuff, 298 00:14:42,380 --> 00:14:44,320 that they do agree with me on, I guess. 299 00:14:44,660 --> 00:14:46,700 But the thing they, and by the way, it's funny, 300 00:14:47,740 --> 00:14:48,340 they don't agree with me and tell me that, 301 00:14:48,420 --> 00:14:49,660 they told the Associated Press. 302 00:14:50,520 --> 00:14:53,320 So there I ran, and I'm the United States, 303 00:14:53,340 --> 00:14:54,940 and the Associated Press is Syria. 304 00:14:55,340 --> 00:14:58,000 So we're doing this three trifecta thing now, 305 00:14:58,060 --> 00:14:59,280 where I can't talk directly to them, 306 00:14:59,340 --> 00:15:00,620 I gotta go through Associated Press, 307 00:15:00,740 --> 00:15:01,220 or you guys. 308 00:15:02,040 --> 00:15:02,860 So here we are. 309 00:15:03,480 --> 00:15:06,120 And the thing they didn't like about what I said, 310 00:15:06,180 --> 00:15:07,340 is that they said, 311 00:15:07,480 --> 00:15:10,880 in the very few cases that they found malicious software on Gmodules, 312 00:15:11,520 --> 00:15:12,820 implying that it has happened, 313 00:15:13,440 --> 00:15:15,100 they were able to quickly take it down. 314 00:15:16,260 --> 00:15:16,660 So, 315 00:15:17,740 --> 00:15:18,360 Tom, I don't know, 316 00:15:18,460 --> 00:15:20,300 did you ever have your Gmodules taken offline? 317 00:15:20,560 --> 00:15:20,920 No. 318 00:15:21,220 --> 00:15:23,420 I haven't had mine taken offline. 319 00:15:23,520 --> 00:15:24,460 I took my own offline, 320 00:15:24,640 --> 00:15:26,200 because there's a long story, 321 00:15:26,280 --> 00:15:27,840 but I have Jeremiah's password in one of them. 322 00:15:31,180 --> 00:15:32,800 So we're just kind of exacerbating 323 00:15:32,800 --> 00:15:33,740 some of the other problems, 324 00:15:34,700 --> 00:15:36,600 and we have to kind of go, like I said, 325 00:15:36,620 --> 00:15:37,300 pretty quick through this, 326 00:15:37,420 --> 00:15:39,920 but Google is and will be, 327 00:15:40,040 --> 00:15:42,640 and always has been vulnerable. 328 00:15:43,440 --> 00:15:45,080 They haven't been open about with consumers, 329 00:15:45,400 --> 00:15:46,820 they haven't fixed them in a timely manner, 330 00:15:48,300 --> 00:15:49,020 and remember, 331 00:15:49,200 --> 00:15:50,220 if you share it with us, 332 00:15:50,300 --> 00:15:50,860 we will fix it. 333 00:15:50,980 --> 00:15:55,060 So we shared a couple different vulnerabilities on Tuesday, 334 00:15:55,180 --> 00:15:55,960 which you'll also see, 335 00:15:56,100 --> 00:15:57,720 and I still haven't been told the timeline, 336 00:15:57,900 --> 00:15:59,600 so we know this is not a true statement. 337 00:16:00,200 --> 00:16:02,300 It certainly hasn't happened for any of the redirection stuff. 338 00:16:02,480 --> 00:16:03,960 They have fixed some of them, 339 00:16:04,060 --> 00:16:05,340 but they haven't told me when, 340 00:16:05,420 --> 00:16:07,720 they haven't interacted with me on that level. 341 00:16:09,320 --> 00:16:10,040 And ultimately, 342 00:16:10,080 --> 00:16:12,260 this all comes down to the fact that they just want to track you guys. 343 00:16:12,680 --> 00:16:12,940 So. 344 00:16:16,500 --> 00:16:17,880 What's up, DEF CON? 345 00:16:20,560 --> 00:16:24,460 I really don't see enough beer in anyone's hands. 346 00:16:25,140 --> 00:16:26,500 I don't know what's happening. 347 00:16:26,820 --> 00:16:27,720 This is terrible. 348 00:16:28,100 --> 00:16:29,080 Oh, good, good. 349 00:16:29,200 --> 00:16:29,540 Good, good. 350 00:16:29,900 --> 00:16:32,560 So this slide is really the, 351 00:16:32,660 --> 00:16:36,340 it really summarizes the essence of our talk, 352 00:16:36,480 --> 00:16:38,640 and it boils down to if today, 353 00:16:38,860 --> 00:16:42,400 most malware is specifically engineered for Windows, 354 00:16:42,620 --> 00:16:42,920 and it's not just for Windows, 355 00:16:42,940 --> 00:16:44,000 in the future, 356 00:16:44,700 --> 00:16:47,380 malware will be specifically engineered for the web. 357 00:16:47,700 --> 00:16:48,880 And I don't think there could be 358 00:16:48,880 --> 00:16:49,960 a more true statement, 359 00:16:50,120 --> 00:16:51,560 and this is a PDP quoting 360 00:16:52,220 --> 00:16:53,740 someone from his blog. 361 00:16:54,400 --> 00:16:56,820 And so our speech is really forward-looking 362 00:16:56,820 --> 00:16:57,560 in this regard, 363 00:16:57,720 --> 00:16:59,760 and while Robert's introduction was essential 364 00:16:59,760 --> 00:17:01,520 to give you the background and the motivation, 365 00:17:01,880 --> 00:17:03,740 there's actually a larger issue 366 00:17:03,740 --> 00:17:05,440 that we'd like to draw your attention to. 367 00:17:05,620 --> 00:17:07,380 But before we go and talk about that, 368 00:17:07,940 --> 00:17:09,700 I just want to be clear about 369 00:17:09,700 --> 00:17:11,040 what's at stake. 370 00:17:12,940 --> 00:17:16,940 Is the gadget XML construction 371 00:17:18,040 --> 00:17:20,000 that you actually create 372 00:17:20,000 --> 00:17:21,360 when you write your own gadget 373 00:17:21,360 --> 00:17:22,280 and this gets hosted. 374 00:17:22,540 --> 00:17:24,560 So in the CDATA section of the gadget, 375 00:17:24,780 --> 00:17:26,440 you can instantiate arbitrary 376 00:17:26,440 --> 00:17:28,260 JavaScript and HTML. 377 00:17:28,540 --> 00:17:30,440 If you browse to this URL directly, 378 00:17:31,060 --> 00:17:31,980 it'll execute. 379 00:17:32,960 --> 00:17:35,220 This is one dimension of the problem. 380 00:17:35,320 --> 00:17:36,680 It's also a dimension which leads 381 00:17:36,680 --> 00:17:38,920 to phishing attacks and content spoofing. 382 00:17:39,020 --> 00:17:40,800 But there's an entirely other dimension. 383 00:17:41,060 --> 00:17:42,760 It's what we're calling gMalware. 384 00:17:42,940 --> 00:17:44,520 Because we think that sounds like 385 00:17:44,520 --> 00:17:46,400 a Google-trusted type of malware. 386 00:17:48,800 --> 00:17:50,140 And the idea is, 387 00:17:50,320 --> 00:17:51,460 it's just a bad gadget. 388 00:17:51,720 --> 00:17:54,340 Now is this a problem today? 389 00:17:54,460 --> 00:17:56,060 Is it rampant? No. 390 00:17:57,320 --> 00:17:58,220 All of the 391 00:17:59,260 --> 00:18:00,860 bad gadgets that we'll show you 392 00:18:00,860 --> 00:18:01,960 we created in the lab. 393 00:18:03,440 --> 00:18:04,640 That being said, 394 00:18:04,940 --> 00:18:06,220 the potential is there 395 00:18:06,220 --> 00:18:08,340 and it really points to a wider problem. 396 00:18:09,860 --> 00:18:11,260 I'm going to skip a few slides 397 00:18:11,260 --> 00:18:12,740 just so that we can get to the movies. 398 00:18:12,940 --> 00:18:14,440 Because they rock. 399 00:18:16,540 --> 00:18:18,520 But the broader issue at stake 400 00:18:18,520 --> 00:18:20,700 really has nothing to do with Google at all. 401 00:18:20,940 --> 00:18:22,820 But it's the business end 402 00:18:22,820 --> 00:18:24,980 of the crack pipe of Web 2.0. 403 00:18:25,100 --> 00:18:25,620 Right? 404 00:18:26,840 --> 00:18:28,600 And it is that 405 00:18:28,600 --> 00:18:30,660 everyone should be able to create their 406 00:18:30,660 --> 00:18:31,880 custom content 407 00:18:31,880 --> 00:18:34,860 and share this and be interactive 408 00:18:34,860 --> 00:18:36,080 and form communities. 409 00:18:36,200 --> 00:18:37,660 And you have this 410 00:18:39,380 --> 00:18:40,580 situation where 411 00:18:40,580 --> 00:18:42,840 you are empowering users 412 00:18:42,840 --> 00:18:44,000 in the form of gadgets 413 00:18:44,000 --> 00:18:45,480 or widgets or whatever 414 00:18:45,480 --> 00:18:47,180 and whatever you're talking about 415 00:18:47,180 --> 00:18:48,700 Facebook or Google or anything 416 00:18:48,700 --> 00:18:51,860 as long as there's code written by 417 00:18:51,860 --> 00:18:53,240 untrusted third parties 418 00:18:53,240 --> 00:18:54,840 that anyone can contribute to 419 00:18:54,840 --> 00:18:56,880 once the profit motive is there 420 00:18:56,880 --> 00:18:59,260 then the malware incentive will exist. 421 00:18:59,940 --> 00:19:02,580 So no, there's not a lot of gadget-based malware today. 422 00:19:03,880 --> 00:19:04,520 But 423 00:19:04,520 --> 00:19:06,520 the potential exists 424 00:19:06,520 --> 00:19:08,380 and it's actually a much broader 425 00:19:08,380 --> 00:19:09,740 systemic problem. 426 00:19:10,580 --> 00:19:11,660 So what about Google gadgets? 427 00:19:11,920 --> 00:19:12,900 Well, they're simple to build. 428 00:19:13,040 --> 00:19:14,640 You can run them on multiple sites. 429 00:19:14,860 --> 00:19:17,140 We'll talk about those in just the next slide. 430 00:19:17,440 --> 00:19:19,080 And in Google's own words, 431 00:19:19,140 --> 00:19:21,440 they have the potential to reach millions of users. 432 00:19:22,120 --> 00:19:23,840 So, you know, high volume. 433 00:19:24,540 --> 00:19:26,600 I think it's important for you to understand 434 00:19:26,600 --> 00:19:28,500 that Google's vision 435 00:19:28,500 --> 00:19:30,340 for gadgets is actually pretty cool. 436 00:19:31,880 --> 00:19:32,660 They speak 437 00:19:32,660 --> 00:19:34,760 about it often in ideological terms. 438 00:19:34,900 --> 00:19:36,560 So I'm going to just go through a number of points 439 00:19:36,560 --> 00:19:37,780 that really summarize 440 00:19:37,780 --> 00:19:39,820 what I think of as the spiritual heart 441 00:19:40,580 --> 00:19:41,660 of the idea of gadgets. 442 00:19:41,840 --> 00:19:44,120 And one is that they should spread via the social graph 443 00:19:44,120 --> 00:19:45,580 in a viral way. 444 00:19:45,720 --> 00:19:47,260 And this is really sort of a word of mouth, 445 00:19:47,380 --> 00:19:49,060 blogosphere way of spreading gadgets 446 00:19:49,060 --> 00:19:50,640 so that everyone ends up using them. 447 00:19:51,040 --> 00:19:53,660 They're decentralized. They're also cached. 448 00:19:53,780 --> 00:19:55,520 They're distributed so that if your gadget 449 00:19:55,520 --> 00:19:56,580 becomes a big hit overnight, 450 00:19:56,960 --> 00:19:59,320 it isn't going to crash some server 451 00:19:59,320 --> 00:20:00,980 if everyone's using it because of the way 452 00:20:00,980 --> 00:20:02,040 the architecture's built. 453 00:20:03,100 --> 00:20:06,080 There's a fundamental idea of content-rich self-expression 454 00:20:06,080 --> 00:20:07,640 and that's really where Google comes back 455 00:20:07,640 --> 00:20:10,200 and says, yeah, that's why the arbitrary JavaScript 456 00:20:10,580 --> 00:20:11,640 and HTML is needed. 457 00:20:13,060 --> 00:20:14,520 Over time, gadgets 458 00:20:14,520 --> 00:20:16,240 are supposed to dynamically change. 459 00:20:16,420 --> 00:20:18,100 And that means that as each of us in this room 460 00:20:18,100 --> 00:20:19,400 have our own favorite gadget, 461 00:20:19,520 --> 00:20:21,020 and we're using the same gadget, 462 00:20:21,200 --> 00:20:23,600 that as we use it, the gadgets can collaborate 463 00:20:23,600 --> 00:20:25,960 and ultimately the states 464 00:20:25,960 --> 00:20:27,920 of our individual gadgets will change 465 00:20:27,920 --> 00:20:29,660 to reflect, say, our own opinions. 466 00:20:29,840 --> 00:20:32,320 And Google calls this the social graph. 467 00:20:33,140 --> 00:20:33,640 Right? 468 00:20:33,840 --> 00:20:35,560 And it's essentially an objective, 469 00:20:35,840 --> 00:20:37,740 what you might think of as an objective tap 470 00:20:37,740 --> 00:20:39,880 into the collective behaviors of the gadget 471 00:20:40,580 --> 00:20:41,560 over a base of users. 472 00:20:41,980 --> 00:20:44,360 The idea is to expose the activity stream 473 00:20:44,360 --> 00:20:46,320 and to be able to create sort of 474 00:20:46,320 --> 00:20:48,120 visualizations of that and show, 475 00:20:48,220 --> 00:20:50,640 oh, look, this is the activity of the gadget. 476 00:20:51,700 --> 00:20:52,580 Finally, you know, 477 00:20:52,600 --> 00:20:53,980 gadgets wouldn't be very interesting 478 00:20:53,980 --> 00:20:55,220 if they couldn't drive communication. 479 00:20:55,880 --> 00:20:58,040 The ultimate idea is that we should really 480 00:20:58,360 --> 00:21:00,640 use these and form communities around them, 481 00:21:00,780 --> 00:21:01,940 whether it's 482 00:21:03,660 --> 00:21:04,700 smaller communities 483 00:21:04,700 --> 00:21:05,980 or larger communities. 484 00:21:06,120 --> 00:21:08,080 The idea is that people participate 485 00:21:08,080 --> 00:21:09,820 in a gadget system 486 00:21:10,580 --> 00:21:12,680 and that gadgets should solve real-world problems 487 00:21:12,680 --> 00:21:14,920 and ultimately generate revenue. 488 00:21:15,060 --> 00:21:16,180 Google has seed money. 489 00:21:16,400 --> 00:21:18,200 I think it's $100,000 490 00:21:18,200 --> 00:21:20,720 for anyone that proposes 491 00:21:20,720 --> 00:21:21,780 to them a business plan 492 00:21:22,580 --> 00:21:24,520 where there's 493 00:21:24,520 --> 00:21:26,200 serious revenue-generating capabilities 494 00:21:26,200 --> 00:21:27,120 of a gadget. 495 00:21:27,320 --> 00:21:29,460 So the point being there is that 496 00:21:29,460 --> 00:21:32,360 once money actually starts 497 00:21:32,360 --> 00:21:33,320 flowing through 498 00:21:33,320 --> 00:21:36,640 and once the financial incentive for malware exists, 499 00:21:36,960 --> 00:21:37,880 then you're going to start seeing 500 00:21:37,880 --> 00:21:39,520 more of this type of thing pop up. 501 00:21:42,760 --> 00:21:43,200 Yeah. 502 00:21:43,380 --> 00:21:43,940 And I mean, 503 00:21:44,020 --> 00:21:46,660 we already have the idea 504 00:21:46,660 --> 00:21:48,020 of phishing, 505 00:21:48,040 --> 00:21:49,820 and it's already being actively used. 506 00:21:50,460 --> 00:21:51,920 Robert, speak to that. 507 00:21:52,100 --> 00:21:54,040 But that's not a good business model. 508 00:21:54,120 --> 00:21:55,300 That won't get you the $100,000. 509 00:21:55,660 --> 00:21:56,620 Try something else. 510 00:21:59,440 --> 00:22:00,540 So where can you 511 00:22:00,540 --> 00:22:01,280 put your gadgets? 512 00:22:01,560 --> 00:22:03,160 Well, you can put them on iGoogle, 513 00:22:03,260 --> 00:22:04,100 your iGoogle homepage. 514 00:22:04,420 --> 00:22:06,000 You can put them on arbitrary websites. 515 00:22:06,780 --> 00:22:09,280 You can build them to interoperate with, like, 516 00:22:10,580 --> 00:22:11,300 your web and social API. 517 00:22:12,120 --> 00:22:14,160 Or you can create them 518 00:22:14,160 --> 00:22:15,540 to interact with your desktop, 519 00:22:17,340 --> 00:22:18,300 which foreshadows 520 00:22:18,300 --> 00:22:20,560 a lot of the problems that we're likely to see. 521 00:22:20,900 --> 00:22:22,740 So what are the high-level security concerns? 522 00:22:23,040 --> 00:22:23,920 When Robert and I 523 00:22:23,920 --> 00:22:24,980 set out to do this speech, 524 00:22:25,140 --> 00:22:26,740 we really just sort of scratched our head 525 00:22:26,740 --> 00:22:28,640 and said, what a priori, 526 00:22:28,640 --> 00:22:30,620 what are the problems we expect to find? 527 00:22:30,760 --> 00:22:31,820 Now, we made a long list, 528 00:22:31,880 --> 00:22:34,280 and we actually created proof of concepts 529 00:22:34,280 --> 00:22:35,320 and discovered vulnerabilities 530 00:22:35,320 --> 00:22:37,620 that closely matched our initial expectations. 531 00:22:40,580 --> 00:22:41,860 This can be easily weaponized. 532 00:22:42,140 --> 00:22:44,040 You can turn them into payloads. 533 00:22:44,120 --> 00:22:46,180 And by a payload, I mean specifically that, 534 00:22:46,260 --> 00:22:48,220 a malicious gadget designed to deliver 535 00:22:48,220 --> 00:22:50,680 a particular type of malicious code 536 00:22:50,680 --> 00:22:51,680 to the user, 537 00:22:51,820 --> 00:22:53,760 whether it's Flash or JavaScript or whatnot. 538 00:22:54,560 --> 00:22:55,820 They're written by 539 00:22:55,820 --> 00:22:57,940 who the hell knows who, you know? 540 00:22:59,000 --> 00:23:00,840 Third-party code can be contributed, 541 00:23:00,960 --> 00:23:02,940 and this is part of the Web 2.0 vision, right? 542 00:23:03,140 --> 00:23:04,540 But the end result 543 00:23:04,540 --> 00:23:06,720 is that you really have to 544 00:23:06,720 --> 00:23:08,100 stretch hard to find accountability 545 00:23:08,100 --> 00:23:09,820 within the gadget community, 546 00:23:10,580 --> 00:23:11,260 and who wrote it, 547 00:23:11,340 --> 00:23:13,800 and can I have some level of assurance 548 00:23:13,800 --> 00:23:15,920 as a user that I'm getting 549 00:23:15,920 --> 00:23:17,620 what I think I'm getting 550 00:23:17,620 --> 00:23:18,680 when I use this gadget? 551 00:23:20,740 --> 00:23:22,320 What we will show you 552 00:23:22,320 --> 00:23:23,940 is that within iGoogle, 553 00:23:23,980 --> 00:23:26,580 within your iGoogle homepage, 554 00:23:26,960 --> 00:23:28,420 gadgets can attack one another, 555 00:23:28,600 --> 00:23:31,000 and they can potentially attack the desktop. 556 00:23:31,900 --> 00:23:32,800 And of course, 557 00:23:32,800 --> 00:23:33,800 they can have the same vulnerabilities 558 00:23:33,800 --> 00:23:34,840 as most web apps. 559 00:23:35,080 --> 00:23:37,200 So I just would like to present to you 560 00:23:37,200 --> 00:23:39,280 a basic warning, so that there are 561 00:23:40,580 --> 00:23:41,060 no risks. 562 00:23:41,060 --> 00:23:42,840 It does suggest that there's 563 00:23:42,840 --> 00:23:44,240 a potential risk there with gadgets. 564 00:23:44,580 --> 00:23:46,600 For instance, most of our gadgets 565 00:23:46,600 --> 00:23:47,980 are created by third parties. 566 00:23:48,120 --> 00:23:49,480 If you have questions or concerns 567 00:23:49,480 --> 00:23:51,140 about the functionality or content, 568 00:23:51,380 --> 00:23:54,100 contact the author, right? 569 00:23:54,200 --> 00:23:56,620 That doesn't really do you very much good 570 00:23:56,620 --> 00:23:58,580 if you have a malicious gadget 571 00:23:58,580 --> 00:23:59,980 that's tracking your behavior. 572 00:24:00,400 --> 00:24:02,380 You think the author is going to be sympathetic? 573 00:24:02,760 --> 00:24:03,660 No, of course not. 574 00:24:06,620 --> 00:24:08,140 From a high-level perspective, 575 00:24:08,340 --> 00:24:09,880 I'm just going to breeze through these. 576 00:24:10,580 --> 00:24:11,860 There's issues in gadgets with 577 00:24:11,860 --> 00:24:14,000 JavaScript, HTML, and script injection. 578 00:24:14,820 --> 00:24:16,480 There's the potential for 579 00:24:16,480 --> 00:24:18,560 defacement of one gadget 580 00:24:18,560 --> 00:24:20,160 or manipulating its content 581 00:24:20,160 --> 00:24:21,320 through poisoning. 582 00:24:21,900 --> 00:24:23,440 And this is kind of a weird thing, 583 00:24:23,560 --> 00:24:24,980 but if you can imagine scenarios 584 00:24:24,980 --> 00:24:26,640 with cross-site request forgery 585 00:24:26,640 --> 00:24:28,700 where the gadgets themselves 586 00:24:28,700 --> 00:24:31,180 are measuring, say, some 587 00:24:32,440 --> 00:24:34,000 rating or approval 588 00:24:34,000 --> 00:24:35,680 or some voting process, 589 00:24:35,980 --> 00:24:37,140 and that there would be ways 590 00:24:37,140 --> 00:24:39,540 to manipulate gadgets in order to skew that 591 00:24:40,580 --> 00:24:41,060 to somebody or the other 592 00:24:41,060 --> 00:24:42,100 that's in the voting queue. 593 00:24:43,840 --> 00:24:46,400 You can spoof gateways very easily, 594 00:24:46,560 --> 00:24:48,620 and it's not always clear 595 00:24:48,620 --> 00:24:49,840 whether your connection is secure 596 00:24:49,840 --> 00:24:50,740 when you're using them. 597 00:24:51,020 --> 00:24:52,820 But ultimately, and this really speaks 598 00:24:52,820 --> 00:24:57,640 to the fresh brand of gadget malware 599 00:24:57,640 --> 00:24:58,900 that Robert has created, 600 00:24:59,040 --> 00:25:00,500 because you can perform surveillance 601 00:25:00,500 --> 00:25:02,240 in a very invasive manner, 602 00:25:02,400 --> 00:25:04,760 and you can also create exposures. 603 00:25:04,960 --> 00:25:06,660 Finally, there's a whole range 604 00:25:06,660 --> 00:25:08,120 of bad things. 605 00:25:08,200 --> 00:25:10,160 Hopefully our videos will speak 606 00:25:10,580 --> 00:25:12,760 to that, and the underlying point 607 00:25:12,760 --> 00:25:14,460 is that it's not that 608 00:25:14,460 --> 00:25:16,360 gadgets are bad 609 00:25:16,360 --> 00:25:17,520 and should never have been created, 610 00:25:17,700 --> 00:25:20,400 but that if you're someone with malicious intent, 611 00:25:20,820 --> 00:25:22,140 you can really 612 00:25:22,140 --> 00:25:24,380 do some very dangerous things. 613 00:25:26,120 --> 00:25:28,080 I really loved this because 614 00:25:28,080 --> 00:25:30,100 I was poking around 615 00:25:30,100 --> 00:25:31,960 creating some gadgets, 616 00:25:32,080 --> 00:25:32,960 and this was actually 617 00:25:32,960 --> 00:25:35,740 a testing container for gadgets. 618 00:25:35,960 --> 00:25:37,040 And if you'll look up here, 619 00:25:37,740 --> 00:25:40,140 this was Google's coders completely. 620 00:25:40,580 --> 00:25:42,540 It has the option to do evil. 621 00:25:45,560 --> 00:25:47,000 And Robert created 622 00:25:47,000 --> 00:25:48,200 the sort of Shakespeare 623 00:25:48,200 --> 00:25:50,780 Pearl version of the humor 624 00:25:50,780 --> 00:25:51,860 there for you to appreciate. 625 00:25:53,220 --> 00:25:54,620 But I just found that to be 626 00:25:54,620 --> 00:25:55,940 absolutely freaking hilarious. 627 00:25:58,020 --> 00:25:59,460 So the advanced API 628 00:25:59,460 --> 00:26:01,060 digs down into the desktop, 629 00:26:01,280 --> 00:26:02,300 really mucks around there, 630 00:26:02,500 --> 00:26:05,500 and the important point 631 00:26:05,500 --> 00:26:06,680 to take home 632 00:26:06,680 --> 00:26:08,680 is that there is the potential 633 00:26:08,680 --> 00:26:10,380 for these little mini applications 634 00:26:10,580 --> 00:26:12,440 that exist 635 00:26:12,440 --> 00:26:14,180 on your iGoogle homepage 636 00:26:15,040 --> 00:26:16,820 to interact with your desktop. 637 00:26:17,300 --> 00:26:17,800 Right? 638 00:26:18,360 --> 00:26:20,180 Now, maybe you 639 00:26:20,180 --> 00:26:22,000 see the big warning there 640 00:26:22,000 --> 00:26:23,260 when you read and you say, 641 00:26:23,360 --> 00:26:24,680 well, maybe I don't want to install 642 00:26:24,680 --> 00:26:26,040 the performance-o-meter, 643 00:26:26,240 --> 00:26:28,100 but actually it's not so clear-cut 644 00:26:28,100 --> 00:26:29,640 in the wild because we can create 645 00:26:29,640 --> 00:26:31,460 some very malicious gadgets 646 00:26:31,460 --> 00:26:33,500 that you may not even know you've added. 647 00:26:35,180 --> 00:26:37,100 So, thought experiment time. 648 00:26:38,100 --> 00:26:39,500 The people's gadget. 649 00:26:40,580 --> 00:26:41,500 The reason why I've chosen 650 00:26:41,500 --> 00:26:44,060 this topic is 651 00:26:44,340 --> 00:26:46,460 because there's no better 652 00:26:46,460 --> 00:26:48,360 example of an agency 653 00:26:48,360 --> 00:26:50,280 that has coercive intent 654 00:26:50,280 --> 00:26:51,800 than a government that attempts 655 00:26:51,800 --> 00:26:54,000 to suppress certain rhetoric 656 00:26:54,000 --> 00:26:56,400 or to monitor subcultures. 657 00:26:56,840 --> 00:26:58,520 And so, this will 658 00:26:58,520 --> 00:27:00,100 just give you a framework in order to 659 00:27:00,100 --> 00:27:01,640 understand how one could use 660 00:27:01,640 --> 00:27:03,320 what you might think of as relatively 661 00:27:03,320 --> 00:27:05,280 innocuous functionality to create 662 00:27:05,280 --> 00:27:06,460 some very malicious gadgets. 663 00:27:07,440 --> 00:27:09,500 This is pure shock value, but 664 00:27:10,580 --> 00:27:12,040 this guy's about to get run over 665 00:27:12,040 --> 00:27:13,420 by three very big gadgets. 666 00:27:14,420 --> 00:27:15,700 Are you feeling lucky? 667 00:27:20,300 --> 00:27:22,100 So, what types of 668 00:27:22,100 --> 00:27:23,460 if you think of just 669 00:27:23,460 --> 00:27:25,400 what types of innocuous functionality 670 00:27:25,400 --> 00:27:26,980 could actually become dangerous 671 00:27:26,980 --> 00:27:28,700 if your intent was to spy 672 00:27:28,700 --> 00:27:31,000 or your intent was to be coercive? 673 00:27:31,180 --> 00:27:32,880 Well, even something as simple as 674 00:27:32,880 --> 00:27:34,840 monitoring the incoming feeds that 675 00:27:34,840 --> 00:27:37,120 you're pulling in from website for content, 676 00:27:38,330 --> 00:27:40,340 counting word frequencies, and actually 677 00:27:40,580 --> 00:27:42,500 determining if the content is subversive. 678 00:27:42,880 --> 00:27:44,640 You could actually have a gadget 679 00:27:44,640 --> 00:27:46,740 that is uploading your IP address 680 00:27:46,740 --> 00:27:48,840 and the search terms that you're using. 681 00:27:49,540 --> 00:27:50,660 They'll show you that. 682 00:27:51,060 --> 00:27:52,700 You can have a gadget that actually 683 00:27:52,700 --> 00:27:54,660 looks in spiders' websites that 684 00:27:54,660 --> 00:27:56,560 you retrieve content from, 685 00:27:56,740 --> 00:27:58,580 and so that this gadget could 686 00:27:58,580 --> 00:28:00,600 actually determine to build a picture 687 00:28:00,600 --> 00:28:03,440 of the world around itself. 688 00:28:03,700 --> 00:28:04,540 Now, it shouldn't be lost 689 00:28:04,540 --> 00:28:06,360 that gadgets of this nature can also 690 00:28:06,360 --> 00:28:08,300 spider and crawl your internal network. 691 00:28:08,500 --> 00:28:10,460 So, while you're happily surfing away 692 00:28:10,580 --> 00:28:12,380 at iGoogle, this thing is 693 00:28:12,780 --> 00:28:13,880 plunking away at your internet. 694 00:28:14,960 --> 00:28:16,440 I don't think there's 695 00:28:16,440 --> 00:28:17,880 much more to say on that. 696 00:28:18,720 --> 00:28:20,460 Some of the serious problems boil down 697 00:28:20,460 --> 00:28:21,860 to cross-site request forgery. 698 00:28:22,020 --> 00:28:23,660 I'm not going to spend a lot of time on this slide 699 00:28:23,660 --> 00:28:24,580 because I have a movie, Robert. 700 00:28:24,700 --> 00:28:25,680 Do you want to speak to anything? 701 00:28:25,840 --> 00:28:28,100 Just very briefly, a couple of them. 702 00:28:28,540 --> 00:28:30,740 So, the one that you can see, it's some-site.cn. 703 00:28:31,880 --> 00:28:33,640 So, one thing about the Chinese firewall 704 00:28:33,640 --> 00:28:35,160 is if you send certain packets through, 705 00:28:35,720 --> 00:28:37,620 like the word Falun, which is Falun Gong, 706 00:28:37,880 --> 00:28:39,060 which is sort of like Tai Chi 707 00:28:40,940 --> 00:28:41,380 or something like that, 708 00:28:41,380 --> 00:28:43,620 if you send that across the wire, 709 00:28:43,740 --> 00:28:45,360 the Chinese firewall will shunt you 710 00:28:45,360 --> 00:28:46,700 for like five minutes or something. 711 00:28:46,920 --> 00:28:49,320 So, if my business happens to do a lot of business 712 00:28:49,320 --> 00:28:50,900 while going through a single NATed IP address, 713 00:28:51,080 --> 00:28:52,900 I can basically essentially DOS you 714 00:28:52,900 --> 00:28:55,680 from connecting to your supply chain management 715 00:28:55,680 --> 00:28:56,560 or whatever in China. 716 00:28:57,100 --> 00:28:58,840 And another one is like child pornography. 717 00:28:59,440 --> 00:29:00,700 There's a couple cases of that 718 00:29:00,700 --> 00:29:03,100 where somebody was inadvertently downloaded 719 00:29:03,100 --> 00:29:04,640 or got some spyware or whatever. 720 00:29:04,900 --> 00:29:06,240 You guys have all heard those cases. 721 00:29:06,400 --> 00:29:09,440 But one example is I don't necessarily have to even know 722 00:29:10,580 --> 00:29:12,020 I just have to construct enough query strings, 723 00:29:12,200 --> 00:29:13,080 send you through whatever, 724 00:29:13,400 --> 00:29:14,680 and you end up on those pages. 725 00:29:14,900 --> 00:29:16,100 And it turns out I'm pretty good at guessing 726 00:29:16,100 --> 00:29:17,220 what child pornography contains. 727 00:29:18,860 --> 00:29:21,100 So, SQL injection, remote file includes, 728 00:29:21,380 --> 00:29:21,820 all that stuff. 729 00:29:21,940 --> 00:29:23,800 I can force you to connect to any internal websites 730 00:29:23,800 --> 00:29:24,440 or external. 731 00:29:24,660 --> 00:29:26,040 I can force you to hack on my behalf. 732 00:29:26,220 --> 00:29:27,040 All kinds of nasty stuff. 733 00:29:27,280 --> 00:29:28,840 So, I mean, just cross request forgery. 734 00:29:28,920 --> 00:29:29,680 I think you're all aware of it. 735 00:29:29,680 --> 00:29:30,460 We'll have an example, though. 736 00:29:30,680 --> 00:29:33,120 All right, so let's get into the movies 737 00:29:33,120 --> 00:29:33,780 and we'll show you. 738 00:29:37,180 --> 00:29:39,520 The first example that I want to pull up 739 00:29:39,520 --> 00:29:41,940 and show you is an example of gMalware. 740 00:29:44,460 --> 00:29:47,880 Now, the general concept to take away 741 00:29:47,880 --> 00:29:51,360 is that you have a popular site that you suspect 742 00:29:51,360 --> 00:29:54,520 the user is going to have an account on. 743 00:29:54,840 --> 00:29:58,480 You create a gadget designed to take an action 744 00:29:58,480 --> 00:29:59,240 on that account. 745 00:29:59,680 --> 00:30:01,040 Through cross-site request forgery 746 00:30:01,040 --> 00:30:02,960 that the user isn't aware of. 747 00:30:03,140 --> 00:30:04,840 Now, in the demo I'm going to show you, 748 00:30:04,900 --> 00:30:06,180 it's really obvious. 749 00:30:06,480 --> 00:30:08,700 I made the windows, you know, 750 00:30:08,720 --> 00:30:10,280 expand to full screen and everything. 751 00:30:10,540 --> 00:30:12,960 But in real life, you don't have to see any of this. 752 00:30:13,180 --> 00:30:15,040 So, actually, what I'll show you is 753 00:30:15,580 --> 00:30:17,440 owning SinglesNet.com 754 00:30:18,100 --> 00:30:19,100 with a little gadget. 755 00:30:19,380 --> 00:30:20,880 It's actually the Hello Kitty gadget. 756 00:30:22,660 --> 00:30:23,880 So, here's our gadget. 757 00:30:24,100 --> 00:30:24,880 Click me. Hello! 758 00:30:25,100 --> 00:30:27,900 So, here we are. 759 00:30:27,980 --> 00:30:28,640 We're a player. 760 00:30:29,680 --> 00:30:30,180 We're in Bangkok, 2000. 761 00:30:30,660 --> 00:30:31,700 And we're logging in. 762 00:30:32,320 --> 00:30:34,360 So, you know, we've been, 763 00:30:34,460 --> 00:30:36,780 we're trying to get a good hookup here on SinglesNet. 764 00:30:36,920 --> 00:30:39,220 And I reported this vulnerability two years to them. 765 00:30:39,500 --> 00:30:40,460 Two years ago. 766 00:30:40,720 --> 00:30:42,840 And I'll tell you their response 767 00:30:42,840 --> 00:30:44,000 after you see the demo. 768 00:30:44,260 --> 00:30:46,360 But ultimately, you can see that here I am. 769 00:30:46,420 --> 00:30:47,580 This is my email. 770 00:30:48,300 --> 00:30:50,340 And you'll notice you can change your password. 771 00:30:50,580 --> 00:30:53,320 But you don't have to input your old password. 772 00:30:53,820 --> 00:30:54,260 Okay? 773 00:30:54,320 --> 00:30:56,040 So, you just put your new password in twice. 774 00:30:56,520 --> 00:30:59,400 And there's zero protection against cross-site request forgery. 775 00:30:59,680 --> 00:31:01,180 So, you can actually create a form 776 00:31:01,180 --> 00:31:03,220 spring-loaded by JavaScript 777 00:31:03,220 --> 00:31:04,380 mounted on a server. 778 00:31:04,540 --> 00:31:07,340 And then I just instantiate a little pop-up window in JavaScript. 779 00:31:07,340 --> 00:31:08,420 Stick it off-screen. 780 00:31:08,680 --> 00:31:11,800 And so, it immediately launches a CRSF attack 781 00:31:11,800 --> 00:31:12,840 against this site. 782 00:31:13,620 --> 00:31:15,040 Having clicked the gadget, 783 00:31:15,160 --> 00:31:16,720 our password is no longer valid. 784 00:31:18,840 --> 00:31:19,600 So, now 785 00:31:19,600 --> 00:31:20,820 we're going to log in as the attacker. 786 00:31:21,080 --> 00:31:23,760 And we can log in with the same username 787 00:31:23,760 --> 00:31:25,780 or with a different email address. 788 00:31:25,980 --> 00:31:27,500 And, of course, with our brand new 789 00:31:27,500 --> 00:31:28,380 hacked password. 790 00:31:29,680 --> 00:31:31,600 And so, now you can notice that the attack 791 00:31:31,600 --> 00:31:33,000 just the gadget itself 792 00:31:33,520 --> 00:31:35,400 changed the contact email. 793 00:31:37,460 --> 00:31:38,060 So, 794 00:31:38,180 --> 00:31:39,880 this is one example 795 00:31:39,880 --> 00:31:41,940 of a piece of maliciously 796 00:31:41,940 --> 00:31:42,360 designed 797 00:31:43,760 --> 00:31:44,960 gadget technology 798 00:31:45,440 --> 00:31:47,840 that could trick the user into performing an action 799 00:31:47,840 --> 00:31:49,960 that they don't want to take. 800 00:31:50,300 --> 00:31:52,140 And it's not limited to singles.net. 801 00:31:52,200 --> 00:31:52,880 It's just that 802 00:31:53,780 --> 00:31:55,660 they are highly susceptible 803 00:31:55,660 --> 00:31:56,620 to it. 804 00:31:58,260 --> 00:31:58,860 So, 805 00:31:59,680 --> 00:32:01,600 what I said about 806 00:32:01,600 --> 00:32:03,900 my contribution to this part of our talk 807 00:32:03,900 --> 00:32:05,020 was to actually port some 808 00:32:05,020 --> 00:32:06,360 what I think of as like 809 00:32:07,440 --> 00:32:08,480 hackware, JavaScript 810 00:32:09,120 --> 00:32:11,300 to gadgets, just to see how 811 00:32:11,300 --> 00:32:12,380 far I could go. 812 00:32:12,600 --> 00:32:14,660 So, one of the things that we ported 813 00:32:14,660 --> 00:32:17,080 and in my blog, badgadgets.net 814 00:32:17,080 --> 00:32:19,540 I'll put up the links to the XML 815 00:32:19,540 --> 00:32:21,260 if you actually want to play with these 816 00:32:21,260 --> 00:32:21,960 abominations. 817 00:32:22,960 --> 00:32:24,860 But, ultimately, we ported 818 00:32:25,440 --> 00:32:27,220 PDP's Yahoo Site Explorer 819 00:32:27,220 --> 00:32:29,400 spider so that it queries the Yahoo 820 00:32:29,680 --> 00:32:31,680 page data service and gives you 821 00:32:31,680 --> 00:32:33,520 a spidering of a website 822 00:32:33,520 --> 00:32:34,360 based on that. 823 00:32:35,140 --> 00:32:37,700 And you can call external PHP scripts. 824 00:32:37,880 --> 00:32:38,660 That's just sweet. 825 00:32:39,880 --> 00:32:41,300 Especially if you want to do like a 826 00:32:41,300 --> 00:32:43,460 shotgun attack against the user's browser 827 00:32:43,460 --> 00:32:44,200 and root them. 828 00:32:45,120 --> 00:32:47,600 You can actually do that just fine with a little gadget. 829 00:32:48,500 --> 00:32:49,460 Consequently, scanning 830 00:32:49,460 --> 00:32:51,360 for this sort of thing is kind of hard because 831 00:32:51,360 --> 00:32:53,580 since they allow you to just pull up 832 00:32:53,580 --> 00:32:55,300 arbitrary content, you don't 833 00:32:55,300 --> 00:32:57,020 actually see the malicious code 834 00:32:57,560 --> 00:32:58,760 inside the gadget itself. 835 00:32:59,680 --> 00:33:01,380 We also, so this is a PHP 836 00:33:01,380 --> 00:33:03,560 spider. So in all its glory, this is 837 00:33:03,560 --> 00:33:05,560 the example of the PHP spider that 838 00:33:05,560 --> 00:33:07,280 we were talking about. So the gadget can literally 839 00:33:07,280 --> 00:33:09,500 spider your internet while you're using it without 840 00:33:09,500 --> 00:33:11,520 your knowledge. Or it can 841 00:33:11,520 --> 00:33:12,820 use Yahoo Site Explorer. 842 00:33:14,720 --> 00:33:15,220 Finally, 843 00:33:15,360 --> 00:33:16,820 I ported a port scanner. 844 00:33:18,600 --> 00:33:19,400 Once again, 845 00:33:20,160 --> 00:33:20,660 PDP 846 00:33:21,200 --> 00:33:23,700 from his attack API, I just ported 847 00:33:23,700 --> 00:33:24,840 the port scanner from there 848 00:33:25,500 --> 00:33:27,040 into a gadget. Worked 849 00:33:27,040 --> 00:33:28,900 great. Now, 850 00:33:29,680 --> 00:33:31,640 this is a picture of a fishing gadget 851 00:33:31,640 --> 00:33:33,600 and actually what you are seeing 852 00:33:33,600 --> 00:33:34,980 is 853 00:33:34,980 --> 00:33:37,200 a page rendered 854 00:33:37,200 --> 00:33:39,380 from the XML content 855 00:33:39,380 --> 00:33:41,240 of an existing gadget in the 856 00:33:41,240 --> 00:33:42,680 C data section. 857 00:33:43,100 --> 00:33:45,320 The JavaScript and HTML 858 00:33:45,320 --> 00:33:47,420 is rendering and it creates 859 00:33:47,420 --> 00:33:48,500 this fake page. 860 00:33:48,920 --> 00:33:51,440 We can use any type 861 00:33:51,440 --> 00:33:51,980 of 862 00:33:53,560 --> 00:33:55,400 coding style that we 863 00:33:55,400 --> 00:33:57,040 want to make perfect 864 00:33:57,980 --> 00:33:58,860 basically 865 00:34:00,100 --> 00:34:01,300 simulacrums of any login 866 00:34:01,300 --> 00:34:01,860 portal. 867 00:34:04,240 --> 00:34:05,660 Consequently, from some conversations 868 00:34:05,660 --> 00:34:07,640 I've had with Google, and I don't 869 00:34:07,640 --> 00:34:09,140 want to call the guy out by name because 870 00:34:09,600 --> 00:34:11,760 I actually have a pretty good working relationship 871 00:34:11,760 --> 00:34:13,500 with this guy. So I'm not trying to 872 00:34:13,500 --> 00:34:15,680 smear mud. But there's a belief 873 00:34:15,680 --> 00:34:17,460 that this just really isn't a very 874 00:34:17,460 --> 00:34:19,680 significant problem. We really kind of beg to differ. 875 00:34:19,820 --> 00:34:20,600 Do you want to add something? 876 00:34:22,080 --> 00:34:23,520 So I know this slide doesn't 877 00:34:23,520 --> 00:34:25,340 really look like a whole lot, but I think this is probably 878 00:34:25,340 --> 00:34:27,600 the most important slide in the deck, even though it doesn't look like 879 00:34:27,600 --> 00:34:29,340 much. So imagine you're 880 00:34:29,920 --> 00:34:31,220 kind of tired. 881 00:34:31,280 --> 00:34:33,700 I'll take you out of the picture. Imagine your mom 882 00:34:33,700 --> 00:34:35,480 is pretty tired in the morning. She's got her cup of 883 00:34:35,480 --> 00:34:37,440 joe, woke up a little sleepy, 884 00:34:37,560 --> 00:34:38,240 watched I Love Lucy. 885 00:34:39,380 --> 00:34:41,280 She wakes up, boots up her computer, 886 00:34:41,760 --> 00:34:43,340 double clicks the Internet Explorer icon, 887 00:34:43,480 --> 00:34:45,240 takes her to her home page, and 888 00:34:45,240 --> 00:34:47,460 it's Google. She's already authenticated 889 00:34:47,460 --> 00:34:48,460 because she never cleans out her cookies. 890 00:34:49,120 --> 00:34:50,160 She turns her back, 891 00:34:50,280 --> 00:34:52,980 takes a quick shower, something comes back, 892 00:34:53,140 --> 00:34:54,840 and she's presented with this page. 893 00:34:55,680 --> 00:34:57,200 She didn't click on a link. 894 00:34:57,360 --> 00:34:59,560 She didn't type anything in her email. 895 00:34:59,680 --> 00:35:01,980 She just clicked on a link. 896 00:35:02,080 --> 00:35:03,980 She didn't get an email. She didn't click anything. 897 00:35:04,260 --> 00:35:04,900 There's no 898 00:35:06,320 --> 00:35:07,620 user interaction required 899 00:35:07,620 --> 00:35:09,360 whatsoever. You go to Google, 900 00:35:09,480 --> 00:35:11,820 and you're immediately presented with a phishing site. 901 00:35:12,260 --> 00:35:13,560 So when they're talking 902 00:35:13,560 --> 00:35:15,520 about, you know, you can't run JavaScript 903 00:35:15,520 --> 00:35:17,240 in context of Google.com, 904 00:35:17,420 --> 00:35:19,600 who cares? I don't have to. 905 00:35:19,700 --> 00:35:21,540 I can immediately redirect you to something 906 00:35:21,540 --> 00:35:23,620 that basically every user 907 00:35:23,620 --> 00:35:25,360 is going to fall for this. There's only a very small 908 00:35:25,360 --> 00:35:27,420 handful of users, probably in this audience, 909 00:35:27,540 --> 00:35:29,440 and that's about it, who won't fall 910 00:35:29,680 --> 00:35:31,260 for this immediately. And I think actually 911 00:35:31,260 --> 00:35:33,420 quite a few people in this audience probably would anyway. 912 00:35:36,960 --> 00:35:39,460 So the final thing is, 913 00:35:39,540 --> 00:35:41,680 you know, exporting a tab to your buddy, 914 00:35:41,800 --> 00:35:43,620 and then the tab is sort of the container 915 00:35:43,620 --> 00:35:45,160 where all your gadgets live. 916 00:35:45,620 --> 00:35:47,580 What I find really telling about 917 00:35:47,580 --> 00:35:49,460 this is you can 918 00:35:49,460 --> 00:35:51,400 export your gadget, but even 919 00:35:51,400 --> 00:35:53,480 Google says, otherwise, blah, 920 00:35:53,600 --> 00:35:55,560 blah, blah. Be careful. 921 00:35:55,720 --> 00:35:56,980 Your settings can include 922 00:35:57,510 --> 00:35:58,640 private data. 923 00:35:59,680 --> 00:36:01,700 So what this tells you directly 924 00:36:01,700 --> 00:36:03,560 is that your gadget 925 00:36:03,560 --> 00:36:05,560 isn't just some private little 926 00:36:05,560 --> 00:36:07,160 world that you 927 00:36:07,640 --> 00:36:09,320 own exclusively and 928 00:36:09,320 --> 00:36:10,920 doesn't have any touchpoints 929 00:36:10,920 --> 00:36:13,380 to the Internet or the broader iGoogle 930 00:36:13,380 --> 00:36:14,920 framework. Your data 931 00:36:15,540 --> 00:36:17,660 resides within that gadget, and you can expose 932 00:36:17,660 --> 00:36:19,560 it. And I think that on that 933 00:36:19,560 --> 00:36:21,140 note, I'm going to hand it back to Robert. 934 00:36:24,080 --> 00:36:24,640 So 935 00:36:25,500 --> 00:36:27,780 we built this tiny little gadget. 936 00:36:28,040 --> 00:36:29,520 I apologize for having to use 937 00:36:29,680 --> 00:36:31,440 multiple media players here. Does anyone know 938 00:36:31,440 --> 00:36:33,280 a really good media player that plays just everything 939 00:36:33,280 --> 00:36:34,480 so I don't have to deal with this anymore? 940 00:36:35,460 --> 00:36:36,940 KM? Okay, got it. 941 00:36:38,280 --> 00:36:38,720 So 942 00:36:40,460 --> 00:36:41,600 there's two gadgets here. 943 00:36:41,860 --> 00:36:43,800 This one over here on the left 944 00:36:43,800 --> 00:36:45,560 is my little stockbroker application 945 00:36:45,560 --> 00:36:47,480 that I wrote. It just kind of 946 00:36:47,480 --> 00:36:49,400 keeps stocks, tells you how much 947 00:36:49,400 --> 00:36:50,220 stuff is worth. 948 00:36:51,400 --> 00:36:53,560 Kind of a funny side note is Google 949 00:36:53,560 --> 00:36:55,840 is $1,800 a share. 950 00:36:56,040 --> 00:36:57,620 They haven't learned how to split yet. 951 00:36:59,160 --> 00:36:59,600 And 952 00:36:59,680 --> 00:37:01,700 on the other side is the bacon 953 00:37:01,700 --> 00:37:03,320 because swine is evil. 954 00:37:04,180 --> 00:37:05,620 And so you'll notice 955 00:37:05,620 --> 00:37:07,420 they're on different domains. Now, I 956 00:37:07,420 --> 00:37:09,640 thought the different domain usage was actually 957 00:37:09,640 --> 00:37:11,560 a security function, but 958 00:37:11,560 --> 00:37:13,140 it turns out that 959 00:37:13,140 --> 00:37:15,360 I talked with somebody at Google and they said, indeed, 960 00:37:15,460 --> 00:37:17,300 it is not meant to be as a security function. 961 00:37:17,460 --> 00:37:18,740 It's actually meant for caching purposes. 962 00:37:20,160 --> 00:37:21,520 So that's good because 963 00:37:21,520 --> 00:37:23,120 it wasn't much of a security function. 964 00:37:24,300 --> 00:37:25,180 So here 965 00:37:25,180 --> 00:37:26,760 I double clicked and 966 00:37:27,400 --> 00:37:29,620 clicked on the link or whatever. I didn't have to click on a link. 967 00:37:29,680 --> 00:37:31,580 It could have just been automatic. I just did it to slow things 968 00:37:31,580 --> 00:37:32,820 down so you could see what was going on. 969 00:37:33,340 --> 00:37:35,520 And I popped up in a bunch of iframes, which are just 970 00:37:35,520 --> 00:37:37,840 all of those different domains, all the different subdomains. 971 00:37:37,900 --> 00:37:39,340 So 81 through 90. 972 00:37:39,460 --> 00:37:41,080 I just picked a range to speed things up. 973 00:37:41,780 --> 00:37:43,680 And I found one on the other domain 974 00:37:43,680 --> 00:37:46,240 which is 86.gmodules.com. 975 00:37:48,380 --> 00:37:49,420 Which immediately does a 976 00:37:49,420 --> 00:37:51,240 redirection, or immediately 977 00:37:51,240 --> 00:37:53,460 as I felt like. I think I give it like 10 seconds or something. 978 00:37:54,460 --> 00:37:55,580 And so what happened 979 00:37:55,580 --> 00:37:57,620 is I detected that there was a cookie in that other 980 00:37:58,040 --> 00:37:59,360 subdomain. So even though 981 00:37:59,680 --> 00:38:00,600 those two things are separate, 982 00:38:01,180 --> 00:38:03,620 they share common elements because 983 00:38:03,620 --> 00:38:04,800 things like cookies 984 00:38:04,800 --> 00:38:07,600 work on the entire domain. So all I had to do 985 00:38:07,600 --> 00:38:09,620 was search for something that I thought might be 986 00:38:09,620 --> 00:38:11,540 there. In this case, I wrote a really terrible 987 00:38:11,540 --> 00:38:12,740 application that used cookies. 988 00:38:13,460 --> 00:38:15,580 And I was able to steal information 989 00:38:15,580 --> 00:38:17,320 out of it, including the cookie, which 990 00:38:17,320 --> 00:38:19,180 could have login information. A lot of gadgets 991 00:38:19,180 --> 00:38:21,040 are very poorly written and have 992 00:38:22,160 --> 00:38:23,560 unencrypted, nothing. You just 993 00:38:23,560 --> 00:38:25,500 send your data to some third party who then 994 00:38:25,500 --> 00:38:27,380 authenticates for you to some other third party. 995 00:38:27,700 --> 00:38:29,100 Really scary stuff, actually. 996 00:38:30,560 --> 00:38:31,000 So 997 00:38:31,580 --> 00:38:33,580 you can see here that I've done an 998 00:38:33,580 --> 00:38:35,120 XMLHP request, grabbed everything, 999 00:38:35,660 --> 00:38:37,760 all the content of that gadget, 1000 00:38:37,900 --> 00:38:39,460 thrown it on the page just so you could see that 1001 00:38:39,460 --> 00:38:40,720 in fact it is there, 1002 00:38:40,860 --> 00:38:43,340 and rendered the content as well. So you could 1003 00:38:43,340 --> 00:38:45,420 actually see that it is indeed the same 1004 00:38:45,420 --> 00:38:47,440 gadget. Keeping 1005 00:38:47,440 --> 00:38:48,600 state was a little tricky, but 1006 00:38:48,600 --> 00:38:51,640 it turned out it was not that hard to code. 1007 00:38:52,620 --> 00:38:53,060 So 1008 00:38:53,620 --> 00:38:55,260 I can see stuff that's 1009 00:38:55,260 --> 00:38:57,300 like stock tips or whatever. In this case, 1010 00:38:57,340 --> 00:38:59,520 it says to sell on a rumor 1011 00:38:59,680 --> 00:39:00,380 of a Gmodule exploit. 1012 00:39:04,120 --> 00:39:05,240 Oh, so this is 1013 00:39:05,240 --> 00:39:07,460 I just decided, you know, 1014 00:39:07,500 --> 00:39:09,080 I've got a lot of really crazy logs. 1015 00:39:09,600 --> 00:39:11,520 So I decided to quickly parse through them 1016 00:39:11,520 --> 00:39:13,240 and see if I got anything out of Gmodules. 1017 00:39:13,500 --> 00:39:14,500 And indeed I did. 1018 00:39:15,280 --> 00:39:17,560 And this doesn't necessarily have anything 1019 00:39:17,560 --> 00:39:19,480 super sensitive in it, but this is only 1020 00:39:19,480 --> 00:39:21,300 a couple of examples, how many people are really 1021 00:39:21,300 --> 00:39:23,480 linking to me. But this easily could have 1022 00:39:23,480 --> 00:39:25,560 contained all kinds of crazy stuff. Who knows what these people 1023 00:39:25,560 --> 00:39:26,760 are putting in this URL structure. 1024 00:39:28,840 --> 00:39:29,240 So 1025 00:39:30,040 --> 00:39:31,500 you know, a lot of people are going to say, 1026 00:39:31,620 --> 00:39:33,380 you know, like, okay, you've demonstrated 1027 00:39:33,380 --> 00:39:35,160 that the gadget framework 1028 00:39:35,880 --> 00:39:36,940 potentially is dangerous, 1029 00:39:37,380 --> 00:39:39,720 but who cares? How are you going to get it into somebody's 1030 00:39:39,720 --> 00:39:41,220 iGoogle? That's the real trick, right? 1031 00:39:41,360 --> 00:39:43,260 That's why we're all here. If you can't do that, 1032 00:39:43,380 --> 00:39:45,440 this is a totally moot point. I hate conferences. 1033 00:39:45,620 --> 00:39:46,900 I hate speeches that just, you know, 1034 00:39:46,900 --> 00:39:49,140 theoretically, if I had your password, well, 1035 00:39:49,280 --> 00:39:51,560 okay. So there's 1036 00:39:51,560 --> 00:39:53,520 a couple different ways to do it. First of all, they can 1037 00:39:53,520 --> 00:39:55,360 add something that they think is good. 1038 00:39:55,420 --> 00:39:57,540 You know, a breakout. It started off being good. 1039 00:39:57,660 --> 00:39:58,820 It was a neat little gadget. 1040 00:39:59,680 --> 00:40:01,080 And then suddenly I'm like, oh, 1041 00:40:01,100 --> 00:40:03,260 I've got so many people, and then I take them all over. 1042 00:40:03,940 --> 00:40:05,400 And so that's one way. 1043 00:40:05,500 --> 00:40:07,320 Another way is that we can hack into 1044 00:40:07,320 --> 00:40:09,440 somebody else's gadget framework, you know, 1045 00:40:09,440 --> 00:40:11,220 someone else is doing that hosting, and 1046 00:40:11,220 --> 00:40:13,440 have them change their 1047 00:40:13,440 --> 00:40:15,100 thing just slightly and into something bad. 1048 00:40:15,280 --> 00:40:17,440 And it turns out websites are very easy to hack into. 1049 00:40:18,780 --> 00:40:19,620 We haven't 1050 00:40:19,620 --> 00:40:20,880 yet found one that we can't. 1051 00:40:22,260 --> 00:40:23,080 The other way, 1052 00:40:23,240 --> 00:40:25,500 and this is a bad way. I don't actually think 1053 00:40:25,500 --> 00:40:27,120 this is really hardly worth talking about, but 1054 00:40:27,680 --> 00:40:29,440 if you have cross-site scripting on Google 1055 00:40:29,680 --> 00:40:31,620 and if you have it, why would you care about this? 1056 00:40:31,940 --> 00:40:33,640 But if you had it, if it was 1057 00:40:33,640 --> 00:40:35,620 like a reflected XSS, you could use 1058 00:40:36,400 --> 00:40:37,340 this as more of a 1059 00:40:37,340 --> 00:40:39,680 persistent container for your cross-site scripting. 1060 00:40:39,740 --> 00:40:40,640 So if you need longevity, 1061 00:40:41,680 --> 00:40:43,660 like a long-term attack, and it took a long time 1062 00:40:43,660 --> 00:40:45,580 to do cycles or a lot of CPU or whatever, 1063 00:40:45,780 --> 00:40:47,580 or you wanted to test many, many, many different 1064 00:40:47,580 --> 00:40:49,160 things, well, this is one way to do it. 1065 00:40:49,700 --> 00:40:50,760 Barely worth talking about, though. 1066 00:40:51,340 --> 00:40:53,260 And we can force them to add it remotely 1067 00:40:54,780 --> 00:40:55,100 evilly. 1068 00:40:56,620 --> 00:40:56,940 So 1069 00:40:56,940 --> 00:40:58,740 we created this 1070 00:41:00,060 --> 00:41:00,560 little 1071 00:41:01,980 --> 00:41:03,580 demo. And this is a little 1072 00:41:03,580 --> 00:41:05,060 confusing to watch, and I apologize. 1073 00:41:05,440 --> 00:41:07,560 I didn't want to get on the DEF CON network and just worry 1074 00:41:07,560 --> 00:41:09,640 about demos. I have bad demo karma. 1075 00:41:10,420 --> 00:41:11,760 So the IE 1076 00:41:11,760 --> 00:41:13,700 instance is a bad guy. The Firefox 1077 00:41:13,700 --> 00:41:14,960 instance is a good guy. 1078 00:41:15,860 --> 00:41:17,240 The IE instance 1079 00:41:17,240 --> 00:41:19,740 is actually, this is Jeremiah's 1080 00:41:19,740 --> 00:41:20,480 account, long story. 1081 00:41:22,260 --> 00:41:23,560 And so I'm 1082 00:41:23,560 --> 00:41:24,740 using it to 1083 00:41:25,840 --> 00:41:27,400 contain data and 1084 00:41:27,400 --> 00:41:29,480 hold onto that account, and I'll be monitoring. 1085 00:41:29,680 --> 00:41:31,640 So you can see 1086 00:41:31,640 --> 00:41:33,280 that's vulnerability master is the 1087 00:41:33,280 --> 00:41:35,580 bad guy. And I'm in his 1088 00:41:35,580 --> 00:41:36,240 web history, 1089 00:41:37,260 --> 00:41:39,460 you know, whatever section 1090 00:41:39,460 --> 00:41:40,020 of the website. 1091 00:41:41,580 --> 00:41:43,480 So you can see, nothing up my sleeves. 1092 00:41:43,560 --> 00:41:45,280 There's nothing in there. I refreshed, and 1093 00:41:45,280 --> 00:41:47,660 in fact, there is nothing in the web history. I cleaned it out 1094 00:41:47,660 --> 00:41:49,620 just before I did this. So then 1095 00:41:49,620 --> 00:41:51,680 I refresh. Nothing there. There's no gadgets. 1096 00:41:52,120 --> 00:41:53,600 I'm in this Teddy Leyva. 1097 00:41:53,820 --> 00:41:55,820 You know, Teddy is this nice woman who's, 1098 00:41:55,940 --> 00:41:57,600 you know, doesn't want bad 1099 00:41:57,600 --> 00:41:59,540 things to happen to her. And you notice she's on the 1100 00:41:59,680 --> 00:42:01,700 hackers.org, right? So what you see here 1101 00:42:01,700 --> 00:42:03,860 is this little add it now thing that I made semi-transparent. 1102 00:42:04,020 --> 00:42:05,720 I could have made it completely transparent, but I kind of 1103 00:42:05,720 --> 00:42:06,820 wanted you guys to see what's going on. 1104 00:42:07,900 --> 00:42:09,620 Well, that's two iframes. 1105 00:42:09,780 --> 00:42:11,340 There's an iframe that's floating 1106 00:42:11,340 --> 00:42:13,540 in space that's following the mouse cursor. 1107 00:42:13,720 --> 00:42:15,640 We've all seen those things. Things trail your mouse 1108 00:42:15,640 --> 00:42:17,700 and you're like, ah! You know, it's like a little clock or something. 1109 00:42:17,920 --> 00:42:19,580 I hate that. Well, that's 1110 00:42:19,580 --> 00:42:21,560 an iframe into another iframe, which is 1111 00:42:21,560 --> 00:42:23,100 kind of positioned up into the corner. 1112 00:42:23,700 --> 00:42:25,580 So it just kind of frames exactly 1113 00:42:25,580 --> 00:42:27,380 the specific xy coordinates 1114 00:42:27,380 --> 00:42:29,660 that I need to be right under the mouse cursor. 1115 00:42:29,680 --> 00:42:31,940 And you can do it for Internet Explorer 1116 00:42:31,940 --> 00:42:33,660 or Firefox. It's just you have to deal with 1117 00:42:33,660 --> 00:42:35,740 kind of the cross and how wide it is 1118 00:42:35,740 --> 00:42:37,720 or where it's located. So when I click 1119 00:42:37,720 --> 00:42:39,100 on it, I'm not clicking on 1120 00:42:39,600 --> 00:42:41,460 my domain, hackers.org. I'm 1121 00:42:41,460 --> 00:42:42,920 clicking on Google. 1122 00:42:43,360 --> 00:42:45,480 It's a couple of iframes away, but it's still 1123 00:42:45,480 --> 00:42:46,900 that click is going 1124 00:42:47,440 --> 00:42:49,460 all the way through all those iframes to the real 1125 00:42:49,460 --> 00:42:51,560 to Google. And what it's doing is 1126 00:42:51,560 --> 00:42:52,780 it's adding a malicious gadget 1127 00:42:53,740 --> 00:42:55,180 that I've constructed, 1128 00:42:56,040 --> 00:42:57,660 which normally is supposed to be 1129 00:42:57,660 --> 00:42:59,480 off limits. I'm not supposed to be able to add 1130 00:42:59,680 --> 00:43:00,880 and force people to add my own gadgets. 1131 00:43:01,180 --> 00:43:03,220 So if you hit refresh, you can indeed see 1132 00:43:03,220 --> 00:43:05,020 that there's a new gadget here, the bacon gadget. 1133 00:43:05,160 --> 00:43:07,160 It's a different bacon gadget. And this little 1134 00:43:07,160 --> 00:43:09,440 broken link right here, or broken 1135 00:43:09,440 --> 00:43:11,460 image rather, I made it visible so you could see 1136 00:43:11,460 --> 00:43:13,380 what's going on. And this is cross-site request 1137 00:43:13,380 --> 00:43:15,420 forgery, but it's kind of same-site request 1138 00:43:15,420 --> 00:43:17,300 forgery. But what 1139 00:43:17,300 --> 00:43:19,340 it is is it's a URL 1140 00:43:19,340 --> 00:43:21,400 structure that allows you to log somebody into 1141 00:43:21,400 --> 00:43:23,460 an account. I don't know why you 1142 00:43:23,460 --> 00:43:25,160 can have all that stuff on the get string. 1143 00:43:25,500 --> 00:43:27,460 It's not really a safe way to do things anyway. 1144 00:43:28,220 --> 00:43:29,400 But you can do 1145 00:43:29,680 --> 00:43:31,420 it. So you can force somebody to log in 1146 00:43:31,420 --> 00:43:33,620 as yourself if you really felt like it, 1147 00:43:33,680 --> 00:43:35,240 which really doesn't seem like a practical attack 1148 00:43:35,240 --> 00:43:37,620 for the most part, but it turns out it's fairly useful. 1149 00:43:38,200 --> 00:43:39,480 And a side note, 1150 00:43:39,620 --> 00:43:41,460 it doesn't really matter if they fix this vulnerability 1151 00:43:41,460 --> 00:43:43,060 and stop that, because 1152 00:43:43,060 --> 00:43:45,400 I can actually, since I own this, 1153 00:43:45,500 --> 00:43:46,960 I can do form submission and 1154 00:43:47,640 --> 00:43:49,580 unless they emit a nonce or something 1155 00:43:49,580 --> 00:43:51,440 that I don't have control over, it's 1156 00:43:51,440 --> 00:43:52,580 kind of pointless to fix that. 1157 00:43:53,140 --> 00:43:54,420 I didn't find that vulnerability. 1158 00:43:54,700 --> 00:43:57,380 Stanford found it a couple of months ago, and it's still open. 1159 00:43:58,020 --> 00:43:58,420 So. 1160 00:43:59,840 --> 00:44:01,160 So you can see that 1161 00:44:01,540 --> 00:44:03,500 this image didn't render, because 1162 00:44:03,500 --> 00:44:05,400 it's not an image. And now 1163 00:44:05,400 --> 00:44:07,520 Teddy's going to type in something that's 1164 00:44:07,520 --> 00:44:08,860 very, very scary to her. 1165 00:44:09,080 --> 00:44:10,700 And she's got a little problem. 1166 00:44:12,900 --> 00:44:13,600 She has 1167 00:44:13,600 --> 00:44:14,580 herpes and they itch a lot. 1168 00:44:15,260 --> 00:44:17,540 But she's feeling lucky today. So she clicks 1169 00:44:17,540 --> 00:44:18,640 the feeling lucky button. 1170 00:44:20,360 --> 00:44:20,840 And 1171 00:44:20,840 --> 00:44:23,500 so she sees the content 1172 00:44:23,500 --> 00:44:25,520 that she's interested in. Now I'm back in the vulnerability 1173 00:44:25,520 --> 00:44:27,580 master account. And I hit refresh. 1174 00:44:27,800 --> 00:44:29,560 And indeed, here's her search 1175 00:44:29,680 --> 00:44:31,540 string. Because she's not in her 1176 00:44:31,540 --> 00:44:33,060 account anymore. She's in my account. 1177 00:44:33,400 --> 00:44:35,580 So I can subversively watch her type 1178 00:44:35,580 --> 00:44:36,600 queries in. So 1179 00:44:37,260 --> 00:44:39,580 that whole, you know, being able to 1180 00:44:40,120 --> 00:44:41,380 keep that, the 1181 00:44:41,380 --> 00:44:43,180 separation of all those things is 1182 00:44:43,180 --> 00:44:45,260 totally dependent on whether I control 1183 00:44:45,260 --> 00:44:47,280 your browser session. And if 1184 00:44:47,280 --> 00:44:49,440 I've got a Google gadget there that 1185 00:44:49,440 --> 00:44:51,520 allows me to do whatever I want, you know, it's just up 1186 00:44:51,520 --> 00:44:53,440 to my imagination about how bad I want to be. 1187 00:44:53,700 --> 00:44:55,700 So these are very simple examples. 1188 00:44:55,980 --> 00:44:57,600 This, I mean, how long do you think this took me to 1189 00:44:57,600 --> 00:44:58,560 build? You were there. 1190 00:44:59,680 --> 00:45:00,240 Two minutes. 1191 00:45:00,980 --> 00:45:03,380 Two minutes. That's not like a long time. I didn't 1192 00:45:03,380 --> 00:45:05,200 spend a lot of time on this demo. Maybe 1193 00:45:05,200 --> 00:45:07,440 arranging it and making it look nice, yeah, but not 1194 00:45:07,440 --> 00:45:09,460 building it. This is not a difficult 1195 00:45:09,460 --> 00:45:10,880 hack. You guys can do this stuff. 1196 00:45:11,200 --> 00:45:13,520 And if you can do it, that's pretty scary. 1197 00:45:13,620 --> 00:45:14,600 We need to fix that, right? 1198 00:45:15,300 --> 00:45:17,480 So anyway, that was sort of the point. 1199 00:45:17,740 --> 00:45:19,460 So yes, this is a problem. 1200 00:45:19,640 --> 00:45:21,440 It's just not being widely exploited yet. 1201 00:45:23,140 --> 00:45:25,440 So the real question is, is this expected 1202 00:45:25,440 --> 00:45:27,060 behavior? Right? 1203 00:45:27,120 --> 00:45:28,960 Are we okay with that as a community? 1204 00:45:29,680 --> 00:45:31,360 Are we okay that a gadget has complete control 1205 00:45:31,360 --> 00:45:33,400 over our desktop? A lot of consumers 1206 00:45:33,400 --> 00:45:35,560 are going to say, yes, as long 1207 00:45:35,560 --> 00:45:37,420 as it's not bad. And that's 1208 00:45:37,420 --> 00:45:39,440 the real trick, isn't it? We've got to figure out some way 1209 00:45:39,440 --> 00:45:41,560 to have a container and stop all that stuff from 1210 00:45:41,560 --> 00:45:43,480 happening. And we don't have that yet. 1211 00:45:44,440 --> 00:45:45,500 So the real 1212 00:45:45,500 --> 00:45:47,360 point is, it's bad. It may not be 1213 00:45:47,360 --> 00:45:49,420 a true vulnerability in the sense 1214 00:45:49,420 --> 00:45:51,500 that, you know, having a 1215 00:45:51,500 --> 00:45:52,780 gadget isn't a vulnerability. 1216 00:45:53,740 --> 00:45:55,700 It's bad. So if I were 1217 00:45:55,700 --> 00:45:57,440 a product manager in the Googleplex 1218 00:45:57,440 --> 00:45:59,620 and I were to say, or some guy were to come up and 1219 00:45:59,680 --> 00:46:01,200 say, hey, by the way, you can phish users, 1220 00:46:01,620 --> 00:46:03,080 you can do port scanning, 1221 00:46:03,480 --> 00:46:05,220 you can do redirection, all this stuff, 1222 00:46:05,680 --> 00:46:07,720 you know, I'm a product manager, 1223 00:46:07,820 --> 00:46:09,560 I'm going to say, you know what? Maybe we should go 1224 00:46:09,560 --> 00:46:10,960 rethink the security model a little bit. 1225 00:46:11,460 --> 00:46:12,660 So whether it's 1226 00:46:13,720 --> 00:46:15,280 actually a vulnerability or not, 1227 00:46:15,860 --> 00:46:17,540 it's bad. And that badness 1228 00:46:17,540 --> 00:46:19,660 means that we should be talking about it as a community. 1229 00:46:20,360 --> 00:46:21,560 I got a lot of flack from 1230 00:46:21,560 --> 00:46:23,620 this from Mazzano. And actually 1231 00:46:23,620 --> 00:46:25,480 I think we kind of came to a conclusion with that. 1232 00:46:25,700 --> 00:46:27,300 But I think it was mostly 1233 00:46:27,300 --> 00:46:29,540 miscommunication on my part. I didn't tell him 1234 00:46:29,680 --> 00:46:31,200 history. There's a lot of stuff going on here. 1235 00:46:31,820 --> 00:46:33,620 But, you know, I don't 1236 00:46:33,620 --> 00:46:35,520 hold anyone for blame for not understanding 1237 00:46:35,520 --> 00:46:37,080 this, why it's a problem. 1238 00:46:37,340 --> 00:46:39,620 But I think we should start talking 1239 00:46:39,620 --> 00:46:41,680 about it as kind of the wider security 1240 00:46:41,680 --> 00:46:43,620 context of the browser rather than 1241 00:46:43,620 --> 00:46:45,640 this microcosm of one 1242 00:46:45,640 --> 00:46:47,380 small widget. I mean, that's not 1243 00:46:47,380 --> 00:46:49,500 a widget that I'm worried about. It's everything 1244 00:46:49,500 --> 00:46:51,720 else. It's people's accounts. It's how the browser 1245 00:46:51,720 --> 00:46:53,660 reacts to that widget if it's under my control. 1246 00:46:54,960 --> 00:46:55,920 So redirection 1247 00:46:55,920 --> 00:46:57,680 ultimately abuses that 1248 00:46:57,680 --> 00:46:58,820 trust relationship. 1249 00:46:59,680 --> 00:47:01,500 It all comes back to that original redirection 1250 00:47:01,500 --> 00:47:03,360 problem that I was hounding them 1251 00:47:03,360 --> 00:47:05,540 for years ago. We still 1252 00:47:05,540 --> 00:47:07,600 haven't found a way to stop 1253 00:47:07,600 --> 00:47:09,540 that. And unfortunately, JavaScript 1254 00:47:09,540 --> 00:47:11,240 is still out there. 1255 00:47:11,500 --> 00:47:12,960 I was told that 1256 00:47:13,780 --> 00:47:15,440 Google did fix the 1257 00:47:15,980 --> 00:47:17,560 feeling lucky function so it's 1258 00:47:17,560 --> 00:47:18,580 no longer exploitable. 1259 00:47:19,300 --> 00:47:21,440 So I typed in arsenic into feeling lucky 1260 00:47:21,440 --> 00:47:23,960 and I hit enter and it took me to hackers.org. 1261 00:47:24,640 --> 00:47:25,660 Does anyone think 1262 00:47:25,660 --> 00:47:27,520 that I can't put malware on hackers.org? 1263 00:47:28,980 --> 00:47:29,660 It's exploitable. 1264 00:47:29,680 --> 00:47:31,780 I mean, it's not maybe they can 1265 00:47:31,780 --> 00:47:33,280 shut it off after the fact, but 1266 00:47:33,280 --> 00:47:35,540 that's sort of that reactive security that 1267 00:47:35,540 --> 00:47:37,420 we've proven time and time and time again that 1268 00:47:37,420 --> 00:47:39,200 it doesn't work unless 1269 00:47:39,200 --> 00:47:41,480 you're okay with a couple people getting compromised. 1270 00:47:41,920 --> 00:47:43,720 And I personally don't really like 1271 00:47:43,720 --> 00:47:45,540 when people get compromised. I mean, my mom 1272 00:47:45,540 --> 00:47:47,680 is one of those people and I want to keep her from getting compromised. 1273 00:47:48,420 --> 00:47:49,660 And she tends to click 1274 00:47:49,660 --> 00:47:50,440 on a lot of stupid stuff. 1275 00:47:51,980 --> 00:47:53,520 By the way, somebody at 1276 00:47:53,520 --> 00:47:55,320 another conference asked me, what do you do 1277 00:47:55,320 --> 00:47:57,240 when you tell your mom blah, blah, blah? 1278 00:47:57,280 --> 00:47:59,440 I just say, Mom, you're already compromised. 1279 00:47:59,680 --> 00:48:01,060 And she's like, oh no, am I? 1280 00:48:01,180 --> 00:48:03,600 Yes. She won't shop on anything anymore. 1281 00:48:03,720 --> 00:48:04,180 So it's perfect. 1282 00:48:07,760 --> 00:48:09,220 So that's kind of the end of the speech. 1283 00:48:09,860 --> 00:48:11,480 I don't know if you guys had any 1284 00:48:11,480 --> 00:48:11,860 questions. 1285 00:48:14,820 --> 00:48:15,140 Yes. 1286 00:48:29,680 --> 00:48:33,980 Is that something that you see in malware? 1287 00:48:34,500 --> 00:48:35,020 Yeah. 1288 00:48:35,200 --> 00:48:37,060 So there's actually an interesting... 1289 00:48:37,060 --> 00:48:39,520 He's asked, is there JavaScript that 1290 00:48:39,520 --> 00:48:40,520 actually does detection 1291 00:48:40,520 --> 00:48:43,560 and actually tries to react based on the fact 1292 00:48:43,560 --> 00:48:44,900 that someone in particular is 1293 00:48:45,440 --> 00:48:47,440 looking at it. And yeah, actually 1294 00:48:47,440 --> 00:48:49,360 one of the most interesting things out there is there's 1295 00:48:49,360 --> 00:48:51,320 a way in which you can do 1296 00:48:51,320 --> 00:48:52,520 browser sniffing to tell how 1297 00:48:52,520 --> 00:48:55,260 wide and tall a screen is. 1298 00:48:55,720 --> 00:48:57,520 And some of the malware guys have 1299 00:48:57,520 --> 00:48:59,640 decided that that's actually a really good 1300 00:48:59,680 --> 00:49:00,680 way to tell if someone's 1301 00:49:01,760 --> 00:49:02,640 computer savvy. 1302 00:49:03,040 --> 00:49:05,360 And in that case, they won't deliver 1303 00:49:05,360 --> 00:49:07,440 the malware. So if you have a really wide 1304 00:49:07,440 --> 00:49:09,260 screen, really tall, you're probably 1305 00:49:09,260 --> 00:49:11,160 computer savvy, so they won't give you the malware. 1306 00:49:11,400 --> 00:49:13,520 If you've got a little 640 by 480 screen, 1307 00:49:14,360 --> 00:49:15,600 you're probably someone they 1308 00:49:15,600 --> 00:49:17,160 can exploit because you've got an old computer 1309 00:49:17,160 --> 00:49:18,480 and you probably don't know anything. 1310 00:49:20,340 --> 00:49:20,780 Yes. 1311 00:49:30,460 --> 00:49:30,860 . 1312 00:49:39,820 --> 00:49:41,560 I don't know that there's a way 1313 00:49:41,560 --> 00:49:43,300 to stop them from doing it. I mean, you're 1314 00:49:43,300 --> 00:49:45,180 sitting here listening to me tell you 1315 00:49:45,180 --> 00:49:46,480 that's not a good idea. 1316 00:49:47,180 --> 00:49:49,600 I don't have any control over Facebook or 1317 00:49:49,600 --> 00:49:51,400 any MySpace or whoever 1318 00:49:51,400 --> 00:49:53,520 else. All we can do is keep informing them of 1319 00:49:53,520 --> 00:49:55,680 the problem. Yeah, there's a lot of background noise. 1320 00:49:55,740 --> 00:49:57,060 So just come on up and ask us questions 1321 00:49:58,200 --> 00:49:59,220 after the talk. 1322 00:49:59,680 --> 00:50:00,100 Thank you, everybody.