1 00:00:00,000 --> 00:00:01,200 Okay, we're going to go ahead and get started. 2 00:00:02,780 --> 00:00:04,360 This is Biting the Hand that Feeds You. 3 00:00:04,880 --> 00:00:07,680 My name is Billy Rios of the Dunk Tank fame 4 00:00:07,680 --> 00:00:10,820 and other things that I will not mention that happened this weekend. 5 00:00:11,020 --> 00:00:12,300 And this is Nate McPheeters. 6 00:00:12,800 --> 00:00:15,160 So the first thing that we're going to do is we're going to go over an agenda. 7 00:00:16,100 --> 00:00:19,400 And the agenda basically consists of domain names and trusts. 8 00:00:19,460 --> 00:00:22,960 Initially, we're just going to talk a little bit how domain names and trusts 9 00:00:22,960 --> 00:00:24,120 are kind of built into each other, 10 00:00:24,220 --> 00:00:27,300 maybe some ways that various pieces of client-side technology 11 00:00:27,640 --> 00:00:30,320 try to protect us by using various domain names. 12 00:00:30,520 --> 00:00:33,100 And then we're going to look at some ways on how we abuse that trust. 13 00:00:33,220 --> 00:00:34,700 I'm going to give you some really simple examples 14 00:00:35,220 --> 00:00:38,660 that you can either take and learn from and develop your own examples from, 15 00:00:38,780 --> 00:00:41,100 or you can just kind of sit here and take that in and say, 16 00:00:41,160 --> 00:00:42,580 yeah, that's really cool, that really sucked. 17 00:00:42,740 --> 00:00:44,420 But I'm going to give you the examples either way. 18 00:00:44,760 --> 00:00:47,680 And at the very, very end, we're going to go over some things 19 00:00:48,140 --> 00:00:50,160 that are related to URI use and abuse. 20 00:00:50,680 --> 00:00:52,680 And the reason that we're going to do that is because 21 00:00:52,680 --> 00:00:56,060 a lot of people have been asking myself and Nate a lot of questions 22 00:00:56,740 --> 00:00:57,060 about... 23 00:00:57,300 --> 00:01:01,640 the recent Firefox zero days that we released a couple weeks ago 24 00:01:01,640 --> 00:01:07,000 that were just recently patched with Firefox 2.0.0.5 and 2.0.0.6. 25 00:01:07,320 --> 00:01:11,420 And there's also another zero day that we had put out for Trillian. 26 00:01:11,940 --> 00:01:16,460 And then there's one back in the day that we had put out for Microsoft 27 00:01:16,460 --> 00:01:19,820 that was actually considered a Windows URI resource handling vulnerability 28 00:01:19,820 --> 00:01:23,120 that was patched in MS07035. 29 00:01:23,560 --> 00:01:26,660 And so if the Krillian Studios crews here 30 00:01:26,660 --> 00:01:27,140 or the... 31 00:01:27,300 --> 00:01:29,300 the Firefox Mozilla security team 32 00:01:29,300 --> 00:01:30,620 would just like to say what's up 33 00:01:30,620 --> 00:01:31,520 and see how everything's going. 34 00:01:31,900 --> 00:01:34,340 And if you have any other further questions, 35 00:01:34,440 --> 00:01:35,880 you can maybe address this at the end 36 00:01:35,880 --> 00:01:37,840 and hopefully if you can't slip out someplace, 37 00:01:37,980 --> 00:01:38,880 we'll answer those for you. 38 00:01:40,820 --> 00:01:41,900 The first thing is, 39 00:01:42,880 --> 00:01:44,180 every time you surf the internet, 40 00:01:44,440 --> 00:01:46,200 whenever I'm on the World Wide Web, 41 00:01:46,260 --> 00:01:47,260 I always ask myself a question. 42 00:01:48,160 --> 00:01:49,340 Who do I trust? 43 00:01:49,720 --> 00:01:52,240 And I think there's two different schools of thought 44 00:01:52,240 --> 00:01:55,140 as far as browser, content-based interaction 45 00:01:55,700 --> 00:01:57,100 with your browser and the World Wide Web. 46 00:01:57,300 --> 00:01:58,480 I think one camp goes, 47 00:01:58,660 --> 00:02:00,000 hey, anything running inside the browser, 48 00:02:00,340 --> 00:02:02,620 you're basically running untrusted code inside the browser. 49 00:02:02,780 --> 00:02:03,720 So you need to be really careful. 50 00:02:04,120 --> 00:02:06,060 And I think the other school of thought is, 51 00:02:06,220 --> 00:02:06,760 hey, you know what? 52 00:02:06,820 --> 00:02:08,020 I've got these client-side protections 53 00:02:08,380 --> 00:02:09,940 and these different ways of protecting myself. 54 00:02:10,380 --> 00:02:11,840 I'm going to go ahead and use my browser 55 00:02:11,840 --> 00:02:13,560 and my client-side application to protect me 56 00:02:13,560 --> 00:02:15,480 from whatever it is that's out there on the internet. 57 00:02:16,040 --> 00:02:18,480 And so if we look at some of those protection methods, 58 00:02:18,620 --> 00:02:19,720 well, I think, you know, 59 00:02:19,760 --> 00:02:21,320 there's some people that are on the far left, 60 00:02:21,360 --> 00:02:22,220 some people are on the far right, 61 00:02:22,260 --> 00:02:24,220 but I think most of the people kind of, you know, 62 00:02:24,220 --> 00:02:25,800 come to a happy medium someplace in the center 63 00:02:25,800 --> 00:02:27,220 and they go, yeah, a lot of stuff, 64 00:02:27,300 --> 00:02:28,280 a lot of stuff out there is pretty crazy. 65 00:02:28,480 --> 00:02:29,980 A lot of the stuff I can't really trust. 66 00:02:30,260 --> 00:02:31,860 I'm not going to fully rely on the browser 67 00:02:31,860 --> 00:02:33,400 or the application to protect me, 68 00:02:33,500 --> 00:02:34,280 but at the same time, 69 00:02:34,340 --> 00:02:35,720 I'm going to try to make some common-sense judgment. 70 00:02:36,020 --> 00:02:37,540 I'm going to try to see if whether or not 71 00:02:37,540 --> 00:02:39,260 I should trust this content that's being served 72 00:02:39,260 --> 00:02:40,240 or rendered in my browser 73 00:02:40,240 --> 00:02:41,560 or my client-side application. 74 00:02:42,220 --> 00:02:44,380 So if we take a look at some of the protections 75 00:02:44,380 --> 00:02:45,360 that are offered to us, 76 00:02:45,440 --> 00:02:46,760 I think the first line of protection 77 00:02:47,300 --> 00:02:48,360 are browser restrictions. 78 00:02:48,720 --> 00:02:50,180 So if you look at these browser restrictions 79 00:02:50,180 --> 00:02:51,920 and the way the browsers try to protect us, 80 00:02:52,100 --> 00:02:54,620 it's basically based on domain names. 81 00:02:54,780 --> 00:02:56,800 And so if you look at various things like, 82 00:02:57,300 --> 00:02:59,400 you know, cross-site request forgery 83 00:02:59,400 --> 00:03:00,540 and cross-site scripting 84 00:03:00,540 --> 00:03:01,260 and malicious JavaScript 85 00:03:01,260 --> 00:03:02,760 and such and such and such, 86 00:03:02,900 --> 00:03:04,400 a lot of times the biggest thing 87 00:03:04,400 --> 00:03:05,180 that they're trying to overcome 88 00:03:05,180 --> 00:03:08,060 is something that's called the same origin policy. 89 00:03:08,320 --> 00:03:09,360 And the same origin policy 90 00:03:09,360 --> 00:03:10,520 just kind of dictates that, 91 00:03:10,560 --> 00:03:11,320 hey, you know, 92 00:03:11,360 --> 00:03:12,580 content from one domain 93 00:03:12,580 --> 00:03:15,100 cannot interact with content from another domain 94 00:03:15,100 --> 00:03:16,500 or scripts from one domain 95 00:03:16,500 --> 00:03:18,260 cannot interact with scripts from a different domain. 96 00:03:18,500 --> 00:03:19,720 And they do that for our protection. 97 00:03:20,020 --> 00:03:21,320 And so all these different attacks 98 00:03:21,320 --> 00:03:22,360 that we're trying to, you know, 99 00:03:22,360 --> 00:03:22,800 that we're seeing, 100 00:03:23,040 --> 00:03:24,300 especially with related to 101 00:03:24,300 --> 00:03:25,220 cross-site request forgery 102 00:03:25,220 --> 00:03:26,040 and cross-site scripting, 103 00:03:26,060 --> 00:03:27,280 kind of try to, 104 00:03:27,300 --> 00:03:28,020 take advantage of that, 105 00:03:28,080 --> 00:03:28,560 skirt that, 106 00:03:28,620 --> 00:03:29,180 get around it, 107 00:03:29,220 --> 00:03:29,360 whatever. 108 00:03:29,640 --> 00:03:31,440 But what it basically boils down to 109 00:03:31,440 --> 00:03:33,640 is the browser is taking a look at 110 00:03:33,640 --> 00:03:35,120 where that content's coming from, 111 00:03:35,220 --> 00:03:37,540 but the only thing it can really discern 112 00:03:37,540 --> 00:03:38,360 from that content 113 00:03:38,360 --> 00:03:39,260 is the domain name. 114 00:03:39,460 --> 00:03:40,480 That's the only thing. 115 00:03:40,700 --> 00:03:42,140 Things like cross-site scripting, 116 00:03:42,180 --> 00:03:43,620 it can't determine who actually, 117 00:03:43,640 --> 00:03:45,740 who actually wrote the content that it's serving. 118 00:03:45,940 --> 00:03:47,080 It can never determine that. 119 00:03:47,240 --> 00:03:48,800 The only thing it can determine is 120 00:03:48,800 --> 00:03:50,180 where is this coming from 121 00:03:50,180 --> 00:03:51,800 as far as a domain name standpoint goes. 122 00:03:52,420 --> 00:03:54,700 If we take a look at another security measure 123 00:03:54,700 --> 00:03:55,560 that's put into place, 124 00:03:55,680 --> 00:03:56,720 like SSL certificates, 125 00:03:57,300 --> 00:03:58,580 SSL certificates, I think, 126 00:03:58,580 --> 00:04:00,000 you know, are a really, really good thing. 127 00:04:00,160 --> 00:04:01,800 They help prevent people like me 128 00:04:01,800 --> 00:04:03,220 from getting man-in-the-middle'd out here 129 00:04:03,220 --> 00:04:04,460 on DEF CON's network, 130 00:04:04,640 --> 00:04:05,800 which is extremely dangerous. 131 00:04:06,120 --> 00:04:08,080 But, you know, a piece of that 132 00:04:08,080 --> 00:04:09,680 is actually a domain name, 133 00:04:09,780 --> 00:04:11,060 a host name match, right? 134 00:04:11,300 --> 00:04:13,380 Does the name on the SSL certificate 135 00:04:13,380 --> 00:04:16,560 match the name that the content's being served from 136 00:04:16,560 --> 00:04:17,980 or the server that's serving the content? 137 00:04:18,260 --> 00:04:19,400 And if you think about it, 138 00:04:19,460 --> 00:04:20,880 that's really the only thing 139 00:04:20,880 --> 00:04:23,820 that it can really kind of base its judgment on, right? 140 00:04:24,180 --> 00:04:25,700 That's why you get the certificate error 141 00:04:25,700 --> 00:04:26,340 that says, hey, 142 00:04:26,820 --> 00:04:27,440 something's funny, 143 00:04:27,540 --> 00:04:29,020 the name doesn't match, blah, blah, blah, blah. 144 00:04:29,600 --> 00:04:31,320 Let's take another step back and say, 145 00:04:31,420 --> 00:04:31,900 hey, you know, 146 00:04:31,980 --> 00:04:33,380 what are the browser manufacturers 147 00:04:33,380 --> 00:04:36,060 trying to do to protect me, Joe Schmo, 148 00:04:36,140 --> 00:04:37,000 when I surf the internet 149 00:04:37,000 --> 00:04:38,280 from getting my credit card stolen 150 00:04:38,280 --> 00:04:39,900 or going to a site 151 00:04:39,900 --> 00:04:41,060 that I really shouldn't be going to? 152 00:04:41,740 --> 00:04:42,920 And a lot of the new browsers 153 00:04:42,920 --> 00:04:45,080 have implemented some type of phishing filter. 154 00:04:45,420 --> 00:04:46,340 And so, basically, 155 00:04:46,460 --> 00:04:47,740 what these phishing filters are 156 00:04:47,740 --> 00:04:50,000 are just lists of domain names, right? 157 00:04:50,180 --> 00:04:51,300 And they just say, hey, you know what? 158 00:04:51,440 --> 00:04:53,180 You should never trust content 159 00:04:53,180 --> 00:04:54,040 from these domain names. 160 00:04:54,200 --> 00:04:55,920 I'm not even going to let you see content 161 00:04:55,920 --> 00:04:56,320 from these domain names. 162 00:04:56,960 --> 00:04:57,720 I'm going to go ahead 163 00:04:57,720 --> 00:04:58,560 and block any content 164 00:04:58,560 --> 00:04:59,420 from these domain names. 165 00:04:59,620 --> 00:05:00,940 And I'm not going to let you get taken 166 00:05:00,940 --> 00:05:02,860 by the website or the content 167 00:05:02,860 --> 00:05:04,000 or whatever's getting served 168 00:05:04,000 --> 00:05:04,760 from this domain name 169 00:05:04,760 --> 00:05:06,280 because we know it's evil. 170 00:05:06,420 --> 00:05:08,320 So the browser's trying to protect me in that way. 171 00:05:08,620 --> 00:05:10,180 But in reality, all it really is 172 00:05:10,180 --> 00:05:11,780 is just a list of domain names. 173 00:05:12,360 --> 00:05:13,700 Domain names and IP addresses 174 00:05:13,700 --> 00:05:15,280 saying just don't trust these guys. 175 00:05:15,420 --> 00:05:16,320 They're known bad guys. 176 00:05:16,580 --> 00:05:17,880 They're owned by people 177 00:05:17,880 --> 00:05:19,240 like Nate McPheeters and Billy Rios. 178 00:05:19,420 --> 00:05:20,880 Don't ever trust the content, right? 179 00:05:21,080 --> 00:05:22,220 And then the last piece, 180 00:05:22,420 --> 00:05:24,520 and this is probably the most important piece. 181 00:05:24,560 --> 00:05:26,120 This is the piece that I use most often. 182 00:05:26,340 --> 00:05:27,220 It's human trust. 183 00:05:27,700 --> 00:05:30,800 So, you know, I'm a pretty paranoid guy, 184 00:05:30,960 --> 00:05:31,780 but at the same time, 185 00:05:31,780 --> 00:05:33,260 I've got business that I have to take care of. 186 00:05:33,400 --> 00:05:35,180 So I've got to check things like email. 187 00:05:35,320 --> 00:05:37,020 I've got to pay my bills online 188 00:05:37,020 --> 00:05:37,940 because I travel a lot 189 00:05:37,940 --> 00:05:38,680 and all that sort of stuff. 190 00:05:38,980 --> 00:05:40,960 So a lot of times what I'll do is 191 00:05:40,960 --> 00:05:42,400 whenever I'm asked to perform 192 00:05:42,400 --> 00:05:43,580 some kind of sensitive transaction, 193 00:05:44,060 --> 00:05:45,260 whenever I'm asked to do something 194 00:05:45,260 --> 00:05:46,560 that I think is kind of, you know, 195 00:05:46,620 --> 00:05:47,800 ooh, maybe I should think about this, 196 00:05:47,920 --> 00:05:49,880 I always take another look at that domain name 197 00:05:49,880 --> 00:05:50,980 just to make sure that, you know, 198 00:05:51,020 --> 00:05:53,100 that domain name is Bank of America 199 00:05:53,100 --> 00:05:54,960 and not Bank of America as with an S 200 00:05:54,960 --> 00:05:56,180 or some weird stuff like that. 201 00:05:56,340 --> 00:05:57,940 Whenever I get an email with a link 202 00:05:57,940 --> 00:05:58,700 or anything like that, 203 00:05:58,840 --> 00:06:00,400 I always take a look at what domain 204 00:06:00,400 --> 00:06:01,240 it's actually going to. 205 00:06:01,380 --> 00:06:02,900 And then I do some other stuff to protect myself. 206 00:06:03,180 --> 00:06:05,220 But it's kind of a human decision-making process 207 00:06:05,220 --> 00:06:05,880 that I go through. 208 00:06:06,080 --> 00:06:08,120 And basically, at the very end of the day, 209 00:06:08,180 --> 00:06:10,160 I ask myself, can I trust that domain? 210 00:06:10,300 --> 00:06:12,060 Can I trust the content that's coming from that domain? 211 00:06:12,300 --> 00:06:14,360 Can I trust the requests that my browser's making? 212 00:06:14,660 --> 00:06:17,600 So I just gave you protections from the browser. 213 00:06:17,820 --> 00:06:19,220 I just gave you some SSL protections 214 00:06:19,220 --> 00:06:20,740 that are done via SSL. 215 00:06:20,840 --> 00:06:22,420 I just gave you how phishing filters 216 00:06:22,420 --> 00:06:24,680 kind of protect users against phishing websites. 217 00:06:24,940 --> 00:06:25,940 And I just told you about, 218 00:06:26,340 --> 00:06:26,980 you know, a little bit about 219 00:06:26,980 --> 00:06:29,280 the human decision-making factor that goes in 220 00:06:29,280 --> 00:06:31,100 when you're taking content from the internet, 221 00:06:31,240 --> 00:06:32,320 which is a really dangerous place. 222 00:06:32,580 --> 00:06:33,740 And if you didn't get it, 223 00:06:33,800 --> 00:06:36,200 everything really boils down to the domain name. 224 00:06:36,400 --> 00:06:38,340 That's actually the only piece of information 225 00:06:38,340 --> 00:06:41,020 that you can really base any kind of trust off of 226 00:06:41,020 --> 00:06:42,160 when you're surfing the internet 227 00:06:42,160 --> 00:06:43,000 is the domain name. 228 00:06:43,120 --> 00:06:44,860 What else can you base a trust on? 229 00:06:45,600 --> 00:06:47,240 What else can you base trust on? 230 00:06:47,680 --> 00:06:48,920 You can either not trust 231 00:06:48,920 --> 00:06:50,660 or you can trust a domain name. 232 00:06:50,900 --> 00:06:52,760 And so, with that in mind, 233 00:06:52,960 --> 00:06:55,020 any attacks against the integrity 234 00:06:55,020 --> 00:06:55,920 or the, you know, 235 00:06:55,920 --> 00:06:56,320 any attacks against the integrity 236 00:06:56,320 --> 00:06:58,000 or any attacks that abuse someone else's domain name, 237 00:06:58,060 --> 00:06:59,000 a trusted domain name, 238 00:06:59,100 --> 00:07:00,580 is going to be a pretty serious deal 239 00:07:00,580 --> 00:07:01,320 on the World Wide Web. 240 00:07:01,540 --> 00:07:03,000 And so, we're just going to give you an example 241 00:07:03,000 --> 00:07:04,340 of a couple little abuses here. 242 00:07:04,520 --> 00:07:05,200 But like I said, 243 00:07:05,240 --> 00:07:06,820 I think it's just an indication of some things 244 00:07:06,820 --> 00:07:08,800 that can be taken, you know, 245 00:07:08,800 --> 00:07:10,060 a step further, a couple steps further 246 00:07:10,060 --> 00:07:11,300 and get really dangerous. 247 00:07:11,580 --> 00:07:12,860 But we're not going to show this today. 248 00:07:13,100 --> 00:07:14,900 And then Nate's going to talk about some URI stuff 249 00:07:14,900 --> 00:07:15,820 that's really, really cool. 250 00:07:16,000 --> 00:07:17,480 And he'll get into that, you know, 251 00:07:17,500 --> 00:07:18,100 one thing at a time. 252 00:07:18,300 --> 00:07:20,380 So, before we start abusing domain names, 253 00:07:20,500 --> 00:07:21,840 I'm just going to talk really briefly 254 00:07:21,840 --> 00:07:23,620 about something called cross-site request forgery. 255 00:07:23,780 --> 00:07:25,020 And everyone should already know 256 00:07:25,020 --> 00:07:26,160 how cross-site request forgery 257 00:07:26,160 --> 00:07:26,400 works. 258 00:07:26,640 --> 00:07:27,620 But I'm just going to go over 259 00:07:27,620 --> 00:07:29,200 a very, very, very basic example. 260 00:07:29,480 --> 00:07:31,780 So, Nate has some compromising piece of information 261 00:07:31,780 --> 00:07:32,340 about me, 262 00:07:32,380 --> 00:07:33,840 about something I did a couple weekends ago. 263 00:07:34,160 --> 00:07:34,780 And he says, 264 00:07:34,860 --> 00:07:35,320 hey, you know what? 265 00:07:35,440 --> 00:07:36,660 I'm going to put this out on the internet. 266 00:07:37,780 --> 00:07:38,720 And I'm going to do it 267 00:07:38,720 --> 00:07:39,780 unless you give me $1. 268 00:07:39,960 --> 00:07:40,540 So, I say, 269 00:07:40,580 --> 00:07:41,940 okay, I'll give Nate $1. 270 00:07:41,940 --> 00:07:42,440 But Nate's like, 271 00:07:42,540 --> 00:07:42,980 hey, you know what? 272 00:07:43,060 --> 00:07:43,620 I don't trust you. 273 00:07:43,680 --> 00:07:44,380 I don't want to meet you anywhere. 274 00:07:44,560 --> 00:07:45,080 It could be a setup. 275 00:07:45,340 --> 00:07:47,720 I want you to go onto bigcreditunion.com 276 00:07:47,720 --> 00:07:49,460 and I want you to transfer $1 277 00:07:49,460 --> 00:07:50,720 from your account to my account. 278 00:07:51,060 --> 00:07:51,700 And so, I say, 279 00:07:51,760 --> 00:07:52,660 hey, okay, no problem. 280 00:07:52,760 --> 00:07:54,420 So, I log into bigcreditunion.com 281 00:07:54,420 --> 00:07:56,820 and I transfer $1 from my account 282 00:07:56,820 --> 00:07:57,380 to Nate's account. 283 00:07:57,600 --> 00:07:58,220 And being, you know, 284 00:07:58,240 --> 00:07:58,860 the guy that I am, 285 00:07:58,920 --> 00:08:00,000 I log every single request 286 00:08:00,000 --> 00:08:00,840 that my browser's making. 287 00:08:01,160 --> 00:08:01,980 And I notice, 288 00:08:02,500 --> 00:08:04,180 I notice that it makes a request, 289 00:08:04,400 --> 00:08:05,020 a get request, 290 00:08:05,300 --> 00:08:06,980 and it has Nate's name 291 00:08:06,980 --> 00:08:07,900 in one of the parameters 292 00:08:07,900 --> 00:08:08,840 and it has an amount 293 00:08:08,840 --> 00:08:09,600 in the other parameter. 294 00:08:09,760 --> 00:08:10,320 And I'm like, 295 00:08:10,380 --> 00:08:10,900 wow, you know, 296 00:08:10,960 --> 00:08:11,740 it's pretty good. 297 00:08:11,840 --> 00:08:12,760 And I take another look at it 298 00:08:12,760 --> 00:08:13,440 and I realize that 299 00:08:13,440 --> 00:08:14,660 it's doing a really good, 300 00:08:14,860 --> 00:08:15,440 you know, 301 00:08:15,460 --> 00:08:16,060 a really good, 302 00:08:16,120 --> 00:08:17,020 it's a really good effort 303 00:08:17,020 --> 00:08:17,860 of tying the cookie, 304 00:08:17,960 --> 00:08:18,360 my session, 305 00:08:18,500 --> 00:08:19,260 to my account. 306 00:08:19,440 --> 00:08:20,040 So, there's no, 307 00:08:20,140 --> 00:08:21,060 my account number 308 00:08:21,060 --> 00:08:21,800 or my account name 309 00:08:21,800 --> 00:08:22,340 is not getting past 310 00:08:22,340 --> 00:08:23,000 in any parameter. 311 00:08:23,160 --> 00:08:23,820 The application 312 00:08:23,820 --> 00:08:25,020 just knows to associate 313 00:08:25,020 --> 00:08:25,880 my session ID 314 00:08:25,880 --> 00:08:26,600 with my account. 315 00:08:26,780 --> 00:08:28,620 So, I transfer $1 to Nate. 316 00:08:29,600 --> 00:08:30,360 Being a very, 317 00:08:30,380 --> 00:08:31,400 very stingy guy, 318 00:08:31,520 --> 00:08:32,660 I don't like giving Nate a dollar, 319 00:08:32,780 --> 00:08:33,640 so I'm trying to scheme 320 00:08:33,640 --> 00:08:34,760 a way to get my money back. 321 00:08:35,180 --> 00:08:35,620 And so, 322 00:08:35,760 --> 00:08:36,920 what I understand is 323 00:08:36,920 --> 00:08:37,840 there's two parameters 324 00:08:37,840 --> 00:08:38,420 that get passed 325 00:08:38,420 --> 00:08:39,980 in a cross-site request 326 00:08:39,980 --> 00:08:40,540 forgery attack 327 00:08:40,540 --> 00:08:41,540 against this application. 328 00:08:41,840 --> 00:08:42,820 One of them's the account, 329 00:08:42,960 --> 00:08:43,680 the other one's the amount, 330 00:08:43,880 --> 00:08:44,700 and then the rest 331 00:08:44,700 --> 00:08:45,360 is basically just 332 00:08:45,360 --> 00:08:46,240 writing off the session 333 00:08:46,240 --> 00:08:46,800 that's getting passed 334 00:08:46,800 --> 00:08:47,300 back and forth. 335 00:08:47,600 --> 00:08:49,220 So, what I do is 336 00:08:49,220 --> 00:08:50,360 I craft Nate an email 337 00:08:50,360 --> 00:08:50,780 saying, hey, 338 00:08:50,800 --> 00:08:51,300 you know what, dog, 339 00:08:51,400 --> 00:08:52,480 you need to log into your account 340 00:08:52,480 --> 00:08:53,620 and check your balance 341 00:08:53,620 --> 00:08:55,140 because I just sent you a dollar. 342 00:08:55,480 --> 00:08:56,580 But inside the email 343 00:08:56,580 --> 00:08:57,100 that I send him, 344 00:08:57,180 --> 00:08:57,820 because I know that Nate 345 00:08:57,820 --> 00:09:00,080 uses an HTML web client 346 00:09:00,080 --> 00:09:00,860 that renders 347 00:09:00,860 --> 00:09:01,800 anything that's in there, 348 00:09:01,920 --> 00:09:02,820 I put an image source 349 00:09:02,820 --> 00:09:03,520 tag in there 350 00:09:03,520 --> 00:09:03,920 and I say, 351 00:09:04,140 --> 00:09:05,380 hey, I'm going to make this thing 352 00:09:05,380 --> 00:09:06,460 one pixel by one pixel. 353 00:09:06,620 --> 00:09:07,360 It's going to have no border. 354 00:09:07,440 --> 00:09:07,920 It's going to be really 355 00:09:07,920 --> 00:09:08,600 difficult to see. 356 00:09:08,800 --> 00:09:09,820 And whenever that image 357 00:09:09,820 --> 00:09:10,800 request gets made, 358 00:09:10,980 --> 00:09:11,760 it's going to make 359 00:09:11,760 --> 00:09:12,200 the get request, 360 00:09:12,400 --> 00:09:13,480 but instead of having 361 00:09:13,480 --> 00:09:14,520 the to account to Nate, 362 00:09:14,680 --> 00:09:15,440 it's going to have 363 00:09:15,440 --> 00:09:16,360 the to account to Billy. 364 00:09:16,580 --> 00:09:17,420 And then instead of 365 00:09:17,420 --> 00:09:18,380 the amount being a dollar, 366 00:09:18,480 --> 00:09:19,440 it's going to be $10,000. 367 00:09:19,800 --> 00:09:20,520 So, if he has 368 00:09:20,520 --> 00:09:21,160 an active session, 369 00:09:21,660 --> 00:09:22,760 he browses the email 370 00:09:22,760 --> 00:09:23,240 or whatever 371 00:09:23,240 --> 00:09:23,600 that, 372 00:09:23,620 --> 00:09:24,560 the content gets rendered, 373 00:09:24,740 --> 00:09:25,760 that's going to get executed 374 00:09:25,760 --> 00:09:27,020 in the context of his session. 375 00:09:27,320 --> 00:09:28,100 He's going to transfer 376 00:09:28,100 --> 00:09:29,260 $10,000 to my account. 377 00:09:29,420 --> 00:09:29,840 Ha, ha, ha, ha. 378 00:09:30,060 --> 00:09:31,680 So, this is a very, 379 00:09:31,760 --> 00:09:32,760 very, very classic, 380 00:09:32,900 --> 00:09:33,820 very, very, 381 00:09:33,840 --> 00:09:34,720 very simple example 382 00:09:34,720 --> 00:09:35,920 of how cross-site 383 00:09:35,920 --> 00:09:36,680 request forgery works. 384 00:09:37,020 --> 00:09:37,780 And if you want 385 00:09:37,780 --> 00:09:38,320 more information, 386 00:09:38,480 --> 00:09:39,300 you can just go to 387 00:09:39,300 --> 00:09:40,280 this website called Google 388 00:09:40,280 --> 00:09:41,160 and type in 389 00:09:41,160 --> 00:09:42,100 cross-site request forgery 390 00:09:42,100 --> 00:09:43,120 and it'll give you 391 00:09:43,120 --> 00:09:44,140 like tons of references 392 00:09:44,140 --> 00:09:45,180 on cross-site request forgery. 393 00:09:46,000 --> 00:09:46,360 Okay. 394 00:09:46,860 --> 00:09:47,220 Now, 395 00:09:48,060 --> 00:09:48,900 I think cross-site 396 00:09:48,900 --> 00:09:49,380 request forgery 397 00:09:49,380 --> 00:09:49,940 is kind of cool. 398 00:09:50,060 --> 00:09:50,560 And so, 399 00:09:50,980 --> 00:09:52,240 when I was in Amsterdam, 400 00:09:52,640 --> 00:09:53,500 at Black Hat Amsterdam, 401 00:09:53,620 --> 00:09:54,300 I actually gave 402 00:09:54,300 --> 00:09:54,880 a presentation 403 00:09:54,880 --> 00:09:55,780 where I used 404 00:09:56,700 --> 00:09:57,580 classic cross-site 405 00:09:57,580 --> 00:09:58,120 request forgery, 406 00:09:58,200 --> 00:09:58,760 but I put a little 407 00:09:58,760 --> 00:09:59,280 twist in there. 408 00:09:59,700 --> 00:09:59,940 And so, 409 00:09:59,960 --> 00:10:00,920 basically what I did was 410 00:10:00,920 --> 00:10:01,820 I understood what 411 00:10:01,820 --> 00:10:02,720 cross-site request forgery 412 00:10:02,720 --> 00:10:03,140 could do. 413 00:10:03,300 --> 00:10:04,120 And I thought 414 00:10:04,120 --> 00:10:04,660 it was pretty cool. 415 00:10:04,780 --> 00:10:04,920 So, 416 00:10:05,420 --> 00:10:06,200 I crafted up 417 00:10:06,200 --> 00:10:07,280 some nasty JavaScript code, 418 00:10:07,380 --> 00:10:08,040 which I'm going to show you 419 00:10:08,040 --> 00:10:08,620 in a second here, 420 00:10:08,760 --> 00:10:09,720 that did some 421 00:10:09,720 --> 00:10:10,000 really, 422 00:10:10,000 --> 00:10:10,840 really weird stuff. 423 00:10:11,460 --> 00:10:12,400 What it really did 424 00:10:12,400 --> 00:10:13,740 was it used 425 00:10:13,740 --> 00:10:14,760 a cross-site scripting 426 00:10:14,760 --> 00:10:15,040 exploit. 427 00:10:15,220 --> 00:10:15,360 So, 428 00:10:15,420 --> 00:10:16,160 now I control 429 00:10:16,160 --> 00:10:16,940 the content 430 00:10:16,940 --> 00:10:17,660 of a certain page 431 00:10:17,660 --> 00:10:19,040 coming from a certain domain. 432 00:10:19,260 --> 00:10:20,000 And it basically 433 00:10:20,000 --> 00:10:21,000 used that cross-site 434 00:10:21,000 --> 00:10:21,560 scripting exploit 435 00:10:21,560 --> 00:10:22,580 to write an invisible 436 00:10:22,580 --> 00:10:23,200 iframe. 437 00:10:23,620 --> 00:10:24,120 And what it did 438 00:10:24,120 --> 00:10:24,820 for that iframe 439 00:10:24,820 --> 00:10:25,600 is it actually 440 00:10:25,600 --> 00:10:27,700 posted a form 441 00:10:27,700 --> 00:10:28,400 to that iframe. 442 00:10:28,500 --> 00:10:29,120 That was the target 443 00:10:29,120 --> 00:10:31,160 of the form post 444 00:10:31,160 --> 00:10:31,940 that I made, 445 00:10:31,960 --> 00:10:33,360 was the invisible iframe. 446 00:10:33,520 --> 00:10:34,500 And what I actually did 447 00:10:34,500 --> 00:10:35,600 was I had all this 448 00:10:35,600 --> 00:10:36,860 nasty JavaScript code, 449 00:10:37,020 --> 00:10:37,880 but the most important 450 00:10:37,880 --> 00:10:38,620 piece of that JavaScript 451 00:10:38,620 --> 00:10:39,540 code were these 452 00:10:39,540 --> 00:10:39,980 two arrays. 453 00:10:40,320 --> 00:10:41,120 And the two arrays 454 00:10:41,120 --> 00:10:41,400 contained, 455 00:10:41,760 --> 00:10:42,360 the first array 456 00:10:42,360 --> 00:10:43,280 contained usernames, 457 00:10:43,280 --> 00:10:44,300 and the second array 458 00:10:44,300 --> 00:10:44,960 contained passwords. 459 00:10:45,200 --> 00:10:45,820 And if you look at, 460 00:10:45,900 --> 00:10:46,960 that's actually the array 461 00:10:46,960 --> 00:10:47,760 that I used right there. 462 00:10:47,880 --> 00:10:48,840 The username list 463 00:10:48,840 --> 00:10:49,660 and the password list. 464 00:10:49,920 --> 00:10:50,300 So, 465 00:10:50,360 --> 00:10:50,900 what I had it do 466 00:10:50,900 --> 00:10:51,980 was I had it use 467 00:10:51,980 --> 00:10:53,240 that invisible iframe, 468 00:10:53,620 --> 00:10:54,080 and it basically 469 00:10:54,080 --> 00:10:54,780 made posts 470 00:10:54,780 --> 00:10:55,860 to some internal 471 00:10:55,860 --> 00:10:56,840 network management console 472 00:10:56,840 --> 00:10:58,160 and cycled through 473 00:10:58,160 --> 00:10:58,760 the different username 474 00:10:58,760 --> 00:10:59,220 and passwords. 475 00:10:59,680 --> 00:11:00,120 So, 476 00:11:00,140 --> 00:11:00,660 those people who are 477 00:11:00,660 --> 00:11:01,180 really good with 478 00:11:01,180 --> 00:11:02,100 cross-site request forgery 479 00:11:02,100 --> 00:11:02,720 who have already 480 00:11:02,720 --> 00:11:03,220 been to Google 481 00:11:03,220 --> 00:11:03,680 and typed in 482 00:11:03,680 --> 00:11:04,580 cross-site request forgery 483 00:11:04,580 --> 00:11:06,340 know that a lot of times 484 00:11:06,340 --> 00:11:07,280 cross-site request forgery 485 00:11:07,280 --> 00:11:07,960 is just one way, 486 00:11:08,080 --> 00:11:09,000 which it is. 487 00:11:09,120 --> 00:11:09,480 So, 488 00:11:09,600 --> 00:11:10,660 the way I determined 489 00:11:10,660 --> 00:11:11,240 which username 490 00:11:11,240 --> 00:11:11,920 and password credentials 491 00:11:11,920 --> 00:11:13,360 worked was I followed 492 00:11:13,360 --> 00:11:14,240 each cross-site request 493 00:11:14,240 --> 00:11:14,960 forgery request 494 00:11:14,960 --> 00:11:16,360 with a request 495 00:11:16,360 --> 00:11:17,140 for a cross-site 496 00:11:17,140 --> 00:11:17,700 scripting exploit 497 00:11:17,700 --> 00:11:18,480 that was available 498 00:11:18,480 --> 00:11:19,800 only to authenticated users. 499 00:11:20,200 --> 00:11:20,820 And so, 500 00:11:21,360 --> 00:11:22,460 if one set of credentials 501 00:11:22,460 --> 00:11:23,040 didn't work, 502 00:11:23,200 --> 00:11:23,600 the cross-site scripting 503 00:11:23,620 --> 00:11:26,240 request that came 504 00:11:26,240 --> 00:11:27,200 immediately after it 505 00:11:27,200 --> 00:11:28,040 would just fail 506 00:11:28,040 --> 00:11:28,820 and no one would 507 00:11:28,820 --> 00:11:29,240 know the better. 508 00:11:29,680 --> 00:11:30,080 But, 509 00:11:30,240 --> 00:11:31,180 as soon as I hit 510 00:11:31,180 --> 00:11:31,640 that username 511 00:11:31,640 --> 00:11:32,520 and password combination 512 00:11:32,520 --> 00:11:33,300 that did work, 513 00:11:33,460 --> 00:11:34,600 the cross-site scripting 514 00:11:34,600 --> 00:11:35,180 request that came 515 00:11:35,180 --> 00:11:36,340 after it would work. 516 00:11:36,540 --> 00:11:37,300 And that cross-site 517 00:11:37,300 --> 00:11:37,780 scripting request 518 00:11:37,780 --> 00:11:39,240 would actually send me 519 00:11:39,240 --> 00:11:39,880 a ping back saying, 520 00:11:40,020 --> 00:11:40,120 hey, 521 00:11:40,260 --> 00:11:40,960 I got a valid 522 00:11:40,960 --> 00:11:41,540 set of credentials, 523 00:11:41,840 --> 00:11:42,440 these are where 524 00:11:42,440 --> 00:11:43,020 the credentials are, 525 00:11:43,220 --> 00:11:43,960 I'm now logged 526 00:11:43,960 --> 00:11:44,620 into this machine, 527 00:11:44,840 --> 00:11:45,640 and now not only 528 00:11:45,640 --> 00:11:46,260 do you have control 529 00:11:46,260 --> 00:11:47,220 of the victim's browser 530 00:11:47,220 --> 00:11:47,820 from the domain 531 00:11:47,820 --> 00:11:48,520 that it's coming from, 532 00:11:48,740 --> 00:11:49,600 you now have control 533 00:11:49,600 --> 00:11:50,660 of the victim's browser 534 00:11:50,660 --> 00:11:51,820 from this new domain 535 00:11:51,820 --> 00:11:52,580 or this new machine 536 00:11:52,580 --> 00:11:53,140 that you've just 537 00:11:53,140 --> 00:11:53,600 cross-site scripted. 538 00:11:53,620 --> 00:11:54,980 I think some people 539 00:11:54,980 --> 00:11:55,580 call this exponential 540 00:11:55,580 --> 00:11:56,540 cross-site scripting, 541 00:11:56,620 --> 00:11:57,720 there's a lot of 542 00:11:57,720 --> 00:11:58,500 fucking weird names 543 00:11:58,500 --> 00:11:58,840 for it, 544 00:11:58,900 --> 00:12:00,840 but what I'm going 545 00:12:00,840 --> 00:12:01,160 to do is, 546 00:12:01,240 --> 00:12:02,060 it's kind of a weird 547 00:12:02,060 --> 00:12:02,780 concept to understand, 548 00:12:03,060 --> 00:12:04,140 so I've got a really 549 00:12:04,140 --> 00:12:04,920 simple demo I'm going 550 00:12:04,920 --> 00:12:05,340 to show you, 551 00:12:05,440 --> 00:12:06,220 and just kind of 552 00:12:06,220 --> 00:12:06,840 walk you through it 553 00:12:06,840 --> 00:12:07,400 and show you how 554 00:12:07,400 --> 00:12:08,020 it works here. 555 00:12:18,860 --> 00:12:19,220 Okay, 556 00:12:19,360 --> 00:12:20,080 at this point, 557 00:12:20,180 --> 00:12:21,140 what's happened here 558 00:12:21,140 --> 00:12:22,500 is you see two things, 559 00:12:22,560 --> 00:12:22,680 right, 560 00:12:22,740 --> 00:12:23,580 you see one iframe, 561 00:12:23,620 --> 00:12:24,520 that you can actually see. 562 00:12:24,700 --> 00:12:25,880 In the attack that I did, 563 00:12:26,060 --> 00:12:26,940 it was actually invisible. 564 00:12:27,240 --> 00:12:27,780 You couldn't see 565 00:12:27,780 --> 00:12:28,340 that iframe, 566 00:12:28,420 --> 00:12:29,720 but for demonstration purposes, 567 00:12:29,920 --> 00:12:30,600 it's a lot nicer 568 00:12:30,600 --> 00:12:31,220 and it's a lot easier 569 00:12:31,220 --> 00:12:31,680 to understand 570 00:12:31,680 --> 00:12:32,660 when you can actually 571 00:12:32,660 --> 00:12:33,360 see the iframe. 572 00:12:33,600 --> 00:12:34,840 So what the iframe does 573 00:12:34,840 --> 00:12:35,800 is it actually loads 574 00:12:35,800 --> 00:12:37,260 the network management console 575 00:12:37,260 --> 00:12:38,000 that's someplace 576 00:12:38,000 --> 00:12:39,240 on someone's internal network. 577 00:12:39,560 --> 00:12:40,820 And all the content 578 00:12:40,820 --> 00:12:41,900 or all the post requests 579 00:12:41,900 --> 00:12:42,920 and all the forms and such 580 00:12:42,920 --> 00:12:43,900 are being controlled 581 00:12:43,900 --> 00:12:44,600 from the big frame, 582 00:12:44,720 --> 00:12:45,380 and in the attack, 583 00:12:45,560 --> 00:12:46,600 the big frame was actually 584 00:12:46,600 --> 00:12:47,560 the cross-site scripted, 585 00:12:47,560 --> 00:12:48,540 the original cross-site 586 00:12:48,540 --> 00:12:49,080 scripting exploit 587 00:12:49,080 --> 00:12:50,060 that I pulled off 588 00:12:50,060 --> 00:12:50,720 against some victim. 589 00:12:50,920 --> 00:12:51,560 And so what's going 590 00:12:51,560 --> 00:12:52,000 to happen here, 591 00:12:52,060 --> 00:12:52,540 I'm going to go ahead 592 00:12:52,540 --> 00:12:52,980 and hit play, 593 00:12:53,740 --> 00:12:54,600 and what you'll see 594 00:12:54,600 --> 00:12:55,420 is you'll see some activity 595 00:12:55,420 --> 00:12:56,800 in the iframe 596 00:12:56,800 --> 00:12:57,340 that's in the top 597 00:12:57,340 --> 00:12:57,940 left-hand corner. 598 00:12:58,300 --> 00:12:59,180 Like I said, 599 00:12:59,220 --> 00:12:59,740 in the real attack, 600 00:12:59,880 --> 00:13:00,420 that was invisible. 601 00:13:00,720 --> 00:13:01,620 But what you see 602 00:13:01,620 --> 00:13:02,500 that's happening right there 603 00:13:02,500 --> 00:13:03,760 is the JavaScript 604 00:13:03,760 --> 00:13:04,880 that's in the bigger page 605 00:13:04,880 --> 00:13:06,800 is actually rewriting a form, 606 00:13:07,360 --> 00:13:08,360 an HTML form, 607 00:13:08,640 --> 00:13:09,500 and posting that 608 00:13:09,500 --> 00:13:10,220 to the iframe. 609 00:13:10,360 --> 00:13:11,280 And it's cycling 610 00:13:11,280 --> 00:13:11,980 through that username 611 00:13:11,980 --> 00:13:12,700 password list 612 00:13:12,700 --> 00:13:13,360 that I had 613 00:13:13,360 --> 00:13:14,040 in those two arrays. 614 00:13:14,500 --> 00:13:15,320 And so it's going 615 00:13:15,320 --> 00:13:15,800 to keep going, 616 00:13:15,860 --> 00:13:16,480 it's going to keep going, 617 00:13:16,520 --> 00:13:17,140 it's going to keep going. 618 00:13:17,320 --> 00:13:19,560 After every cross-site request 619 00:13:19,560 --> 00:13:20,720 forgery request that's made, 620 00:13:20,840 --> 00:13:21,780 I follow it up 621 00:13:21,780 --> 00:13:22,360 with a cross-site 622 00:13:22,360 --> 00:13:22,880 scripting request. 623 00:13:22,880 --> 00:13:23,880 The only way 624 00:13:23,880 --> 00:13:24,720 that cross-site scripting 625 00:13:24,720 --> 00:13:25,540 request is going to execute 626 00:13:25,540 --> 00:13:26,620 is if the session 627 00:13:26,620 --> 00:13:27,140 gets forced 628 00:13:27,140 --> 00:13:27,800 and the user 629 00:13:27,800 --> 00:13:28,580 becomes authenticated. 630 00:13:28,840 --> 00:13:29,500 So eventually, 631 00:13:29,900 --> 00:13:30,540 I'm going to go 632 00:13:30,540 --> 00:13:31,280 through those two arrays 633 00:13:31,280 --> 00:13:31,960 and I'm going to hit 634 00:13:31,960 --> 00:13:32,580 one combination 635 00:13:32,580 --> 00:13:33,580 where the username 636 00:13:33,580 --> 00:13:34,740 and password combination works 637 00:13:34,740 --> 00:13:36,140 and the cross-site scripting 638 00:13:36,140 --> 00:13:36,480 will fire. 639 00:13:36,700 --> 00:13:37,160 And we'll see that 640 00:13:37,160 --> 00:13:37,800 through an alert box 641 00:13:37,800 --> 00:13:38,580 because that's the easiest 642 00:13:38,580 --> 00:13:39,300 way to demonstrate 643 00:13:39,680 --> 00:13:40,860 when a cross-site scripting 644 00:13:40,860 --> 00:13:41,620 exploit is successful. 645 00:13:41,920 --> 00:13:42,660 And there it is right there. 646 00:13:42,880 --> 00:13:44,140 So now I basically 647 00:13:44,140 --> 00:13:45,220 jumped the domain right there 648 00:13:45,220 --> 00:13:46,660 and it was a really cool demo. 649 00:13:47,260 --> 00:13:47,940 Jumping the domains 650 00:13:47,940 --> 00:13:49,380 is not really a concept 651 00:13:49,380 --> 00:13:49,700 that we're going 652 00:13:49,700 --> 00:13:50,300 to talk about here. 653 00:13:50,500 --> 00:13:51,360 If you want to learn 654 00:13:51,360 --> 00:13:51,960 more about it, 655 00:13:52,020 --> 00:13:52,780 look up the talk 656 00:13:52,780 --> 00:13:53,680 I did at Black Hat Amsterdam 657 00:13:53,680 --> 00:13:54,580 or just go to the website 658 00:13:55,320 --> 00:13:56,440 xs-sniper.com 659 00:13:56,440 --> 00:13:57,420 and you can read 660 00:13:57,420 --> 00:13:58,000 as much about it 661 00:13:58,000 --> 00:13:58,460 as you want. 662 00:13:58,700 --> 00:14:00,080 The important part 663 00:14:00,500 --> 00:14:01,400 that you just saw 664 00:14:01,400 --> 00:14:01,800 right there 665 00:14:02,940 --> 00:14:03,960 was the fact 666 00:14:03,960 --> 00:14:05,480 that that network 667 00:14:05,480 --> 00:14:06,640 management HTML console 668 00:14:06,640 --> 00:14:07,780 would allow me 669 00:14:07,780 --> 00:14:08,560 to do cross-site 670 00:14:08,560 --> 00:14:09,200 request forgery 671 00:14:09,200 --> 00:14:10,100 against the login page. 672 00:14:10,660 --> 00:14:11,020 And actually, 673 00:14:11,100 --> 00:14:11,740 to tell you the truth, 674 00:14:11,860 --> 00:14:12,780 every single web application 675 00:14:12,780 --> 00:14:13,440 I've looked at 676 00:14:13,440 --> 00:14:14,000 and I've looked at 677 00:14:14,000 --> 00:14:15,100 tons and tons 678 00:14:15,100 --> 00:14:15,800 and tons of them 679 00:14:15,800 --> 00:14:16,520 because I do it 680 00:14:16,520 --> 00:14:17,320 for a living basically, 681 00:14:17,940 --> 00:14:19,160 I have not come across 682 00:14:19,160 --> 00:14:20,320 one web application 683 00:14:20,320 --> 00:14:21,540 that does protection 684 00:14:21,540 --> 00:14:22,680 against the 685 00:14:22,680 --> 00:14:23,240 web application 686 00:14:23,240 --> 00:14:24,340 authentication piece. 687 00:14:24,600 --> 00:14:25,520 It will allow 688 00:14:25,520 --> 00:14:26,200 any person 689 00:14:26,200 --> 00:14:27,040 to post credentials 690 00:14:27,040 --> 00:14:28,000 to the web application 691 00:14:28,000 --> 00:14:29,200 as long as they know 692 00:14:29,200 --> 00:14:31,040 which post parameters 693 00:14:31,040 --> 00:14:31,920 or which get parameters 694 00:14:31,920 --> 00:14:32,360 to pass. 695 00:14:32,940 --> 00:14:33,060 So, 696 00:14:33,180 --> 00:14:34,500 what I just showed you there 697 00:14:34,500 --> 00:14:35,280 against the 698 00:14:35,280 --> 00:14:36,340 WhatsApp Gold 699 00:14:36,340 --> 00:14:36,960 IP switch 700 00:14:36,960 --> 00:14:37,940 network management console 701 00:14:37,940 --> 00:14:38,880 which is a commercial 702 00:14:38,880 --> 00:14:39,560 piece of software 703 00:14:39,560 --> 00:14:40,740 is probably valid 704 00:14:40,740 --> 00:14:41,620 for every single 705 00:14:41,620 --> 00:14:42,160 web application 706 00:14:42,160 --> 00:14:42,720 that you've ever 707 00:14:42,720 --> 00:14:43,100 come across. 708 00:14:43,380 --> 00:14:44,080 And the next time 709 00:14:44,080 --> 00:14:44,540 you come across 710 00:14:44,540 --> 00:14:45,100 a web application 711 00:14:46,060 --> 00:14:46,940 authentication page, 712 00:14:47,100 --> 00:14:47,500 check to see 713 00:14:47,500 --> 00:14:47,920 if there's any 714 00:14:47,920 --> 00:14:48,600 kind of cross-site 715 00:14:48,600 --> 00:14:49,240 request forgery 716 00:14:49,240 --> 00:14:50,120 protection against it. 717 00:14:50,340 --> 00:14:50,580 So, 718 00:14:50,720 --> 00:14:51,460 and the reason 719 00:14:51,460 --> 00:14:52,080 I think there isn't 720 00:14:52,080 --> 00:14:52,420 very much 721 00:14:52,420 --> 00:14:53,020 cross-site request 722 00:14:53,020 --> 00:14:53,580 forgery protection 723 00:14:53,580 --> 00:14:54,420 is because 724 00:14:54,420 --> 00:14:55,680 no one's really used 725 00:14:55,680 --> 00:14:56,220 cross-site request 726 00:14:56,220 --> 00:14:56,880 forgery protection 727 00:14:56,880 --> 00:14:57,860 or cross-site request 728 00:14:57,860 --> 00:14:58,360 forgery attacks 729 00:14:58,360 --> 00:14:58,900 against authentication 730 00:14:58,900 --> 00:14:59,320 pages 731 00:14:59,320 --> 00:15:00,440 because if you, 732 00:15:00,980 --> 00:15:01,800 for some people 733 00:15:01,800 --> 00:15:02,380 if they think about it 734 00:15:02,380 --> 00:15:02,860 it doesn't make sense, 735 00:15:03,060 --> 00:15:03,180 right? 736 00:15:03,320 --> 00:15:03,460 I mean, 737 00:15:03,460 --> 00:15:03,780 come on, 738 00:15:03,800 --> 00:15:04,280 what can you do 739 00:15:04,280 --> 00:15:04,800 with that, right? 740 00:15:05,000 --> 00:15:05,340 So, 741 00:15:05,800 --> 00:15:06,480 we're going to show 742 00:15:06,480 --> 00:15:07,060 you what you can do 743 00:15:07,060 --> 00:15:07,320 with that 744 00:15:07,320 --> 00:15:08,580 but we're going 745 00:15:08,580 --> 00:15:09,160 to set this up 746 00:15:09,160 --> 00:15:09,440 and we're going 747 00:15:09,440 --> 00:15:09,800 to show you 748 00:15:09,800 --> 00:15:10,260 the cross-site 749 00:15:10,260 --> 00:15:10,800 request forgery 750 00:15:10,800 --> 00:15:11,280 attacks against 751 00:15:11,280 --> 00:15:11,700 the authentication 752 00:15:11,700 --> 00:15:12,160 page 753 00:15:12,160 --> 00:15:12,960 and some other 754 00:15:12,960 --> 00:15:13,180 stuff 755 00:15:13,180 --> 00:15:13,920 against webmail. 756 00:15:14,060 --> 00:15:14,640 The reason 757 00:15:14,640 --> 00:15:15,320 we choose webmail, 758 00:15:15,440 --> 00:15:16,240 there's four reasons. 759 00:15:16,700 --> 00:15:17,320 Number one, 760 00:15:18,280 --> 00:15:18,940 today's webmail 761 00:15:18,940 --> 00:15:19,620 servers allow 762 00:15:19,620 --> 00:15:20,800 for a ridiculous 763 00:15:20,800 --> 00:15:21,660 amount of storage. 764 00:15:21,940 --> 00:15:22,340 So, 765 00:15:22,440 --> 00:15:23,080 I'm going to go ahead 766 00:15:23,080 --> 00:15:23,780 and use a file 767 00:15:23,780 --> 00:15:24,500 storage functionality 768 00:15:24,500 --> 00:15:25,140 and show you 769 00:15:25,140 --> 00:15:26,140 how to store 770 00:15:26,140 --> 00:15:26,720 malicious content 771 00:15:26,720 --> 00:15:27,680 on a webmail server 772 00:15:27,680 --> 00:15:28,600 and the only reason 773 00:15:28,600 --> 00:15:29,260 I picked a webmail 774 00:15:29,260 --> 00:15:30,120 server is because 775 00:15:30,120 --> 00:15:30,640 I can store 776 00:15:30,640 --> 00:15:31,680 like two gigs 777 00:15:31,680 --> 00:15:32,540 on most webmail 778 00:15:32,540 --> 00:15:32,740 servers 779 00:15:32,740 --> 00:15:33,760 and then if I run 780 00:15:33,760 --> 00:15:33,980 out, 781 00:15:34,060 --> 00:15:34,340 I can just 782 00:15:34,340 --> 00:15:35,000 find another one. 783 00:15:35,100 --> 00:15:35,140 So, 784 00:15:35,180 --> 00:15:35,800 the storage space 785 00:15:35,800 --> 00:15:37,120 is just ridiculous. 786 00:15:37,320 --> 00:15:37,800 Almost anything 787 00:15:37,800 --> 00:15:38,520 I want to store 788 00:15:38,520 --> 00:15:38,800 on there, 789 00:15:38,900 --> 00:15:39,560 I can store 790 00:15:39,560 --> 00:15:39,900 on there. 791 00:15:40,060 --> 00:15:40,880 The second thing 792 00:15:40,880 --> 00:15:41,580 is anonymity, 793 00:15:41,640 --> 00:15:41,860 right? 794 00:15:41,940 --> 00:15:42,120 So, 795 00:15:42,600 --> 00:15:43,360 I come across 796 00:15:43,360 --> 00:15:43,940 this webmail 797 00:15:43,940 --> 00:15:44,700 server 798 00:15:44,700 --> 00:15:45,340 and I want 799 00:15:45,340 --> 00:15:45,660 an account. 800 00:15:46,100 --> 00:15:46,500 Basically, 801 00:15:46,520 --> 00:15:47,240 all I have to do 802 00:15:47,240 --> 00:15:48,340 is just type 803 00:15:48,340 --> 00:15:48,900 garbage 804 00:15:48,900 --> 00:15:49,880 into the 805 00:15:51,520 --> 00:15:52,320 registration form 806 00:15:52,320 --> 00:15:53,120 and it grants 807 00:15:53,120 --> 00:15:53,620 me a username 808 00:15:53,620 --> 00:15:54,060 and password 809 00:15:54,060 --> 00:15:55,200 and I have 810 00:15:55,200 --> 00:15:56,120 a webmail account. 811 00:15:56,460 --> 00:15:56,900 pretty much 812 00:15:56,900 --> 00:15:57,720 anyone can create 813 00:15:57,720 --> 00:15:58,280 a webmail account 814 00:15:58,280 --> 00:15:58,880 from anywhere 815 00:15:58,880 --> 00:15:59,400 in the world. 816 00:15:59,600 --> 00:16:00,360 That's one of the 817 00:16:00,360 --> 00:16:00,940 greatest things 818 00:16:00,940 --> 00:16:01,480 about webmail 819 00:16:01,480 --> 00:16:02,160 but at the same time 820 00:16:02,160 --> 00:16:02,580 that's one thing 821 00:16:02,580 --> 00:16:03,020 that makes it 822 00:16:03,020 --> 00:16:03,640 a little bit dangerous. 823 00:16:03,980 --> 00:16:04,800 The last thing 824 00:16:04,800 --> 00:16:05,500 is the speed. 825 00:16:05,780 --> 00:16:06,040 So, 826 00:16:06,140 --> 00:16:06,420 I've known 827 00:16:06,420 --> 00:16:06,840 some people 828 00:16:06,840 --> 00:16:07,940 who've hosted 829 00:16:07,940 --> 00:16:08,480 where servers 830 00:16:08,480 --> 00:16:09,100 in their life 831 00:16:09,100 --> 00:16:10,060 and they've had 832 00:16:10,060 --> 00:16:10,580 a lot of content 833 00:16:10,580 --> 00:16:10,880 on there, 834 00:16:10,940 --> 00:16:11,420 a lot of real good 835 00:16:11,420 --> 00:16:12,440 content but 836 00:16:13,040 --> 00:16:14,080 after a while 837 00:16:14,080 --> 00:16:14,840 the speed 838 00:16:14,840 --> 00:16:15,440 of the server 839 00:16:15,440 --> 00:16:15,880 just becomes 840 00:16:15,880 --> 00:16:16,660 really bogged down 841 00:16:16,660 --> 00:16:17,020 because there's 842 00:16:17,020 --> 00:16:17,540 a lot of people 843 00:16:17,540 --> 00:16:18,160 downloading stuff 844 00:16:18,160 --> 00:16:18,580 off of there 845 00:16:18,580 --> 00:16:19,360 a lot of people 846 00:16:19,360 --> 00:16:20,100 downloading content 847 00:16:20,100 --> 00:16:20,740 a lot of people 848 00:16:20,740 --> 00:16:21,480 pulling off of it 849 00:16:21,480 --> 00:16:22,680 but with these 850 00:16:22,680 --> 00:16:23,640 big time webmail 851 00:16:23,640 --> 00:16:24,560 servers that have 852 00:16:24,560 --> 00:16:25,320 a lot of bandwidth 853 00:16:25,320 --> 00:16:26,220 that's not really 854 00:16:26,220 --> 00:16:27,400 an issue anymore. 855 00:16:27,620 --> 00:16:27,720 So, 856 00:16:27,780 --> 00:16:28,500 if you're trying 857 00:16:28,500 --> 00:16:29,160 to transfer a big 858 00:16:29,160 --> 00:16:29,700 file from one 859 00:16:29,700 --> 00:16:30,220 place to another 860 00:16:30,220 --> 00:16:31,240 speed really 861 00:16:31,240 --> 00:16:31,860 isn't a problem. 862 00:16:32,060 --> 00:16:32,860 And the last piece 863 00:16:32,860 --> 00:16:34,000 the most important 864 00:16:34,000 --> 00:16:35,300 piece is because 865 00:16:35,300 --> 00:16:35,980 people trust 866 00:16:35,980 --> 00:16:36,420 those domains. 867 00:16:36,720 --> 00:16:37,500 For some reason 868 00:16:37,500 --> 00:16:38,180 they see those 869 00:16:38,180 --> 00:16:38,720 domains that are 870 00:16:38,720 --> 00:16:39,840 recognizable and 871 00:16:39,840 --> 00:16:40,460 they trust those 872 00:16:40,460 --> 00:16:41,100 domains for some 873 00:16:41,100 --> 00:16:41,340 reason. 874 00:16:41,420 --> 00:16:41,760 It's like an 875 00:16:41,760 --> 00:16:42,340 implicit trust. 876 00:16:42,420 --> 00:16:42,580 They go, 877 00:16:42,620 --> 00:16:42,780 hey, 878 00:16:42,780 --> 00:16:43,200 I go to this 879 00:16:43,200 --> 00:16:44,720 server every day 880 00:16:44,720 --> 00:16:44,940 anyway. 881 00:16:45,120 --> 00:16:45,660 There's no way 882 00:16:45,660 --> 00:16:46,080 that malicious 883 00:16:46,080 --> 00:16:46,800 content can be 884 00:16:46,800 --> 00:16:47,320 coming from this 885 00:16:47,320 --> 00:16:47,680 web server. 886 00:16:47,880 --> 00:16:48,300 So, 887 00:16:48,940 --> 00:16:49,620 that's why we're 888 00:16:49,620 --> 00:16:50,560 focusing on webmail 889 00:16:50,560 --> 00:16:51,400 but like I said 890 00:16:51,400 --> 00:16:51,600 before, 891 00:16:52,240 --> 00:16:52,920 pretty much any 892 00:16:52,920 --> 00:16:53,680 application that 893 00:16:54,060 --> 00:16:54,980 exhibits a certain 894 00:16:54,980 --> 00:16:55,340 amount of 895 00:16:55,340 --> 00:16:55,760 characteristics, 896 00:16:56,180 --> 00:16:57,000 you can do these 897 00:16:57,000 --> 00:16:57,560 attacks against 898 00:16:57,560 --> 00:16:58,800 and other more 899 00:16:58,800 --> 00:16:59,440 nasty attacks. 900 00:17:00,400 --> 00:17:00,760 So, 901 00:17:00,900 --> 00:17:01,500 the first thing 902 00:17:01,500 --> 00:17:01,740 that we're going 903 00:17:01,740 --> 00:17:02,500 to do is we're 904 00:17:02,500 --> 00:17:03,020 going to bite the 905 00:17:03,020 --> 00:17:03,720 hand that feeds me 906 00:17:03,720 --> 00:17:04,580 and we're going 907 00:17:04,580 --> 00:17:05,120 to bite Yahoo. 908 00:17:05,440 --> 00:17:05,800 So, 909 00:17:05,880 --> 00:17:06,260 I'm going to walk 910 00:17:06,260 --> 00:17:06,580 you through a 911 00:17:06,580 --> 00:17:06,820 couple different 912 00:17:06,820 --> 00:17:07,440 things and then 913 00:17:07,440 --> 00:17:07,940 show you how this 914 00:17:07,940 --> 00:17:08,200 works. 915 00:17:08,440 --> 00:17:09,220 The first thing is 916 00:17:09,220 --> 00:17:09,560 I'm going to go 917 00:17:09,560 --> 00:17:10,400 really quick over 918 00:17:10,400 --> 00:17:11,000 the Yahoo sign-in 919 00:17:11,000 --> 00:17:11,440 process because 920 00:17:11,440 --> 00:17:12,280 it's really easy 921 00:17:12,280 --> 00:17:13,000 and then I'm going 922 00:17:13,000 --> 00:17:13,400 to show you some 923 00:17:13,400 --> 00:17:13,960 protection measures 924 00:17:13,960 --> 00:17:15,300 that Yahoo actually 925 00:17:15,300 --> 00:17:15,960 has against these 926 00:17:15,960 --> 00:17:16,500 kind of things. 927 00:17:16,620 --> 00:17:17,100 But then I'm going 928 00:17:17,100 --> 00:17:17,520 to show you how 929 00:17:17,520 --> 00:17:18,280 trivial they are 930 00:17:18,280 --> 00:17:18,760 because every time 931 00:17:18,760 --> 00:17:19,220 we come into 932 00:17:19,220 --> 00:17:20,360 contact with the 933 00:17:20,360 --> 00:17:21,220 actual protection 934 00:17:21,220 --> 00:17:21,800 measure against 935 00:17:21,800 --> 00:17:22,000 this, 936 00:17:22,080 --> 00:17:22,860 it's so trivial 937 00:17:22,860 --> 00:17:23,620 it's almost 938 00:17:23,620 --> 00:17:24,040 ridiculous. 939 00:17:24,420 --> 00:17:25,140 And then the 940 00:17:25,140 --> 00:17:25,700 last thing is how 941 00:17:25,700 --> 00:17:26,100 to store the 942 00:17:26,100 --> 00:17:26,620 content on there 943 00:17:26,620 --> 00:17:26,940 and how to 944 00:17:26,940 --> 00:17:27,480 serve the content. 945 00:17:27,760 --> 00:17:28,060 So, 946 00:17:29,220 --> 00:17:30,060 that's it right 947 00:17:30,060 --> 00:17:30,300 there. 948 00:17:30,440 --> 00:17:31,300 That's the only 949 00:17:31,300 --> 00:17:31,680 thing that's 950 00:17:31,680 --> 00:17:32,120 standing between 951 00:17:32,120 --> 00:17:33,180 you and having 952 00:17:33,180 --> 00:17:34,160 your own Yahoo 953 00:17:34,160 --> 00:17:34,680 mail account. 954 00:17:34,880 --> 00:17:35,760 That form right 955 00:17:35,760 --> 00:17:36,000 there. 956 00:17:36,200 --> 00:17:37,140 And the thing is 957 00:17:37,140 --> 00:17:38,260 that this form is 958 00:17:38,260 --> 00:17:38,880 really not designed 959 00:17:38,880 --> 00:17:39,420 against people 960 00:17:39,420 --> 00:17:40,500 registering accounts 961 00:17:40,500 --> 00:17:41,120 anonymously. 962 00:17:41,260 --> 00:17:42,140 It's more designed 963 00:17:42,140 --> 00:17:43,000 to prevent people 964 00:17:43,000 --> 00:17:44,100 or prevent bots 965 00:17:44,100 --> 00:17:45,500 from registering an 966 00:17:45,500 --> 00:17:46,580 account anonymously. 967 00:17:46,580 --> 00:17:47,760 So, as a person, 968 00:17:47,900 --> 00:17:48,720 pretty much anyone 969 00:17:48,720 --> 00:17:49,380 can go and just 970 00:17:49,380 --> 00:17:50,020 register an account 971 00:17:50,020 --> 00:17:50,500 on Yahoo, 972 00:17:50,700 --> 00:17:51,440 which is the same 973 00:17:51,440 --> 00:17:52,260 for most web mail 974 00:17:52,260 --> 00:17:52,460 servers. 975 00:17:52,660 --> 00:17:53,720 I'm sure everyone's 976 00:17:53,720 --> 00:17:54,360 seen something like 977 00:17:54,360 --> 00:17:55,360 this, really easy, 978 00:17:55,480 --> 00:17:55,960 where do I live, 979 00:17:56,080 --> 00:17:56,500 what's your name, 980 00:17:56,660 --> 00:17:57,380 what's your gender, 981 00:17:57,720 --> 00:17:58,480 select a username 982 00:17:58,480 --> 00:17:58,880 and password. 983 00:17:59,320 --> 00:18:00,160 So, let's say I go 984 00:18:00,160 --> 00:18:00,860 ahead and I create 985 00:18:00,860 --> 00:18:01,940 this anonymous account. 986 00:18:02,120 --> 00:18:02,380 I'm going to go 987 00:18:02,380 --> 00:18:02,820 ahead and call it 988 00:18:02,820 --> 00:18:03,460 a throwaway account 989 00:18:03,460 --> 00:18:04,480 because that's all 990 00:18:04,480 --> 00:18:05,000 I'm going to use it 991 00:18:05,000 --> 00:18:05,180 for. 992 00:18:05,360 --> 00:18:05,940 I'm going to use 993 00:18:05,940 --> 00:18:06,540 it maybe once or 994 00:18:06,540 --> 00:18:07,100 twice and then I'm 995 00:18:07,100 --> 00:18:07,400 going to throw it 996 00:18:07,400 --> 00:18:07,540 away. 997 00:18:07,960 --> 00:18:08,860 I've created it, 998 00:18:09,220 --> 00:18:09,940 now I have an 999 00:18:09,940 --> 00:18:10,580 account on Yahoo. 1000 00:18:11,040 --> 00:18:11,660 So, what I'm going 1001 00:18:11,660 --> 00:18:12,140 to do is I'm going 1002 00:18:12,140 --> 00:18:12,540 to go ahead and 1003 00:18:12,540 --> 00:18:13,440 upload a file to 1004 00:18:13,440 --> 00:18:13,660 Yahoo. 1005 00:18:13,800 --> 00:18:14,660 So, in this 1006 00:18:14,660 --> 00:18:15,400 screenshot right here 1007 00:18:15,400 --> 00:18:16,040 I show you, I 1008 00:18:16,040 --> 00:18:16,640 show that I've 1009 00:18:16,640 --> 00:18:17,560 uploaded a file 1010 00:18:17,560 --> 00:18:19,480 called pwdump.exe. 1011 00:18:19,780 --> 00:18:20,500 Now, there's 1012 00:18:20,500 --> 00:18:21,200 supposed to be some 1013 00:18:22,040 --> 00:18:22,720 antivirus protections 1014 00:18:22,720 --> 00:18:23,480 and scanning and 1015 00:18:23,480 --> 00:18:24,140 such that goes on 1016 00:18:24,140 --> 00:18:25,300 onto the applications 1017 00:18:25,300 --> 00:18:25,860 when they get 1018 00:18:25,860 --> 00:18:26,340 uploaded to the 1019 00:18:26,340 --> 00:18:26,560 server. 1020 00:18:26,820 --> 00:18:27,780 Every file that I've 1021 00:18:27,780 --> 00:18:28,480 tried to upload to 1022 00:18:28,480 --> 00:18:29,480 servers, it's just 1023 00:18:29,480 --> 00:18:29,960 been accepted. 1024 00:18:30,140 --> 00:18:30,620 I don't know what 1025 00:18:30,620 --> 00:18:32,060 the antivirus scanning 1026 00:18:32,060 --> 00:18:33,060 is and, you know, 1027 00:18:33,060 --> 00:18:34,420 I'm sure pwdump is 1028 00:18:34,420 --> 00:18:34,740 the greatest. 1029 00:18:34,740 --> 00:18:35,100 I'm sure there's no 1030 00:18:35,100 --> 00:18:36,320 virus threat in pwdump. 1031 00:18:36,320 --> 00:18:37,140 Right, no way. 1032 00:18:38,760 --> 00:18:39,720 pwdump is totally, 1033 00:18:39,800 --> 00:18:40,520 you know, not 1034 00:18:40,520 --> 00:18:41,100 malicious, right? 1035 00:18:41,180 --> 00:18:42,040 So, if anyone 1036 00:18:42,040 --> 00:18:42,500 is getting served 1037 00:18:42,500 --> 00:18:43,800 pwdump, it's always 1038 00:18:43,800 --> 00:18:44,180 for good. 1039 00:18:44,500 --> 00:18:46,680 So, when you see 1040 00:18:46,680 --> 00:18:47,200 this sort of thing 1041 00:18:47,200 --> 00:18:47,680 right here, you've 1042 00:18:47,680 --> 00:18:48,300 got attachments that 1043 00:18:48,300 --> 00:18:48,860 says, hey, the 1044 00:18:48,860 --> 00:18:49,620 following file has 1045 00:18:49,620 --> 00:18:50,300 been attached and 1046 00:18:50,300 --> 00:18:50,820 guess what, no 1047 00:18:50,820 --> 00:18:51,520 virus that's been 1048 00:18:51,520 --> 00:18:51,880 detected. 1049 00:18:52,440 --> 00:18:53,280 If you want to 1050 00:18:53,280 --> 00:18:53,900 attach more files, 1051 00:18:53,960 --> 00:18:54,400 just click here. 1052 00:18:54,920 --> 00:18:55,600 I think the most 1053 00:18:55,600 --> 00:18:56,240 important piece, once 1054 00:18:56,240 --> 00:18:56,920 again, scanned. 1055 00:18:57,220 --> 00:18:59,000 So, once again, the 1056 00:18:59,000 --> 00:18:59,620 most important piece 1057 00:18:59,620 --> 00:19:00,220 of this whole thing 1058 00:19:00,220 --> 00:19:01,400 is that little button 1059 00:19:01,400 --> 00:19:01,840 right there that 1060 00:19:01,840 --> 00:19:02,380 says download 1061 00:19:02,380 --> 00:19:02,660 attachment. 1062 00:19:03,180 --> 00:19:04,220 So, when you click 1063 00:19:04,220 --> 00:19:04,980 that button, download 1064 00:19:04,980 --> 00:19:05,980 attachment, what it 1065 00:19:05,980 --> 00:19:07,160 actually does is it 1066 00:19:07,160 --> 00:19:07,900 makes a get request. 1067 00:19:08,520 --> 00:19:09,860 And so, now, we go 1068 00:19:09,860 --> 00:19:10,660 back to that original 1069 00:19:10,660 --> 00:19:11,660 classic cross-site 1070 00:19:11,660 --> 00:19:11,900 request. 1071 00:19:12,040 --> 00:19:14,560 We have a get 1072 00:19:14,560 --> 00:19:15,600 request, and there's 1073 00:19:15,600 --> 00:19:16,160 certain parameters 1074 00:19:16,160 --> 00:19:16,520 that are getting 1075 00:19:16,520 --> 00:19:17,480 passed, and the 1076 00:19:17,480 --> 00:19:18,280 application is relying 1077 00:19:18,280 --> 00:19:19,100 on the fact that you 1078 00:19:19,100 --> 00:19:20,040 have a good session 1079 00:19:20,040 --> 00:19:21,320 to pull up that 1080 00:19:21,880 --> 00:19:22,260 file. 1081 00:19:22,860 --> 00:19:23,880 And so, that's part 1082 00:19:23,880 --> 00:19:24,440 of the get request 1083 00:19:24,440 --> 00:19:25,160 that's being made 1084 00:19:25,160 --> 00:19:26,260 when I click download 1085 00:19:26,260 --> 00:19:27,480 attachment for pwdump. 1086 00:19:27,780 --> 00:19:28,720 So, if I just make a 1087 00:19:28,720 --> 00:19:29,800 copy of that URL, 1088 00:19:30,120 --> 00:19:30,760 that get request, 1089 00:19:31,020 --> 00:19:31,920 and I have the 1090 00:19:31,920 --> 00:19:32,920 right session, I 1091 00:19:32,920 --> 00:19:33,500 should be able to 1092 00:19:33,500 --> 00:19:34,160 download that file. 1093 00:19:34,260 --> 00:19:34,720 I should be able to 1094 00:19:34,720 --> 00:19:35,420 serve that file to 1095 00:19:35,420 --> 00:19:35,660 somebody. 1096 00:19:36,000 --> 00:19:37,780 So, that's what I do. 1097 00:19:38,000 --> 00:19:38,980 I create a 1098 00:19:38,980 --> 00:19:39,940 JavaScript, right? 1099 00:19:40,280 --> 00:19:41,260 And let's say I 1100 00:19:41,260 --> 00:19:41,800 cross-site script 1101 00:19:41,800 --> 00:19:42,020 somebody. 1102 00:19:42,040 --> 00:19:42,780 And it's some kind 1103 00:19:42,780 --> 00:19:43,780 of phishing page, and 1104 00:19:43,780 --> 00:19:44,480 I want to serve them 1105 00:19:44,480 --> 00:19:45,500 a file, but I don't 1106 00:19:45,500 --> 00:19:46,060 want to serve them a 1107 00:19:46,060 --> 00:19:46,800 file from my server 1108 00:19:46,800 --> 00:19:48,660 because if I'm serving 1109 00:19:48,660 --> 00:19:49,680 bad files from my 1110 00:19:49,680 --> 00:19:50,320 server, someone could 1111 00:19:50,320 --> 00:19:51,040 come and kick down my 1112 00:19:51,040 --> 00:19:51,640 door and take my 1113 00:19:51,640 --> 00:19:52,360 server away from me. 1114 00:19:52,540 --> 00:19:53,420 I'd rather serve from 1115 00:19:53,420 --> 00:19:54,940 someone else's server, 1116 00:19:55,240 --> 00:19:55,380 right? 1117 00:19:55,520 --> 00:19:56,940 So, you create the 1118 00:19:56,940 --> 00:19:57,240 JavaScript. 1119 00:19:57,440 --> 00:19:58,060 If something happens, 1120 00:19:58,140 --> 00:19:58,860 cross-site scripting or 1121 00:19:58,860 --> 00:19:59,800 whatever, you can 1122 00:19:59,800 --> 00:20:00,640 actually create the 1123 00:20:00,640 --> 00:20:01,520 form like I showed you 1124 00:20:01,520 --> 00:20:02,220 in that example for 1125 00:20:02,220 --> 00:20:02,800 the WhatsApp gold 1126 00:20:02,800 --> 00:20:04,380 switch, create the 1127 00:20:04,380 --> 00:20:05,740 invisible iframe, just 1128 00:20:05,740 --> 00:20:07,160 get the post, have the 1129 00:20:07,160 --> 00:20:07,940 credentials for your 1130 00:20:07,940 --> 00:20:09,320 throwaway account, go 1131 00:20:09,320 --> 00:20:09,960 ahead and have that 1132 00:20:09,960 --> 00:20:10,600 posted to that 1133 00:20:10,600 --> 00:20:11,880 invisible iframe, and 1134 00:20:11,880 --> 00:20:12,520 then the next request 1135 00:20:12,520 --> 00:20:13,520 that you make is the 1136 00:20:13,520 --> 00:20:14,760 HTTP get request for 1137 00:20:14,760 --> 00:20:15,480 the file that you want 1138 00:20:15,480 --> 00:20:15,780 to serve. 1139 00:20:15,980 --> 00:20:17,200 And so, this is what 1140 00:20:17,200 --> 00:20:17,780 they would see right 1141 00:20:17,780 --> 00:20:17,980 here. 1142 00:20:18,140 --> 00:20:18,860 They would say, hey, 1143 00:20:19,900 --> 00:20:20,940 this server is trying 1144 00:20:20,940 --> 00:20:23,940 to serve you pwdump.exe, 1145 00:20:23,940 --> 00:20:24,860 but hey, guess what, 1146 00:20:24,880 --> 00:20:26,100 it's from mail.yahoo.com. 1147 00:20:26,820 --> 00:20:27,580 This is where we're 1148 00:20:27,580 --> 00:20:28,120 going to get it into 1149 00:20:28,120 --> 00:20:28,780 one of the protections. 1150 00:20:29,480 --> 00:20:30,460 If you actually take a 1151 00:20:30,460 --> 00:20:31,340 really good look at this 1152 00:20:31,340 --> 00:20:32,060 screenshot right here, 1153 00:20:32,220 --> 00:20:33,020 you'll see that the 1154 00:20:33,020 --> 00:20:33,860 get request is not 1155 00:20:33,860 --> 00:20:38,540 actually from us.f57.mail.yahoo.com, 1156 00:20:38,620 --> 00:20:39,180 which is where they 1157 00:20:39,180 --> 00:20:40,060 serve their mail from, 1158 00:20:40,140 --> 00:20:41,640 which is a little bit 1159 00:20:41,640 --> 00:20:42,560 more trusted than the 1160 00:20:42,560 --> 00:20:43,180 other server that 1161 00:20:43,180 --> 00:20:43,740 they're serving from. 1162 00:20:43,900 --> 00:20:44,760 They're actually trying 1163 00:20:44,760 --> 00:20:45,380 to serve it from a 1164 00:20:45,380 --> 00:20:46,020 server called 1165 00:20:46,020 --> 00:20:48,560 attach.re.mail.yahoo.com. 1166 00:20:48,880 --> 00:20:49,680 And this is something 1167 00:20:49,680 --> 00:20:50,620 that I don't, I think 1168 00:20:50,620 --> 00:20:51,220 I've ever heard this 1169 00:20:51,220 --> 00:20:52,080 concept before, but this 1170 00:20:52,080 --> 00:20:52,620 is something that I 1171 00:20:52,620 --> 00:20:53,740 call domain switching. 1172 00:20:54,060 --> 00:20:54,940 I think the guys at 1173 00:20:54,940 --> 00:20:55,880 Yahoo are pretty smart 1174 00:20:55,880 --> 00:20:56,380 and they're like, we 1175 00:20:56,380 --> 00:20:56,940 don't want to serve 1176 00:20:56,940 --> 00:20:57,520 this from our mail 1177 00:20:57,520 --> 00:20:57,720 server. 1178 00:20:57,960 --> 00:20:58,900 We want to serve this 1179 00:20:58,900 --> 00:20:59,840 from some other server. 1180 00:21:00,120 --> 00:21:00,940 So, we're going to 1181 00:21:00,940 --> 00:21:01,460 serve it from an 1182 00:21:01,460 --> 00:21:02,700 attachment server, right? 1183 00:21:02,860 --> 00:21:03,520 And so, that's what 1184 00:21:03,520 --> 00:21:03,860 they did. 1185 00:21:04,060 --> 00:21:04,740 But there's one big 1186 00:21:04,740 --> 00:21:05,080 problem. 1187 00:21:05,300 --> 00:21:06,260 A lot of times, the 1188 00:21:06,260 --> 00:21:07,080 attachment server, where 1189 00:21:07,080 --> 00:21:07,820 the content's actually 1190 00:21:07,820 --> 00:21:08,900 coming from, is in 1191 00:21:08,900 --> 00:21:10,120 reality the same server 1192 00:21:10,120 --> 00:21:10,800 as the mail server. 1193 00:21:11,060 --> 00:21:12,300 So, they've got a 1194 00:21:12,300 --> 00:21:13,060 different domain name, 1195 00:21:13,220 --> 00:21:14,100 but the request is 1196 00:21:14,100 --> 00:21:14,760 still going to the 1197 00:21:14,760 --> 00:21:15,380 same mail server. 1198 00:21:15,640 --> 00:21:16,720 So, you see that area 1199 00:21:16,720 --> 00:21:17,320 that I've highlighted 1200 00:21:17,320 --> 00:21:17,760 right there? 1201 00:21:18,540 --> 00:21:19,380 That's the full get 1202 00:21:19,380 --> 00:21:20,040 request, but if you 1203 00:21:20,040 --> 00:21:20,780 take that little piece 1204 00:21:20,780 --> 00:21:22,240 out right there and 1205 00:21:22,240 --> 00:21:23,140 just make the request 1206 00:21:23,140 --> 00:21:26,600 to usf574.mail.yahoo.com, 1207 00:21:26,740 --> 00:21:27,680 the content and the 1208 00:21:27,680 --> 00:21:28,440 file will still get 1209 00:21:28,440 --> 00:21:29,320 served anyway, but 1210 00:21:29,320 --> 00:21:30,000 it'll get served from 1211 00:21:30,000 --> 00:21:30,520 a different file. 1212 00:21:30,900 --> 00:21:31,740 It's supposedly a 1213 00:21:31,740 --> 00:21:32,360 different domain, but 1214 00:21:32,360 --> 00:21:33,200 it's the same server. 1215 00:21:33,540 --> 00:21:34,580 And that's the example 1216 00:21:34,580 --> 00:21:35,380 that you see right here. 1217 00:21:35,540 --> 00:21:36,380 If you take a look at 1218 00:21:36,380 --> 00:21:37,740 where it's from, it's 1219 00:21:37,740 --> 00:21:39,020 actually from us.f, 1220 00:21:40,460 --> 00:21:42,020 f574.mail.yahoo.com. 1221 00:21:42,300 --> 00:21:43,960 And, it gets even 1222 00:21:43,960 --> 00:21:45,120 crazier, you can 1223 00:21:45,120 --> 00:21:45,820 actually pour that 1224 00:21:45,820 --> 00:21:46,280 down some. 1225 00:21:46,480 --> 00:21:47,240 So, in the next 1226 00:21:47,240 --> 00:21:47,920 screenshot that I show 1227 00:21:47,920 --> 00:21:48,800 you, I've actually just 1228 00:21:48,800 --> 00:21:50,200 taken out the us.whatever 1229 00:21:50,200 --> 00:21:50,420 whatever. 1230 00:21:50,700 --> 00:21:51,400 And guess what? 1231 00:21:51,540 --> 00:21:52,260 You can actually pour 1232 00:21:52,260 --> 00:21:52,800 it down a little 1233 00:21:52,800 --> 00:21:53,480 further if you want. 1234 00:21:53,680 --> 00:21:54,200 And there's other 1235 00:21:54,200 --> 00:21:55,000 protections to do that. 1236 00:21:55,660 --> 00:21:56,060 There's other 1237 00:21:56,060 --> 00:21:56,960 protections against that. 1238 00:21:57,080 --> 00:21:57,500 I'm not going to show 1239 00:21:57,500 --> 00:21:58,000 you how to bypass 1240 00:21:58,000 --> 00:21:59,120 those, but I'm just 1241 00:21:59,120 --> 00:21:59,740 letting you know that 1242 00:21:59,740 --> 00:22:00,700 they're very, very, 1243 00:22:00,780 --> 00:22:01,520 very trivial. 1244 00:22:01,740 --> 00:22:03,640 So, I'll show you the 1245 00:22:03,640 --> 00:22:04,180 Yahoo demo. 1246 00:22:04,400 --> 00:22:06,260 It's really, I'll tell 1247 00:22:06,260 --> 00:22:06,840 you the truth, this is 1248 00:22:06,840 --> 00:22:07,820 kind of ghetto, and the 1249 00:22:07,820 --> 00:22:08,580 only reason it's kind 1250 00:22:08,580 --> 00:22:09,140 of ghetto is because 1251 00:22:09,140 --> 00:22:09,620 I'm definitely 1252 00:22:09,620 --> 00:22:10,640 afraid of connecting 1253 00:22:10,640 --> 00:22:11,440 to DEF CON's network 1254 00:22:11,440 --> 00:22:12,300 because it's the 1255 00:22:12,300 --> 00:22:13,300 nicest network in the 1256 00:22:13,300 --> 00:22:13,760 world, so. 1257 00:22:16,660 --> 00:22:17,900 But, if you see this 1258 00:22:17,900 --> 00:22:19,060 here, that's all that 1259 00:22:19,060 --> 00:22:19,860 it takes, right? 1260 00:22:20,120 --> 00:22:20,940 Let me pause this guy 1261 00:22:20,940 --> 00:22:21,240 right here. 1262 00:22:22,260 --> 00:22:23,000 That's all that it 1263 00:22:23,000 --> 00:22:23,280 takes. 1264 00:22:23,440 --> 00:22:24,900 A JavaScript that has 1265 00:22:24,900 --> 00:22:25,640 an iframe that you 1266 00:22:25,640 --> 00:22:27,120 can't see, and then 1267 00:22:27,120 --> 00:22:28,140 it posts the 1268 00:22:28,140 --> 00:22:28,860 credentials to that 1269 00:22:28,860 --> 00:22:30,260 iframe, forces the 1270 00:22:30,260 --> 00:22:31,760 authenticated session 1271 00:22:31,760 --> 00:22:33,000 with Yahoo, then makes 1272 00:22:33,000 --> 00:22:33,660 the appropriate get 1273 00:22:33,660 --> 00:22:34,740 request, then serves 1274 00:22:34,740 --> 00:22:35,580 the content from 1275 00:22:35,580 --> 00:22:36,340 Yahoo's server. 1276 00:22:36,660 --> 00:22:38,000 So, the victim in this 1277 00:22:38,000 --> 00:22:38,660 case doesn't have to 1278 00:22:38,660 --> 00:22:39,360 type anything, they 1279 00:22:39,360 --> 00:22:39,600 don't have to type 1280 00:22:39,620 --> 00:22:41,020 anything, if they think 1281 00:22:41,020 --> 00:22:41,900 that they're on a page 1282 00:22:41,900 --> 00:22:42,700 that's affiliated with 1283 00:22:42,700 --> 00:22:44,120 Yahoo, I can serve them 1284 00:22:44,120 --> 00:22:45,480 content that appears to 1285 00:22:45,480 --> 00:22:46,160 be coming from Yahoo. 1286 00:22:46,360 --> 00:22:47,140 I'm going to abuse 1287 00:22:47,820 --> 00:22:48,660 Yahoo's domain name 1288 00:22:48,660 --> 00:22:49,360 right here, because when 1289 00:22:49,360 --> 00:22:50,000 they look at the file 1290 00:22:50,000 --> 00:22:51,300 download and such, it 1291 00:22:51,300 --> 00:22:52,040 says it's actually 1292 00:22:52,040 --> 00:22:53,160 coming from Yahoo.com. 1293 00:22:53,360 --> 00:22:54,140 And like I said, once 1294 00:22:54,140 --> 00:22:54,840 again, you can actually 1295 00:22:54,840 --> 00:22:55,760 parse this down further 1296 00:22:55,760 --> 00:22:56,920 and make it, you know, 1297 00:22:56,920 --> 00:22:58,260 get served from almost 1298 00:22:59,160 --> 00:23:00,680 the root of Yahoo.com. 1299 00:23:00,820 --> 00:23:01,480 Pretty close. 1300 00:23:02,080 --> 00:23:02,840 That's left for an 1301 00:23:02,840 --> 00:23:03,120 exercise. 1302 00:23:03,480 --> 00:23:04,280 Right, exactly. 1303 00:23:05,080 --> 00:23:06,160 So, this is just a 1304 00:23:06,160 --> 00:23:07,100 blank page, yeah, you 1305 00:23:07,100 --> 00:23:07,560 know, if someone goes 1306 00:23:07,560 --> 00:23:08,080 to a blank page, 1307 00:23:08,180 --> 00:23:09,260 whatever, but, you 1308 00:23:09,260 --> 00:23:09,600 know, in reality, 1309 00:23:09,600 --> 00:23:10,460 it'd probably be pulled 1310 00:23:10,460 --> 00:23:11,160 off on something like 1311 00:23:11,160 --> 00:23:12,520 this, right, where you've 1312 00:23:12,520 --> 00:23:13,340 got this page and it's 1313 00:23:13,340 --> 00:23:14,440 like, hey, download the 1314 00:23:14,440 --> 00:23:15,300 latest version of, you 1315 00:23:15,300 --> 00:23:15,740 know, such and such 1316 00:23:15,740 --> 00:23:16,720 toolbar, blah, blah, 1317 00:23:16,720 --> 00:23:17,180 blah, blah, blah. 1318 00:23:17,400 --> 00:23:18,220 And in this case, it's 1319 00:23:18,220 --> 00:23:19,120 really easy to spot the 1320 00:23:19,120 --> 00:23:20,180 fake, because, you know, 1321 00:23:20,200 --> 00:23:20,920 I'm assuming that the 1322 00:23:20,920 --> 00:23:21,780 Yahoo toolbar is not 1323 00:23:21,780 --> 00:23:23,240 called command.exe, but 1324 00:23:23,240 --> 00:23:23,900 you can actually name 1325 00:23:23,900 --> 00:23:24,780 that to whatever file 1326 00:23:24,780 --> 00:23:25,640 that you want, you know. 1327 00:23:25,720 --> 00:23:26,300 It can be an 1328 00:23:26,300 --> 00:23:27,580 executable, you can use 1329 00:23:27,580 --> 00:23:28,220 this to serve your 1330 00:23:28,220 --> 00:23:29,200 JavaScript content for 1331 00:23:29,200 --> 00:23:29,920 cross-site scripting 1332 00:23:29,920 --> 00:23:30,980 attacks, you can use 1333 00:23:30,980 --> 00:23:32,560 this to serve wares or 1334 00:23:32,560 --> 00:23:33,020 whatever. 1335 00:23:33,280 --> 00:23:35,320 So, but, it's not 1336 00:23:35,320 --> 00:23:36,500 served from my server, 1337 00:23:36,720 --> 00:23:37,540 it's served from their 1338 00:23:37,540 --> 00:23:38,040 server, right? 1339 00:23:39,900 --> 00:23:40,600 So, let's go ahead and 1340 00:23:40,600 --> 00:23:41,320 finish this up, and 1341 00:23:41,320 --> 00:23:42,040 this will be closed. 1342 00:23:44,880 --> 00:23:46,960 Okay, so, I mean, how 1343 00:23:46,960 --> 00:23:48,160 bonehead of Yahoo, right? 1344 00:23:48,280 --> 00:23:49,240 I mean, what were they 1345 00:23:49,240 --> 00:23:49,600 thinking? 1346 00:23:49,860 --> 00:23:51,280 You know, so, we took a 1347 00:23:51,280 --> 00:23:51,820 look at some other 1348 00:23:51,820 --> 00:23:52,920 webmail servers to see 1349 00:23:52,920 --> 00:23:54,200 if they're vulnerable to 1350 00:23:54,200 --> 00:23:54,920 this kind of stuff, and 1351 00:23:54,920 --> 00:23:55,200 guess what? 1352 00:23:55,400 --> 00:23:56,400 I mean, they are. 1353 00:23:56,560 --> 00:23:57,300 Oh, my God, right? 1354 00:23:57,460 --> 00:23:58,580 So, the next example 1355 00:23:58,580 --> 00:23:59,220 that we're going to show 1356 00:23:59,220 --> 00:23:59,760 you is Gmail. 1357 00:23:59,900 --> 00:24:01,200 And we're not trying to 1358 00:24:01,200 --> 00:24:02,140 pick on Yahoo and Gmail 1359 00:24:02,140 --> 00:24:03,400 here, we're just showing 1360 00:24:03,400 --> 00:24:04,140 you that these are two 1361 00:24:04,140 --> 00:24:05,540 very, very well-respected 1362 00:24:05,540 --> 00:24:06,940 webmail servers who are 1363 00:24:06,940 --> 00:24:07,540 pretty good about 1364 00:24:07,540 --> 00:24:07,840 security. 1365 00:24:08,100 --> 00:24:08,900 They're very good about 1366 00:24:08,900 --> 00:24:09,580 security, actually. 1367 00:24:09,600 --> 00:24:11,040 And if these two 1368 00:24:11,040 --> 00:24:11,900 webmail servers are 1369 00:24:11,900 --> 00:24:12,620 vulnerable to this kind 1370 00:24:12,620 --> 00:24:13,560 of stuff, I mean, 1371 00:24:13,560 --> 00:24:14,380 imagine who else would 1372 00:24:14,380 --> 00:24:14,540 be. 1373 00:24:14,660 --> 00:24:15,580 Any kind of application 1374 00:24:15,580 --> 00:24:16,400 that exhibits 1375 00:24:16,400 --> 00:24:17,680 characteristics like this, 1376 00:24:17,820 --> 00:24:18,400 vulnerable. 1377 00:24:18,740 --> 00:24:19,920 So, once again, the 1378 00:24:19,920 --> 00:24:21,480 sign-up process, there it 1379 00:24:21,480 --> 00:24:21,640 is. 1380 00:24:21,720 --> 00:24:22,260 That's the only thing 1381 00:24:22,260 --> 00:24:23,120 standing between you and 1382 00:24:23,120 --> 00:24:23,700 a Gmail account. 1383 00:24:23,820 --> 00:24:24,440 I'm sure everyone here 1384 00:24:24,440 --> 00:24:25,280 has a Gmail account of 1385 00:24:25,280 --> 00:24:26,260 some sort or other. 1386 00:24:26,800 --> 00:24:27,900 More in protection 1387 00:24:27,900 --> 00:24:29,260 against bots as opposed 1388 00:24:29,260 --> 00:24:30,180 to human beings, right? 1389 00:24:30,260 --> 00:24:31,300 So, you sign up for 1390 00:24:31,300 --> 00:24:31,620 your account. 1391 00:24:31,760 --> 00:24:32,540 But, you know what? 1392 00:24:32,580 --> 00:24:33,300 Gmail has protections 1393 00:24:33,300 --> 00:24:33,760 as well. 1394 00:24:33,920 --> 00:24:35,900 So, not only do they 1395 00:24:35,900 --> 00:24:36,820 do domain switching in 1396 00:24:36,820 --> 00:24:38,480 certain cases, they also 1397 00:24:38,480 --> 00:24:39,220 don't allow certain 1398 00:24:39,220 --> 00:24:39,580 computers to do 1399 00:24:39,580 --> 00:24:40,400 pieces of content to be 1400 00:24:40,400 --> 00:24:41,220 served from their domain. 1401 00:24:41,800 --> 00:24:43,160 Smart, smart idea, right? 1402 00:24:43,380 --> 00:24:44,460 So, if you actually 1403 00:24:44,460 --> 00:24:45,840 upload command.exe and 1404 00:24:45,840 --> 00:24:46,580 try to email it to 1405 00:24:46,580 --> 00:24:47,380 someone else in a Gmail 1406 00:24:47,380 --> 00:24:48,220 account, even if it's 1407 00:24:48,220 --> 00:24:49,520 to yourself, Gmail will 1408 00:24:49,520 --> 00:24:50,080 give you a warning. 1409 00:24:50,200 --> 00:24:50,680 They'll say, hey, you 1410 00:24:50,680 --> 00:24:50,920 know what? 1411 00:24:51,520 --> 00:24:51,840 EXEs? 1412 00:24:51,980 --> 00:24:52,440 No way. 1413 00:24:52,560 --> 00:24:53,160 There's a lot of other 1414 00:24:53,160 --> 00:24:53,980 files that I won't take 1415 00:24:53,980 --> 00:24:54,280 as well. 1416 00:24:54,620 --> 00:24:58,980 So, but, but, let's say 1417 00:24:58,980 --> 00:24:59,980 I try to upload a file 1418 00:24:59,980 --> 00:25:01,160 called command.exe to 1419 00:25:01,160 --> 00:25:01,400 Gmail. 1420 00:25:01,720 --> 00:25:02,640 The first thing that I'll 1421 00:25:02,640 --> 00:25:03,900 see is something like 1422 00:25:03,900 --> 00:25:04,540 this where it'll say, 1423 00:25:04,620 --> 00:25:05,720 hey, you know, a little 1424 00:25:06,520 --> 00:25:07,380 paperclip, and it'll say 1425 00:25:07,380 --> 00:25:08,340 there's a file called 1426 00:25:08,340 --> 00:25:09,260 C, Windows, system 1427 00:25:09,260 --> 00:25:09,480 32. 1428 00:25:09,580 --> 00:25:11,000 command.exe, right? 1429 00:25:11,200 --> 00:25:12,960 If you wait three or 1430 00:25:12,960 --> 00:25:13,920 four seconds, what 1431 00:25:13,920 --> 00:25:15,100 happens is that actually 1432 00:25:15,100 --> 00:25:16,040 changes to a link. 1433 00:25:16,260 --> 00:25:17,340 So, at that point, 1434 00:25:17,960 --> 00:25:19,060 although Gmail will not 1435 00:25:19,060 --> 00:25:20,180 allow you to serve it to 1436 00:25:20,180 --> 00:25:21,340 someone else via their 1437 00:25:21,340 --> 00:25:23,020 email service, it's 1438 00:25:23,020 --> 00:25:23,900 already been uploaded to 1439 00:25:23,900 --> 00:25:24,340 their server. 1440 00:25:24,620 --> 00:25:27,020 And what, right, right. 1441 00:25:27,280 --> 00:25:30,700 So, so, the dangerous 1442 00:25:30,700 --> 00:25:32,180 piece of that is that, 1443 00:25:32,240 --> 00:25:32,820 you know, oh, it's 1444 00:25:32,820 --> 00:25:33,320 uploaded to their 1445 00:25:33,320 --> 00:25:33,600 server. 1446 00:25:33,720 --> 00:25:34,200 A lot of people don't 1447 00:25:34,200 --> 00:25:34,940 understand this concept 1448 00:25:34,940 --> 00:25:36,380 is that they've taken 1449 00:25:36,380 --> 00:25:37,820 ownership of my content. 1450 00:25:38,300 --> 00:25:39,340 That's the big thing to 1451 00:25:39,340 --> 00:25:39,560 take away from that. 1452 00:25:39,580 --> 00:25:40,880 They have taken 1453 00:25:40,880 --> 00:25:42,360 ownership of my content. 1454 00:25:42,620 --> 00:25:43,420 So, now, when someone 1455 00:25:43,420 --> 00:25:44,700 downloads that, dude, 1456 00:25:44,760 --> 00:25:45,480 that's not my content. 1457 00:25:45,640 --> 00:25:46,060 I don't know where that 1458 00:25:46,060 --> 00:25:46,420 came from. 1459 00:25:46,620 --> 00:25:47,500 That thing came from 1460 00:25:47,500 --> 00:25:48,240 that other server over 1461 00:25:48,240 --> 00:25:48,440 there. 1462 00:25:48,640 --> 00:25:49,480 They've taken ownership 1463 00:25:49,480 --> 00:25:50,120 of my content. 1464 00:25:50,420 --> 00:25:51,500 And so, in order to get 1465 00:25:51,500 --> 00:25:52,840 the location, in order to 1466 00:25:52,840 --> 00:25:54,180 get the get request for 1467 00:25:54,180 --> 00:25:55,740 my content, all you do is 1468 00:25:55,740 --> 00:25:56,680 right-click on a link and 1469 00:25:56,680 --> 00:25:57,900 say copy shortcut, and 1470 00:25:57,900 --> 00:25:58,440 it's going to give you 1471 00:25:58,440 --> 00:25:59,060 the whole link right 1472 00:25:59,060 --> 00:25:59,260 there. 1473 00:26:00,160 --> 00:26:01,500 Once again, back to 1474 00:26:01,500 --> 00:26:02,420 those two simple, simple 1475 00:26:02,420 --> 00:26:03,420 demos that I showed you. 1476 00:26:03,800 --> 00:26:04,500 Create the invisible 1477 00:26:04,500 --> 00:26:05,040 iframe. 1478 00:26:05,600 --> 00:26:06,460 Use the cross-site 1479 00:26:06,460 --> 00:26:07,280 scripting exploit to 1480 00:26:07,280 --> 00:26:07,880 write the form. 1481 00:26:08,140 --> 00:26:09,380 Use the form to post 1482 00:26:09,380 --> 00:26:10,380 to the invisible iframe. 1483 00:26:10,480 --> 00:26:11,380 You already know the 1484 00:26:11,380 --> 00:26:11,800 creds. 1485 00:26:11,840 --> 00:26:12,780 You signed up for it. 1486 00:26:12,840 --> 00:26:13,320 It's a throwaway 1487 00:26:13,320 --> 00:26:13,580 account. 1488 00:26:13,940 --> 00:26:14,780 Who cares if someone 1489 00:26:14,780 --> 00:26:15,660 compromises it two 1490 00:26:15,660 --> 00:26:16,360 seconds after you 1491 00:26:16,360 --> 00:26:17,120 compromise someone else 1492 00:26:17,120 --> 00:26:17,420 with it? 1493 00:26:17,540 --> 00:26:18,360 You can just create 1494 00:26:18,360 --> 00:26:18,840 another one. 1495 00:26:19,100 --> 00:26:20,040 After that, you know 1496 00:26:20,040 --> 00:26:20,880 what the get request is 1497 00:26:20,880 --> 00:26:21,780 to get the content off 1498 00:26:21,780 --> 00:26:21,960 of there. 1499 00:26:22,080 --> 00:26:23,020 Now you're serving it 1500 00:26:23,020 --> 00:26:23,860 from their content, or 1501 00:26:23,860 --> 00:26:24,520 now you're serving it 1502 00:26:24,520 --> 00:26:25,020 from their domain. 1503 00:26:25,300 --> 00:26:26,260 So, we'll show you the 1504 00:26:26,260 --> 00:26:27,780 Gmail demo as well. 1505 00:26:28,220 --> 00:26:29,080 It's pretty much the 1506 00:26:29,080 --> 00:26:29,720 same thing, though. 1507 00:26:32,020 --> 00:26:32,840 Here's a page right 1508 00:26:32,840 --> 00:26:33,040 here. 1509 00:26:33,640 --> 00:26:34,460 There's just a simple 1510 00:26:34,460 --> 00:26:34,720 link. 1511 00:26:34,940 --> 00:26:35,960 Someone clicks the link. 1512 00:26:36,160 --> 00:26:36,840 There's some JavaScript 1513 00:26:36,840 --> 00:26:37,540 that goes on in the 1514 00:26:37,540 --> 00:26:37,860 background. 1515 00:26:41,660 --> 00:26:42,540 And there you go. 1516 00:26:42,660 --> 00:26:43,620 Command.exe for 1517 00:26:43,620 --> 00:26:45,820 mail.google.com, right? 1518 00:26:46,020 --> 00:26:46,880 It could easily be 1519 00:26:46,880 --> 00:26:48,080 Google Desktop from 1520 00:26:48,080 --> 00:26:49,600 mail.google.com, or it 1521 00:26:49,600 --> 00:26:50,820 could easily be Google 1522 00:26:50,820 --> 00:26:51,900 Desktop from some other 1523 00:26:51,900 --> 00:26:52,920 domain that allows 1524 00:26:52,920 --> 00:26:53,480 domain switching 1525 00:26:53,900 --> 00:26:55,120 someplace else on the 1526 00:26:55,120 --> 00:26:56,840 Google whole scheme of 1527 00:26:56,840 --> 00:26:57,240 things, right? 1528 00:26:57,280 --> 00:26:57,820 Because they own a lot 1529 00:26:57,820 --> 00:26:58,420 of different domains. 1530 00:26:58,980 --> 00:27:02,460 So, and although I'm 1531 00:27:02,460 --> 00:27:03,100 not really big on 1532 00:27:03,100 --> 00:27:04,100 phishing, I think if 1533 00:27:04,100 --> 00:27:04,780 someone were to pull 1534 00:27:04,780 --> 00:27:05,520 off, like, a phishing 1535 00:27:05,520 --> 00:27:07,620 type thing on here, it 1536 00:27:07,620 --> 00:27:08,600 would just be the same 1537 00:27:08,600 --> 00:27:08,820 thing. 1538 00:27:08,920 --> 00:27:09,220 You know, hey, 1539 00:27:09,380 --> 00:27:10,220 download Google Desktop. 1540 00:27:10,600 --> 00:27:11,100 You know, click this 1541 00:27:11,100 --> 00:27:11,380 link. 1542 00:27:11,480 --> 00:27:11,900 This is yours. 1543 00:27:12,240 --> 00:27:13,100 You know, where's this 1544 00:27:13,100 --> 00:27:13,700 file coming from? 1545 00:27:13,740 --> 00:27:14,200 It's coming from 1546 00:27:14,200 --> 00:27:15,380 mail.google.com or some 1547 00:27:15,380 --> 00:27:16,820 other Google.com domain, 1548 00:27:17,000 --> 00:27:17,740 whichever one that you 1549 00:27:17,740 --> 00:27:18,100 want to pick. 1550 00:27:18,280 --> 00:27:19,000 And there it is up 1551 00:27:19,000 --> 00:27:19,180 there. 1552 00:27:19,480 --> 00:27:25,620 So, now, when I first 1553 00:27:25,620 --> 00:27:27,140 saw that, I was like, 1554 00:27:27,200 --> 00:27:28,060 man, I can probably 1555 00:27:28,060 --> 00:27:29,000 really abuse this, 1556 00:27:29,140 --> 00:27:29,920 because a lot of people 1557 00:27:29,920 --> 00:27:30,640 really trust those 1558 00:27:30,640 --> 00:27:31,140 names, right? 1559 00:27:31,220 --> 00:27:32,520 So, there's a lot of 1560 00:27:32,520 --> 00:27:33,040 different ways you can 1561 00:27:33,040 --> 00:27:33,440 abuse this. 1562 00:27:33,640 --> 00:27:34,700 Maybe it's not just to 1563 00:27:34,700 --> 00:27:35,780 serve command.exe to 1564 00:27:35,780 --> 00:27:36,160 your friend. 1565 00:27:36,320 --> 00:27:37,320 Maybe it's not just to 1566 00:27:37,320 --> 00:27:37,940 try to get your friend 1567 00:27:37,940 --> 00:27:38,960 to download your version 1568 00:27:38,960 --> 00:27:39,280 of the Google 1569 00:27:39,280 --> 00:27:40,520 desktop, so they can 1570 00:27:40,520 --> 00:27:41,220 install it on their 1571 00:27:41,220 --> 00:27:42,620 machine, and nice 1572 00:27:42,620 --> 00:27:43,420 things will happen. 1573 00:27:43,660 --> 00:27:44,680 Maybe you can use it to 1574 00:27:44,680 --> 00:27:45,580 serve malware, which we 1575 00:27:45,580 --> 00:27:46,320 just kind of showed you. 1576 00:27:46,480 --> 00:27:47,360 But maybe you could use 1577 00:27:47,360 --> 00:27:48,280 it to serve wares, right? 1578 00:27:48,360 --> 00:27:48,760 So, you have these 1579 00:27:48,760 --> 00:27:49,160 ware servers. 1580 00:27:49,520 --> 00:27:50,360 These email addresses 1581 00:27:50,360 --> 00:27:51,460 are constantly forwarding 1582 00:27:51,460 --> 00:27:52,440 attachments and forwarding 1583 00:27:52,440 --> 00:27:53,060 other emails to 1584 00:27:53,060 --> 00:27:54,140 different places, and 1585 00:27:54,140 --> 00:27:54,880 now you know the 1586 00:27:54,880 --> 00:27:55,580 username and creds for 1587 00:27:55,580 --> 00:27:56,080 all those email 1588 00:27:56,080 --> 00:27:56,460 addresses. 1589 00:27:56,800 --> 00:27:57,480 And so, when someone 1590 00:27:57,480 --> 00:27:58,080 wants to download 1591 00:27:58,080 --> 00:27:58,920 something from your 1592 00:27:58,920 --> 00:28:00,100 ware site, instead of 1593 00:28:00,100 --> 00:28:01,420 hosting the wares on 1594 00:28:01,420 --> 00:28:02,720 your server at home in 1595 00:28:02,720 --> 00:28:03,580 the basement, where mom 1596 00:28:03,580 --> 00:28:04,260 and dad always come 1597 00:28:04,260 --> 00:28:04,840 down and go, what do 1598 00:28:04,840 --> 00:28:05,340 you have on those 1599 00:28:05,340 --> 00:28:05,660 servers? 1600 00:28:05,820 --> 00:28:06,960 You can go, hey, I 1601 00:28:06,960 --> 00:28:07,340 don't have any 1602 00:28:07,340 --> 00:28:08,720 servers, I don't got any 1603 00:28:08,720 --> 00:28:09,720 software, nothing illegal 1604 00:28:09,720 --> 00:28:11,460 on my stuff, all I do is 1605 00:28:11,460 --> 00:28:12,500 hand out JavaScript to 1606 00:28:12,500 --> 00:28:13,080 people who want it, 1607 00:28:13,140 --> 00:28:13,240 right? 1608 00:28:13,720 --> 00:28:16,380 So, exactly, exactly. 1609 00:28:17,000 --> 00:28:17,700 File sharing. 1610 00:28:17,980 --> 00:28:18,680 There's actually another 1611 00:28:18,680 --> 00:28:19,520 little twist that someone 1612 00:28:19,520 --> 00:28:20,420 sent me about file 1613 00:28:20,420 --> 00:28:21,480 sharing was, there's 1614 00:28:21,480 --> 00:28:22,280 some guy, non-techie 1615 00:28:22,280 --> 00:28:23,000 guy, who just said, 1616 00:28:23,060 --> 00:28:23,380 you know what? 1617 00:28:23,740 --> 00:28:24,840 He tried to steal my 1618 00:28:24,840 --> 00:28:25,620 presentation, man, I was 1619 00:28:25,620 --> 00:28:26,400 kind of pissed, but it 1620 00:28:26,400 --> 00:28:27,540 was an Esquire, and 1621 00:28:27,540 --> 00:28:28,120 instead of actually 1622 00:28:28,120 --> 00:28:29,060 serving this stuff up 1623 00:28:29,060 --> 00:28:30,100 via JavaScript and that 1624 00:28:30,100 --> 00:28:31,000 sort of thing, he 1625 00:28:31,000 --> 00:28:31,980 actually just created an 1626 00:28:31,980 --> 00:28:32,980 email account, uploaded 1627 00:28:32,980 --> 00:28:35,700 like 150 MP3s on it, 1628 00:28:35,720 --> 00:28:36,500 and just sent out the 1629 00:28:36,500 --> 00:28:37,020 username and password 1630 00:28:37,020 --> 00:28:37,620 to all his friends, 1631 00:28:38,140 --> 00:28:38,700 which they don't 1632 00:28:38,700 --> 00:28:39,100 know, and then sent out 1633 00:28:39,100 --> 00:28:39,480 their username and 1634 00:28:39,480 --> 00:28:39,980 password to all their 1635 00:28:39,980 --> 00:28:40,660 friends, blah, blah, blah, 1636 00:28:40,660 --> 00:28:40,780 blah. 1637 00:28:41,040 --> 00:28:42,580 So, that's kind of cool, 1638 00:28:42,620 --> 00:28:43,260 but I think the way I do 1639 00:28:43,260 --> 00:28:43,920 it's a little bit cooler, 1640 00:28:44,040 --> 00:28:45,420 but he's still there. 1641 00:28:45,500 --> 00:28:46,240 Good concept, right? 1642 00:28:46,340 --> 00:28:46,980 Good concept. 1643 00:28:47,340 --> 00:28:47,900 And the last is 1644 00:28:47,900 --> 00:28:48,440 covert channels. 1645 00:28:48,680 --> 00:28:49,340 You can just pass 1646 00:28:49,340 --> 00:28:50,660 messages, never have to 1647 00:28:50,660 --> 00:28:51,440 have those messages on 1648 00:28:51,440 --> 00:28:52,640 your machine, and then 1649 00:28:53,180 --> 00:28:54,000 maybe you can take a 1650 00:28:54,000 --> 00:28:54,640 step away from the 1651 00:28:54,640 --> 00:28:54,880 browser. 1652 00:28:55,120 --> 00:28:55,980 Who says you have to 1653 00:28:55,980 --> 00:28:56,560 implement all this 1654 00:28:56,560 --> 00:28:57,180 stuff from the browser? 1655 00:28:57,780 --> 00:28:58,780 You can actually have a 1656 00:28:58,780 --> 00:28:59,560 full-blown application. 1657 00:28:59,860 --> 00:29:00,440 Someone could write a 1658 00:29:00,440 --> 00:29:01,780 P2P application that 1659 00:29:01,780 --> 00:29:02,500 could abuse this type 1660 00:29:02,500 --> 00:29:03,720 of functionality, never 1661 00:29:03,720 --> 00:29:04,820 pass creds in the open 1662 00:29:04,820 --> 00:29:05,480 or anything like that, 1663 00:29:05,540 --> 00:29:06,940 just pass sessions, and 1664 00:29:06,940 --> 00:29:07,840 just take advantage of 1665 00:29:08,700 --> 00:29:09,340 it that these places are 1666 00:29:09,340 --> 00:29:09,820 offering you. 1667 00:29:10,020 --> 00:29:11,380 Maybe we're already 1668 00:29:11,380 --> 00:29:12,460 running peer-to-peer 1669 00:29:12,460 --> 00:29:12,740 software. 1670 00:29:13,080 --> 00:29:13,960 Maybe someone's running 1671 00:29:13,960 --> 00:29:14,920 peer-to-peer software to 1672 00:29:14,920 --> 00:29:15,420 do this already. 1673 00:29:16,660 --> 00:29:17,900 But it doesn't stop 1674 00:29:17,900 --> 00:29:18,100 there. 1675 00:29:18,260 --> 00:29:18,720 I'm going to show you 1676 00:29:18,720 --> 00:29:19,520 one other attack that 1677 00:29:19,520 --> 00:29:20,480 basically abuses domain 1678 00:29:20,480 --> 00:29:21,700 name protections and 1679 00:29:21,700 --> 00:29:22,640 show you why, hey, you 1680 00:29:22,640 --> 00:29:23,360 know what, maybe someone 1681 00:29:23,360 --> 00:29:23,940 doesn't want to serve 1682 00:29:23,940 --> 00:29:24,780 wares, maybe someone 1683 00:29:24,780 --> 00:29:25,640 actually wants to attack 1684 00:29:25,640 --> 00:29:26,420 you and read some of 1685 00:29:26,420 --> 00:29:26,700 your stuff. 1686 00:29:26,920 --> 00:29:27,740 Maybe someone actually 1687 00:29:27,740 --> 00:29:28,860 wants to break some of 1688 00:29:28,860 --> 00:29:29,380 the domain name 1689 00:29:29,380 --> 00:29:30,320 protections that's 1690 00:29:30,320 --> 00:29:31,000 offered by different 1691 00:29:31,000 --> 00:29:31,940 client-side pieces of 1692 00:29:31,940 --> 00:29:32,280 technology. 1693 00:29:32,640 --> 00:29:33,600 And this is with Flash. 1694 00:29:33,900 --> 00:29:35,360 So, I don't know how 1695 00:29:35,360 --> 00:29:36,300 much you know about 1696 00:29:36,300 --> 00:29:37,100 Flash, but I'm just 1697 00:29:37,500 --> 00:29:38,340 going to give you a 1698 00:29:38,340 --> 00:29:39,840 quick, quick primer on 1699 00:29:39,840 --> 00:29:40,780 how Flash works, 1700 00:29:40,940 --> 00:29:41,360 especially with 1701 00:29:41,360 --> 00:29:42,040 cross-domain requests. 1702 00:29:42,980 --> 00:29:44,240 Well, Flash doesn't 1703 00:29:44,240 --> 00:29:44,900 allow cross-domain 1704 00:29:44,900 --> 00:29:45,840 requests like it 1705 00:29:45,840 --> 00:29:46,200 shouldn't. 1706 00:29:46,340 --> 00:29:47,680 Well, it kind of 1707 00:29:47,680 --> 00:29:48,100 doesn't allow 1708 00:29:48,100 --> 00:29:49,180 cross-domain requests, 1709 00:29:49,420 --> 00:29:49,580 right? 1710 00:29:49,840 --> 00:29:50,800 What it actually does 1711 00:29:50,800 --> 00:29:52,160 is it has something 1712 00:29:52,160 --> 00:29:52,740 that's called a 1713 00:29:52,740 --> 00:29:53,920 cross-domain.xml file, 1714 00:29:54,040 --> 00:29:54,620 and all you Flash 1715 00:29:54,620 --> 00:29:55,360 gurus should probably 1716 00:29:55,360 --> 00:29:55,780 know what the 1717 00:29:55,780 --> 00:29:57,340 cross-domain.xml file 1718 00:29:57,340 --> 00:29:57,640 is. 1719 00:29:57,860 --> 00:29:58,800 It's the thing that's 1720 00:29:58,800 --> 00:29:59,520 going to allow you to 1721 00:29:59,520 --> 00:30:00,200 do cross-domain 1722 00:30:00,200 --> 00:30:00,420 requests. 1723 00:30:00,900 --> 00:30:01,880 And now there's a 1724 00:30:01,880 --> 00:30:02,280 new piece of 1725 00:30:02,280 --> 00:30:03,300 functionality in Flash, 1726 00:30:03,300 --> 00:30:04,260 I think, as of Flash 1727 00:30:04,260 --> 00:30:05,440 7, called Load 1728 00:30:05,440 --> 00:30:06,660 Policy File, which 1729 00:30:06,660 --> 00:30:07,280 will also make your 1730 00:30:07,280 --> 00:30:08,100 life a lot easier as 1731 00:30:08,100 --> 00:30:09,080 a developer to do 1732 00:30:09,080 --> 00:30:09,800 cross-domain requests 1733 00:30:10,300 --> 00:30:11,020 to servers. 1734 00:30:11,500 --> 00:30:11,820 So the 1735 00:30:11,820 --> 00:30:13,000 cross-domain.xml file, 1736 00:30:13,140 --> 00:30:13,840 there's an example of 1737 00:30:13,840 --> 00:30:14,740 the cross-domain.xml 1738 00:30:14,740 --> 00:30:14,980 file. 1739 00:30:15,260 --> 00:30:16,740 If anyone here wants 1740 00:30:16,740 --> 00:30:17,080 to put a 1741 00:30:17,080 --> 00:30:18,260 cross-domain.xml file 1742 00:30:18,260 --> 00:30:18,980 on their web server, 1743 00:30:19,160 --> 00:30:20,080 this is the way to 1744 00:30:20,080 --> 00:30:20,380 do it. 1745 00:30:20,560 --> 00:30:21,300 Just go ahead and 1746 00:30:21,300 --> 00:30:22,080 say, allow access 1747 00:30:22,080 --> 00:30:22,920 from domain and put 1748 00:30:22,920 --> 00:30:23,480 a star in there. 1749 00:30:23,660 --> 00:30:24,220 That's the most 1750 00:30:24,220 --> 00:30:25,120 secure way to do it, 1751 00:30:25,160 --> 00:30:25,320 okay? 1752 00:30:25,820 --> 00:30:26,640 Take this screenshot, 1753 00:30:27,120 --> 00:30:27,980 take this screenshot, 1754 00:30:28,220 --> 00:30:28,840 paste it into an 1755 00:30:28,840 --> 00:30:29,700 xml file, and throw 1756 00:30:29,700 --> 00:30:30,300 it on your server. 1757 00:30:30,460 --> 00:30:31,280 You're really, really 1758 00:30:31,280 --> 00:30:31,520 good. 1759 00:30:31,760 --> 00:30:32,740 In reality, that's 1760 00:30:32,740 --> 00:30:33,380 not the best way to 1761 00:30:33,380 --> 00:30:33,660 do it. 1762 00:30:33,760 --> 00:30:34,320 Basically, what this 1763 00:30:34,320 --> 00:30:35,520 is saying is, when 1764 00:30:35,520 --> 00:30:36,100 Flash makes a 1765 00:30:36,100 --> 00:30:36,780 cross-domain request 1766 00:30:36,780 --> 00:30:38,020 to some server, let's 1767 00:30:38,020 --> 00:30:39,100 say Flash makes a 1768 00:30:39,100 --> 00:30:39,700 cross-domain request 1769 00:30:39,700 --> 00:30:41,660 to Gmail, mail.google.com. 1770 00:30:42,360 --> 00:30:43,320 If it finds a 1771 00:30:43,320 --> 00:30:44,480 cross-domain.xml file 1772 00:30:44,480 --> 00:30:45,460 on there, and that 1773 00:30:45,460 --> 00:30:46,640 cross-domain.xml file 1774 00:30:46,640 --> 00:30:47,840 says, allow access 1775 00:30:47,840 --> 00:30:49,000 from star, that 1776 00:30:49,000 --> 00:30:51,340 means any domain on 1777 00:30:51,340 --> 00:30:52,260 the internet can make 1778 00:30:52,260 --> 00:30:53,760 a cross-domain request 1779 00:30:53,760 --> 00:30:55,200 to mail.google.com, 1780 00:30:55,280 --> 00:30:55,980 if it finds this 1781 00:30:55,980 --> 00:30:56,260 file. 1782 00:30:56,920 --> 00:30:57,720 Now, typically, 1783 00:30:57,960 --> 00:31:00,180 cross-domain.xml can 1784 00:31:00,180 --> 00:31:01,060 only be located in 1785 00:31:01,060 --> 00:31:01,900 one place, and that's 1786 00:31:01,900 --> 00:31:02,380 the web route. 1787 00:31:02,640 --> 00:31:04,080 But, if you look at 1788 00:31:04,080 --> 00:31:04,940 some of the security 1789 00:31:04,940 --> 00:31:05,920 policies written by 1790 00:31:05,920 --> 00:31:06,080 Google, you'll see 1791 00:31:06,100 --> 00:31:07,080 Adobe and Macro 1792 00:31:07,080 --> 00:31:08,160 Media, they have a 1793 00:31:08,160 --> 00:31:08,700 couple different ways 1794 00:31:08,700 --> 00:31:09,100 to do it. 1795 00:31:09,320 --> 00:31:10,780 So, if you look at 1796 00:31:10,780 --> 00:31:12,120 the documentation, the 1797 00:31:12,120 --> 00:31:12,900 documentation for 1798 00:31:12,900 --> 00:31:13,360 something called 1799 00:31:13,360 --> 00:31:14,480 system.security.load 1800 00:31:14,480 --> 00:31:15,900 policy file, allows 1801 00:31:15,900 --> 00:31:17,020 administrators of web 1802 00:31:17,020 --> 00:31:18,340 servers to write the 1803 00:31:18,340 --> 00:31:19,520 cross-domain.xml file 1804 00:31:19,520 --> 00:31:20,240 and put it into their 1805 00:31:20,240 --> 00:31:20,640 web server. 1806 00:31:20,940 --> 00:31:22,100 Now, when a Flash 1807 00:31:22,100 --> 00:31:23,120 object tries to make 1808 00:31:23,120 --> 00:31:23,900 a cross-domain request 1809 00:31:23,900 --> 00:31:24,660 to that web server, 1810 00:31:24,800 --> 00:31:25,500 it's going to first 1811 00:31:25,500 --> 00:31:26,340 check the web route. 1812 00:31:26,600 --> 00:31:27,700 And if the file 1813 00:31:27,700 --> 00:31:28,500 doesn't exist in the 1814 00:31:28,500 --> 00:31:29,500 web route, it's not 1815 00:31:29,500 --> 00:31:30,260 going to allow you to 1816 00:31:30,260 --> 00:31:30,960 do a cross-domain 1817 00:31:31,540 --> 00:31:32,580 request to that web 1818 00:31:32,580 --> 00:31:32,840 server. 1819 00:31:33,180 --> 00:31:35,800 However, if the 1820 00:31:35,800 --> 00:31:36,840 Flash applet that 1821 00:31:36,840 --> 00:31:38,080 you're loading uses 1822 00:31:38,080 --> 00:31:39,120 the load policy file, 1823 00:31:40,020 --> 00:31:41,380 system.security.load 1824 00:31:41,380 --> 00:31:42,100 policy file, because 1825 00:31:42,100 --> 00:31:42,780 it's really secure, 1826 00:31:42,980 --> 00:31:43,100 right? 1827 00:31:43,840 --> 00:31:45,020 And you can specify 1828 00:31:45,020 --> 00:31:46,560 your own location for 1829 00:31:46,560 --> 00:31:47,600 the cross-domain.xml 1830 00:31:47,600 --> 00:31:48,740 file, and the Flash 1831 00:31:48,740 --> 00:31:50,120 player makes that 1832 00:31:50,120 --> 00:31:51,000 request and finds the 1833 00:31:51,000 --> 00:31:52,100 cross-domain.xml file 1834 00:31:52,100 --> 00:31:53,460 there, it'll allow you 1835 00:31:53,460 --> 00:31:54,680 to do the cross-domain.xml 1836 00:31:54,680 --> 00:31:55,080 files. 1837 00:31:55,260 --> 00:31:56,900 So, this language 1838 00:31:56,900 --> 00:31:57,640 right here is taken 1839 00:31:57,640 --> 00:31:58,540 straight from the 1840 00:31:58,540 --> 00:31:59,200 security documents, 1841 00:31:59,440 --> 00:32:00,540 and this API was 1842 00:32:00,540 --> 00:32:01,220 introduced in Flash 1843 00:32:01,220 --> 00:32:03,960 Player 7, 7.0.19.0 1844 00:32:03,960 --> 00:32:04,440 to be exact. 1845 00:32:05,300 --> 00:32:05,780 First of all, 1846 00:32:05,780 --> 00:32:07,840 from 7.0.19.0, you 1847 00:32:07,840 --> 00:32:08,680 can specify the 1848 00:32:08,680 --> 00:32:09,420 location for the 1849 00:32:09,420 --> 00:32:10,640 cross-domain.xml file. 1850 00:32:10,960 --> 00:32:13,020 So, as you've seen 1851 00:32:13,020 --> 00:32:14,040 before, all you need 1852 00:32:14,040 --> 00:32:15,840 to do is, once again, 1853 00:32:15,980 --> 00:32:16,920 create the invisible 1854 00:32:16,920 --> 00:32:18,360 iframe, use the 1855 00:32:18,360 --> 00:32:19,040 cross-site scripting 1856 00:32:19,040 --> 00:32:20,440 exploit, load the 1857 00:32:20,440 --> 00:32:21,820 Flash player, tell the 1858 00:32:21,820 --> 00:32:22,660 Flash player exactly 1859 00:32:22,660 --> 00:32:23,400 where to find the 1860 00:32:23,400 --> 00:32:24,480 cross-domain.xml file, 1861 00:32:24,620 --> 00:32:25,420 which is demonstrated 1862 00:32:25,420 --> 00:32:25,960 in this screenshot 1863 00:32:25,960 --> 00:32:26,400 right here. 1864 00:32:26,580 --> 00:32:27,500 I can magnify it. 1865 00:32:27,900 --> 00:32:28,760 You can take a look 1866 00:32:28,760 --> 00:32:29,340 at the slides later. 1867 00:32:29,520 --> 00:32:30,600 You can specify the 1868 00:32:30,600 --> 00:32:32,200 exact request that the 1869 00:32:32,200 --> 00:32:33,120 Flash player needs to 1870 00:32:33,120 --> 00:32:33,640 make to find the 1871 00:32:33,640 --> 00:32:35,700 cross-domain.xml file, 1872 00:32:35,780 --> 00:32:36,880 and once it's made 1873 00:32:36,880 --> 00:32:37,700 that request and found 1874 00:32:37,700 --> 00:32:39,100 it, the Flash player 1875 00:32:39,100 --> 00:32:39,680 can now do 1876 00:32:39,680 --> 00:32:40,400 cross-domain requests 1877 00:32:40,400 --> 00:32:41,820 to whatever server it 1878 00:32:41,820 --> 00:32:42,900 is that's hosting that 1879 00:32:42,900 --> 00:32:44,080 file, which you put 1880 00:32:44,080 --> 00:32:44,800 there that owns your 1881 00:32:44,800 --> 00:32:45,160 content. 1882 00:32:45,660 --> 00:32:47,160 So, if you've 1883 00:32:47,160 --> 00:32:47,920 attacked someone and 1884 00:32:47,920 --> 00:32:48,920 you want to maybe 1885 00:32:48,920 --> 00:32:50,240 follow their Google 1886 00:32:50,240 --> 00:32:51,400 search habits, or 1887 00:32:51,400 --> 00:32:52,000 maybe if you want to 1888 00:32:52,000 --> 00:32:52,820 wait and see if they're 1889 00:32:52,820 --> 00:32:53,500 going to log into their 1890 00:32:53,500 --> 00:32:54,320 email after they've 1891 00:32:54,320 --> 00:32:54,840 been attacked by 1892 00:32:54,840 --> 00:32:55,600 cross-site scripting, 1893 00:32:56,140 --> 00:32:56,940 you can just wait, 1894 00:32:57,060 --> 00:32:57,880 and as soon as they 1895 00:32:57,880 --> 00:32:59,480 do that, the Flash 1896 00:32:59,480 --> 00:33:00,020 player that you 1897 00:33:00,020 --> 00:33:00,740 instantiated on their 1898 00:33:00,740 --> 00:33:01,740 machine is now 1899 00:33:01,740 --> 00:33:02,420 capable of making 1900 00:33:02,420 --> 00:33:03,980 cross-domain requests 1901 00:33:03,980 --> 00:33:05,200 to that web server 1902 00:33:05,200 --> 00:33:05,720 because you put 1903 00:33:05,780 --> 00:33:06,400 your content there, 1904 00:33:06,520 --> 00:33:07,400 and they owned it. 1905 00:33:07,460 --> 00:33:08,460 They took ownership 1906 00:33:08,460 --> 00:33:08,900 of that. 1907 00:33:10,640 --> 00:33:11,820 The example I gave 1908 00:33:11,820 --> 00:33:12,400 right here, it says 1909 00:33:12,400 --> 00:33:14,540 mail.google.com 1910 00:33:14,540 --> 00:33:15,420 slash mail, and 1911 00:33:15,420 --> 00:33:15,820 then there's the 1912 00:33:15,820 --> 00:33:16,480 request after it, 1913 00:33:16,480 --> 00:33:17,620 the parameters, but 1914 00:33:17,620 --> 00:33:18,280 once again, with the 1915 00:33:18,280 --> 00:33:18,720 domain switching, 1916 00:33:18,960 --> 00:33:19,740 there's a lot of play 1917 00:33:19,740 --> 00:33:20,860 that you can do, so 1918 00:33:20,860 --> 00:33:21,620 those people who know 1919 00:33:21,620 --> 00:33:22,780 how the load policy 1920 00:33:22,780 --> 00:33:24,140 file works really, 1921 00:33:24,200 --> 00:33:25,320 really well, knows 1922 00:33:25,320 --> 00:33:26,580 that it'll only allow 1923 00:33:26,580 --> 00:33:27,500 you to go back to 1924 00:33:27,500 --> 00:33:29,660 the web folder that's 1925 00:33:29,660 --> 00:33:31,060 specified in the 1926 00:33:31,060 --> 00:33:32,140 request, in the load 1927 00:33:32,140 --> 00:33:32,700 policy request. 1928 00:33:33,000 --> 00:33:34,020 So, if it's slash 1929 00:33:34,020 --> 00:33:35,400 mail, then you'll 1930 00:33:35,400 --> 00:33:35,760 only be able to 1931 00:33:35,780 --> 00:33:36,500 go to slash mail 1932 00:33:36,500 --> 00:33:37,560 and above, but once 1933 00:33:37,560 --> 00:33:37,980 again, with the 1934 00:33:37,980 --> 00:33:38,400 domain switching 1935 00:33:38,400 --> 00:33:40,420 stuff, you can 1936 00:33:40,420 --> 00:33:41,120 basically take away 1937 00:33:41,120 --> 00:33:42,400 that last slash, and 1938 00:33:42,400 --> 00:33:43,880 it'll appear as if 1939 00:33:43,880 --> 00:33:44,500 it's being served 1940 00:33:44,500 --> 00:33:45,020 almost from the 1941 00:33:45,020 --> 00:33:46,200 root, so very 1942 00:33:46,200 --> 00:33:46,580 dangerous. 1943 00:33:48,380 --> 00:33:49,240 Okay, we're going 1944 00:33:49,240 --> 00:33:49,600 to talk a little 1945 00:33:49,600 --> 00:33:50,100 about defending. 1946 00:33:54,160 --> 00:33:55,260 Okay, if you need 1947 00:33:55,260 --> 00:33:55,820 to know about how 1948 00:33:55,820 --> 00:33:56,340 to protect yourself 1949 00:33:56,340 --> 00:33:56,880 against this sort 1950 00:33:56,880 --> 00:33:58,480 of stuff, you can 1951 00:33:58,480 --> 00:33:58,960 catch up with me 1952 00:33:58,960 --> 00:33:59,220 later. 1953 00:33:59,700 --> 00:34:00,760 I'm done drinking 1954 00:34:00,760 --> 00:34:01,520 beer for right now, 1955 00:34:01,640 --> 00:34:02,660 but I'll be drinking 1956 00:34:02,660 --> 00:34:03,300 water someplace, 1957 00:34:03,600 --> 00:34:04,440 trying to hydrate, 1958 00:34:04,540 --> 00:34:05,200 but we can talk 1959 00:34:05,200 --> 00:34:05,460 about some 1960 00:34:05,460 --> 00:34:05,760 protection stuff 1961 00:34:05,780 --> 00:34:06,820 on this, because I 1962 00:34:06,820 --> 00:34:07,360 really want to let 1963 00:34:07,360 --> 00:34:08,020 Nate talk about 1964 00:34:08,020 --> 00:34:08,600 some of the URI 1965 00:34:08,600 --> 00:34:09,100 stuff that we've 1966 00:34:09,100 --> 00:34:09,520 been working on 1967 00:34:09,520 --> 00:34:09,700 lately. 1968 00:34:12,380 --> 00:34:13,660 All right, so on 1969 00:34:13,660 --> 00:34:14,400 to the O-Days, I 1970 00:34:14,400 --> 00:34:14,520 guess. 1971 00:34:14,880 --> 00:34:15,660 It's good to see so 1972 00:34:15,660 --> 00:34:16,240 many people here 1973 00:34:16,240 --> 00:34:17,360 after a long week of 1974 00:34:17,360 --> 00:34:18,220 drinking and having 1975 00:34:18,220 --> 00:34:18,920 fun here in Vegas. 1976 00:34:19,060 --> 00:34:19,820 It's a good thing. 1977 00:34:20,620 --> 00:34:21,340 A lot of people 1978 00:34:21,340 --> 00:34:22,080 have been asking us 1979 00:34:22,080 --> 00:34:22,740 a lot of questions 1980 00:34:22,740 --> 00:34:24,680 about this URI use 1981 00:34:24,680 --> 00:34:25,300 and abuse that 1982 00:34:25,300 --> 00:34:25,740 Billy and I have 1983 00:34:25,740 --> 00:34:26,360 been talking about 1984 00:34:26,360 --> 00:34:27,400 for the past, I 1985 00:34:27,400 --> 00:34:27,600 don't know, a 1986 00:34:27,600 --> 00:34:27,960 couple weeks. 1987 00:34:28,620 --> 00:34:29,180 There's been a 1988 00:34:29,180 --> 00:34:29,800 couple O-Days we've 1989 00:34:29,800 --> 00:34:30,420 released on this 1990 00:34:30,420 --> 00:34:30,820 for some of the 1991 00:34:30,820 --> 00:34:31,380 major browsers. 1992 00:34:33,020 --> 00:34:34,080 So, I think one of 1993 00:34:34,080 --> 00:34:34,700 the things people, 1994 00:34:35,100 --> 00:34:35,760 you know, want to 1995 00:34:35,760 --> 00:34:36,560 know are, what are 1996 00:34:36,560 --> 00:34:37,200 these URIs? 1997 00:34:37,280 --> 00:34:38,220 So, you've got them 1998 00:34:38,220 --> 00:34:38,880 all over your machine. 1999 00:34:39,060 --> 00:34:39,600 You know the common 2000 00:34:39,600 --> 00:34:40,320 ones, you know 2001 00:34:40,320 --> 00:34:42,660 HTTP, FTP, but what 2002 00:34:42,660 --> 00:34:43,200 other ones do you 2003 00:34:43,200 --> 00:34:44,340 not know about, right? 2004 00:34:44,560 --> 00:34:45,260 Did you know that 2005 00:34:45,260 --> 00:34:46,080 there's an AIM URI 2006 00:34:46,080 --> 00:34:46,740 on your system? 2007 00:34:46,880 --> 00:34:47,520 Did you know that 2008 00:34:47,520 --> 00:34:48,400 there's a Firefox URL 2009 00:34:48,900 --> 00:34:49,740 on your system? 2010 00:34:49,940 --> 00:34:50,340 Picasa? 2011 00:34:50,620 --> 00:34:51,400 I mean, all these 2012 00:34:51,400 --> 00:34:51,900 things are being 2013 00:34:51,900 --> 00:34:52,560 registered by 2014 00:34:52,560 --> 00:34:53,940 developers, and any 2015 00:34:53,940 --> 00:34:54,740 developer who wants 2016 00:34:54,740 --> 00:34:55,540 to code an application, 2017 00:34:56,040 --> 00:34:56,840 they can register 2018 00:34:56,840 --> 00:34:58,260 their own URI that 2019 00:34:58,260 --> 00:34:58,940 they can determine 2020 00:34:58,940 --> 00:34:59,640 how it interacts 2021 00:34:59,640 --> 00:35:00,700 with that application 2022 00:35:01,120 --> 00:35:02,160 on the back end of 2023 00:35:02,160 --> 00:35:02,600 your system. 2024 00:35:02,940 --> 00:35:03,840 So, what's crazy 2025 00:35:03,840 --> 00:35:04,440 about this? 2026 00:35:04,560 --> 00:35:05,660 Well, any 2027 00:35:05,660 --> 00:35:06,300 anybody knows, a 2028 00:35:06,300 --> 00:35:07,640 URI is able to be 2029 00:35:07,640 --> 00:35:08,780 put into an HTML 2030 00:35:08,780 --> 00:35:09,920 web page and 2031 00:35:09,920 --> 00:35:10,300 accessed. 2032 00:35:10,620 --> 00:35:11,220 So, if you 2033 00:35:11,220 --> 00:35:11,800 cross-site script 2034 00:35:11,800 --> 00:35:13,140 someone, you're now 2035 00:35:13,140 --> 00:35:14,380 able to access that 2036 00:35:14,380 --> 00:35:15,220 URI through that 2037 00:35:15,220 --> 00:35:15,900 cross-site scripting 2038 00:35:15,900 --> 00:35:17,160 exposure, and 2039 00:35:17,160 --> 00:35:18,240 through, you know, 2040 00:35:18,340 --> 00:35:19,120 transitive property 2041 00:35:19,120 --> 00:35:19,780 or whatever we are 2042 00:35:19,780 --> 00:35:20,720 here, you're going 2043 00:35:20,720 --> 00:35:21,340 to be able to also 2044 00:35:21,340 --> 00:35:22,020 interact with the 2045 00:35:22,020 --> 00:35:22,860 commands that the 2046 00:35:22,860 --> 00:35:23,640 URI is going to be 2047 00:35:23,640 --> 00:35:24,360 passed to on the 2048 00:35:24,360 --> 00:35:24,920 back end. 2049 00:35:25,280 --> 00:35:26,180 So, it's really 2050 00:35:26,180 --> 00:35:26,620 dangerous. 2051 00:35:26,760 --> 00:35:27,300 I mean, you've got 2052 00:35:27,300 --> 00:35:28,360 these cross-site 2053 00:35:28,360 --> 00:35:29,120 scripting exposures 2054 00:35:29,120 --> 00:35:30,080 now going not just 2055 00:35:30,080 --> 00:35:31,360 to the browser, but 2056 00:35:31,360 --> 00:35:32,020 to the back end 2057 00:35:32,020 --> 00:35:32,380 applications. 2058 00:35:34,840 --> 00:35:35,580 You might want 2059 00:35:35,580 --> 00:35:35,940 to know what's 2060 00:35:35,940 --> 00:35:36,620 registered on your 2061 00:35:36,620 --> 00:35:37,480 own personal machine. 2062 00:35:37,820 --> 00:35:38,720 A good friend of 2063 00:35:38,720 --> 00:35:39,680 ours, Eric Cabedas, 2064 00:35:39,700 --> 00:35:40,180 I'm sure probably 2065 00:35:40,180 --> 00:35:40,900 several people here 2066 00:35:40,900 --> 00:35:42,160 know him, helped us 2067 00:35:42,160 --> 00:35:42,820 with writing a tool 2068 00:35:42,820 --> 00:35:43,540 called Duh! 2069 00:35:43,580 --> 00:35:44,360 It's dump URL 2070 00:35:44,360 --> 00:35:44,820 handlers. 2071 00:35:45,260 --> 00:35:46,020 Pretty simple. 2072 00:35:46,140 --> 00:35:46,800 It searches through 2073 00:35:46,800 --> 00:35:47,780 the registry, finds 2074 00:35:47,780 --> 00:35:48,320 the appropriate 2075 00:35:48,320 --> 00:35:49,860 entries, and it 2076 00:35:49,860 --> 00:35:50,560 then pulls out the 2077 00:35:50,560 --> 00:35:51,120 relevant information. 2078 00:35:51,580 --> 00:35:52,420 You can see a 2079 00:35:52,420 --> 00:35:53,140 screenshot here. 2080 00:35:53,240 --> 00:35:53,800 It looks terribly 2081 00:35:53,800 --> 00:35:54,140 blurry. 2082 00:35:54,360 --> 00:35:54,960 We're sorry about 2083 00:35:54,960 --> 00:35:55,180 that. 2084 00:35:55,240 --> 00:35:55,660 You can go to our 2085 00:35:55,660 --> 00:35:56,180 website later. 2086 00:35:56,760 --> 00:35:57,800 The gist of it is 2087 00:35:57,800 --> 00:35:58,500 that you can see 2088 00:35:58,500 --> 00:35:59,180 there's an Acrobat 2089 00:35:59,180 --> 00:36:01,100 URI that's tied to 2090 00:36:01,100 --> 00:36:01,800 the Acro Read 2091 00:36:01,800 --> 00:36:03,160 program, and it 2092 00:36:03,160 --> 00:36:03,820 will accept certain 2093 00:36:03,820 --> 00:36:04,460 parameters that are 2094 00:36:04,460 --> 00:36:05,400 passed on the URI. 2095 00:36:06,600 --> 00:36:07,380 There's also the 2096 00:36:07,380 --> 00:36:08,840 AIM URI handler 2097 00:36:08,840 --> 00:36:09,840 here, same type of 2098 00:36:09,840 --> 00:36:10,480 deal, and there's 2099 00:36:10,480 --> 00:36:10,980 several others. 2100 00:36:11,180 --> 00:36:11,960 I'm sure you'll be 2101 00:36:11,960 --> 00:36:13,180 hugely surprised by 2102 00:36:13,180 --> 00:36:13,800 what's all registered 2103 00:36:13,800 --> 00:36:14,560 on your system 2104 00:36:14,560 --> 00:36:15,000 yourself. 2105 00:36:15,380 --> 00:36:16,180 You can download 2106 00:36:16,180 --> 00:36:16,620 this tool. 2107 00:36:16,780 --> 00:36:17,780 The link to Eric 2108 00:36:17,780 --> 00:36:18,600 Cabedas' site is on 2109 00:36:18,600 --> 00:36:19,000 our website. 2110 00:36:19,100 --> 00:36:19,740 We'll tell you that 2111 00:36:19,740 --> 00:36:20,000 later. 2112 00:36:21,240 --> 00:36:22,180 So what's vulnerable 2113 00:36:22,180 --> 00:36:22,740 so far? 2114 00:36:22,900 --> 00:36:23,460 What have we been 2115 00:36:23,460 --> 00:36:24,000 doing the last 2116 00:36:24,000 --> 00:36:25,000 several weeks of our 2117 00:36:25,000 --> 00:36:26,220 lives till 5 in the 2118 00:36:26,220 --> 00:36:27,140 morning drinking? 2119 00:36:28,420 --> 00:36:29,080 Cross-browser 2120 00:36:29,080 --> 00:36:29,960 scripting is the big 2121 00:36:29,960 --> 00:36:30,600 one that we started 2122 00:36:30,600 --> 00:36:31,840 with, and the whole 2123 00:36:31,840 --> 00:36:32,520 premise here is that 2124 00:36:32,520 --> 00:36:33,400 IE is pwning 2125 00:36:33,400 --> 00:36:34,280 Firefox and 2126 00:36:34,280 --> 00:36:34,940 Netscape Navigator 2127 00:36:34,940 --> 00:36:35,180 9. 2128 00:36:35,580 --> 00:36:36,560 Through URLs that 2129 00:36:36,560 --> 00:36:37,300 they've registered 2130 00:36:37,300 --> 00:36:38,460 into the Windows 2131 00:36:38,460 --> 00:36:39,900 registry, that being 2132 00:36:39,900 --> 00:36:41,260 the Firefox URL and 2133 00:36:41,260 --> 00:36:41,960 the Navigator URL. 2134 00:36:42,600 --> 00:36:44,780 So IE or Firefox 2135 00:36:44,780 --> 00:36:45,400 and Netscape 2136 00:36:45,400 --> 00:36:45,920 Navigator 9, 2137 00:36:46,540 --> 00:36:47,260 depending on which 2138 00:36:47,260 --> 00:36:47,840 side of the political 2139 00:36:47,840 --> 00:36:48,680 debate you're on, 2140 00:36:48,980 --> 00:36:50,280 they're having 2141 00:36:50,280 --> 00:36:51,540 difficulty sanitizing 2142 00:36:51,540 --> 00:36:52,660 double quotes that 2143 00:36:52,660 --> 00:36:53,260 are passed in the 2144 00:36:53,260 --> 00:36:53,780 URIs. 2145 00:36:53,900 --> 00:36:54,840 So what happens 2146 00:36:54,840 --> 00:36:56,100 here is during the 2147 00:36:56,100 --> 00:36:58,000 call to Firefox.exe 2148 00:36:58,000 --> 00:36:59,440 or Navigator.exe, 2149 00:36:59,440 --> 00:37:00,100 respectively, 2150 00:37:00,160 --> 00:37:00,860 depending on which 2151 00:37:00,860 --> 00:37:02,480 URL you used, it's 2152 00:37:02,480 --> 00:37:03,380 possible to use a 2153 00:37:03,380 --> 00:37:04,280 double quote to 2154 00:37:04,280 --> 00:37:04,860 close out of the 2155 00:37:04,860 --> 00:37:05,520 current command 2156 00:37:05,520 --> 00:37:06,320 line argument you're 2157 00:37:06,320 --> 00:37:07,880 in and insert another 2158 00:37:07,880 --> 00:37:08,760 command line argument. 2159 00:37:09,160 --> 00:37:10,240 In this case, we're 2160 00:37:10,240 --> 00:37:10,780 going to inject the 2161 00:37:10,780 --> 00:37:12,300 Chrome argument, which 2162 00:37:12,300 --> 00:37:13,480 allows us to use some 2163 00:37:13,480 --> 00:37:14,700 fancy code like this, 2164 00:37:14,740 --> 00:37:15,880 courtesy of Billy here, 2165 00:37:16,500 --> 00:37:17,300 which is going to 2166 00:37:17,300 --> 00:37:18,700 actually, actually this 2167 00:37:18,700 --> 00:37:20,220 is based off a Thor 2168 00:37:20,220 --> 00:37:20,960 or Larholm Safari 2169 00:37:20,960 --> 00:37:21,320 thing. 2170 00:37:21,540 --> 00:37:22,020 You should give 2171 00:37:22,020 --> 00:37:22,680 credit where credit's 2172 00:37:22,680 --> 00:37:22,960 due here. 2173 00:37:23,520 --> 00:37:24,700 But this is going to 2174 00:37:24,700 --> 00:37:25,540 use the JavaScript 2175 00:37:25,540 --> 00:37:26,780 within the Chrome 2176 00:37:26,780 --> 00:37:28,180 argument to actually 2177 00:37:28,180 --> 00:37:29,560 kick off a command.exe 2178 00:37:29,560 --> 00:37:29,800 window. 2179 00:37:30,160 --> 00:37:31,540 So pretty, you know, 2180 00:37:31,560 --> 00:37:32,000 you can run whatever 2181 00:37:32,000 --> 00:37:32,860 command you want here. 2182 00:37:34,040 --> 00:37:35,020 The next type of 2183 00:37:35,020 --> 00:37:35,500 attack we're going to 2184 00:37:35,500 --> 00:37:35,960 be looking at is 2185 00:37:35,960 --> 00:37:36,920 cross-application 2186 00:37:36,920 --> 00:37:37,980 scripting, is what 2187 00:37:37,980 --> 00:37:38,700 we're calling this now. 2188 00:37:39,380 --> 00:37:40,560 This example we're 2189 00:37:40,560 --> 00:37:41,440 going to give here, and 2190 00:37:41,440 --> 00:37:42,040 keep in mind there's 2191 00:37:42,040 --> 00:37:43,640 many examples of these. 2192 00:37:43,780 --> 00:37:44,560 This has been like the 2193 00:37:44,560 --> 00:37:45,460 last four weeks of our 2194 00:37:45,460 --> 00:37:46,360 lives, five weeks of our 2195 00:37:46,360 --> 00:37:47,820 lives, so it's not like 2196 00:37:47,820 --> 00:37:48,300 it's fleshed out 2197 00:37:48,300 --> 00:37:48,940 completely yet. 2198 00:37:49,460 --> 00:37:50,620 The whole idea here is 2199 00:37:50,620 --> 00:37:51,360 that IE is now 2200 00:37:51,360 --> 00:37:53,080 pwning Trillian through 2201 00:37:53,080 --> 00:37:54,040 the AIM URL handler. 2202 00:37:54,660 --> 00:37:55,460 And so what's 2203 00:37:55,460 --> 00:37:55,920 happening, we've got 2204 00:37:55,920 --> 00:37:57,360 two types of attacks 2205 00:37:57,360 --> 00:37:57,660 here. 2206 00:37:58,100 --> 00:37:58,840 One's a stack 2207 00:37:58,840 --> 00:38:00,000 overflow, and one's a 2208 00:38:00,000 --> 00:38:00,520 command injection. 2209 00:38:01,260 --> 00:38:02,000 So I'm going to get 2210 00:38:02,000 --> 00:38:02,960 into examples of those. 2211 00:38:04,120 --> 00:38:05,220 Obviously, you know, 2212 00:38:05,500 --> 00:38:06,020 that's a pretty long 2213 00:38:06,020 --> 00:38:06,480 string here. 2214 00:38:06,540 --> 00:38:07,800 We're passing to the 2215 00:38:07,800 --> 00:38:08,580 AIM URL handler. 2216 00:38:08,800 --> 00:38:09,700 Again, this could be 2217 00:38:09,700 --> 00:38:10,140 done through a 2218 00:38:10,140 --> 00:38:10,560 cross-application 2219 00:38:10,560 --> 00:38:10,940 scripting. 2220 00:38:11,400 --> 00:38:12,120 It could be done 2221 00:38:12,120 --> 00:38:12,920 through, you know, 2222 00:38:12,980 --> 00:38:13,780 phishing attacks, 2223 00:38:13,960 --> 00:38:14,700 whatever you want, 2224 00:38:14,820 --> 00:38:15,000 right? 2225 00:38:15,440 --> 00:38:16,240 And it's kind of 2226 00:38:16,240 --> 00:38:17,160 hard to see, but if 2227 00:38:17,160 --> 00:38:17,700 you look down at the 2228 00:38:17,700 --> 00:38:18,300 bottom there, you'll 2229 00:38:18,300 --> 00:38:18,940 see that we have 2230 00:38:18,940 --> 00:38:20,580 control over pointer 2231 00:38:20,580 --> 00:38:21,700 to next SEH record 2232 00:38:21,700 --> 00:38:22,600 and the SE handler. 2233 00:38:22,940 --> 00:38:24,080 So obviously at this 2234 00:38:24,080 --> 00:38:24,720 point it becomes 2235 00:38:24,720 --> 00:38:26,480 an exercise in can 2236 00:38:26,480 --> 00:38:27,380 you shell code on 2237 00:38:27,380 --> 00:38:28,280 XP Service Pack 2. 2238 00:38:28,840 --> 00:38:30,000 So you guys can go 2239 00:38:30,000 --> 00:38:30,480 ahead and do that 2240 00:38:30,480 --> 00:38:30,920 from the proof of 2241 00:38:30,920 --> 00:38:31,640 concept code we've 2242 00:38:31,640 --> 00:38:32,200 got out there. 2243 00:38:34,380 --> 00:38:35,140 Example number two, 2244 00:38:35,500 --> 00:38:36,160 this is going to be 2245 00:38:36,160 --> 00:38:36,680 the command injection. 2246 00:38:37,220 --> 00:38:38,060 Real strange. 2247 00:38:38,300 --> 00:38:39,100 I mean, this is a 2248 00:38:39,100 --> 00:38:40,240 really strange flaw. 2249 00:38:40,640 --> 00:38:41,700 You can see here the 2250 00:38:41,700 --> 00:38:42,480 first thing to notice 2251 00:38:42,480 --> 00:38:43,960 in the URL that we're 2252 00:38:43,960 --> 00:38:44,720 passing, the AIM URL 2253 00:38:44,720 --> 00:38:45,300 that we're passing, 2254 00:38:45,880 --> 00:38:46,600 notice the first 2255 00:38:46,600 --> 00:38:47,440 double quote right 2256 00:38:47,440 --> 00:38:48,540 after calc.exe. 2257 00:38:48,900 --> 00:38:49,640 That's where our 2258 00:38:49,640 --> 00:38:50,180 command injection 2259 00:38:50,180 --> 00:38:51,660 occurs, and we're 2260 00:38:51,660 --> 00:38:52,440 closing off the 2261 00:38:52,440 --> 00:38:53,220 current command line 2262 00:38:53,220 --> 00:38:53,840 argument that we're 2263 00:38:53,840 --> 00:38:55,060 on, which is actually 2264 00:38:55,060 --> 00:38:56,180 the URL command line 2265 00:38:56,180 --> 00:38:57,840 argument, and we're 2266 00:38:57,840 --> 00:38:58,560 inserting another 2267 00:38:58,560 --> 00:38:59,520 argument, which is 2268 00:38:59,520 --> 00:39:00,620 the space INI. 2269 00:39:01,380 --> 00:39:02,460 For whatever reason, 2270 00:39:02,580 --> 00:39:03,680 Trillian takes this 2271 00:39:03,680 --> 00:39:05,480 INI argument, and 2272 00:39:05,500 --> 00:39:06,680 it takes a file for 2273 00:39:06,680 --> 00:39:07,600 that argument, and 2274 00:39:07,600 --> 00:39:08,580 whatever file you give 2275 00:39:08,580 --> 00:39:09,840 it, it will then write 2276 00:39:09,840 --> 00:39:11,120 content to that file, 2277 00:39:11,700 --> 00:39:12,840 any location you want. 2278 00:39:13,120 --> 00:39:14,160 In this case, we're 2279 00:39:14,160 --> 00:39:14,900 interested in writing 2280 00:39:14,900 --> 00:39:15,680 it to the startup 2281 00:39:15,680 --> 00:39:17,000 folder as a batch 2282 00:39:17,000 --> 00:39:18,260 file, for some 2283 00:39:18,260 --> 00:39:18,940 obvious reasons. 2284 00:39:19,420 --> 00:39:20,300 The other interesting 2285 00:39:20,300 --> 00:39:21,180 thing to notice about 2286 00:39:21,180 --> 00:39:22,760 it is that it actually 2287 00:39:22,760 --> 00:39:23,640 takes the previous 2288 00:39:23,640 --> 00:39:25,100 portion of our URI and 2289 00:39:25,100 --> 00:39:26,480 dumps that into the 2290 00:39:26,480 --> 00:39:27,200 file that we've just 2291 00:39:27,200 --> 00:39:27,900 told it to write, 2292 00:39:28,040 --> 00:39:28,920 where we want it to 2293 00:39:28,920 --> 00:39:30,620 write, and will allow 2294 00:39:30,620 --> 00:39:31,280 us to put whatever 2295 00:39:31,280 --> 00:39:32,160 content we want in 2296 00:39:32,160 --> 00:39:32,320 there. 2297 00:39:32,700 --> 00:39:33,680 So that's the first 2298 00:39:33,680 --> 00:39:34,700 part of the URL, where 2299 00:39:34,700 --> 00:39:35,100 you see the 2300 00:39:35,100 --> 00:39:35,420 AMP for 2301 00:39:35,420 --> 00:39:36,420 SAN, C 2302 00:39:36,420 --> 00:39:36,880 colon slash 2303 00:39:36,880 --> 00:39:38,040 Windows system 32 2304 00:39:38,720 --> 00:39:39,520 calc.exe. 2305 00:39:39,840 --> 00:39:40,700 Now you can notice 2306 00:39:40,700 --> 00:39:41,720 the two screenshots I'm 2307 00:39:41,720 --> 00:39:42,580 showing, the 2308 00:39:42,580 --> 00:39:44,440 pwn.bat file in my 2309 00:39:44,440 --> 00:39:45,560 startup folder, so 2310 00:39:45,560 --> 00:39:46,100 that's going to run 2311 00:39:46,100 --> 00:39:46,760 the next time I turn 2312 00:39:46,760 --> 00:39:47,400 my computer on. 2313 00:39:48,100 --> 00:39:49,080 And you can see, 2314 00:39:49,200 --> 00:39:50,580 probably barely, the 2315 00:39:50,580 --> 00:39:52,260 content that is 2316 00:39:52,260 --> 00:39:53,100 stored within there, 2317 00:39:53,200 --> 00:39:54,280 which actually has our 2318 00:39:54,280 --> 00:39:55,440 AMP for SAN, C 2319 00:39:55,440 --> 00:39:55,880 colon slash 2320 00:39:55,880 --> 00:39:56,820 Windows system 32 2321 00:39:56,820 --> 00:39:57,560 calc.exe. 2322 00:39:57,700 --> 00:39:58,480 If you can't figure 2323 00:39:58,480 --> 00:39:58,820 out what this is 2324 00:39:58,820 --> 00:39:59,400 doing, I'll save you 2325 00:39:59,400 --> 00:39:59,660 the drama. 2326 00:39:59,860 --> 00:40:00,300 Next time you 2327 00:40:00,300 --> 00:40:00,620 restart your 2328 00:40:00,620 --> 00:40:01,700 computer, it's going 2329 00:40:01,700 --> 00:40:02,780 to load calc.exe. 2330 00:40:03,040 --> 00:40:03,880 You can put any 2331 00:40:03,880 --> 00:40:04,520 command in here you 2332 00:40:04,520 --> 00:40:04,800 want. 2333 00:40:04,800 --> 00:40:06,020 So it's pretty much 2334 00:40:06,020 --> 00:40:06,940 game over at this 2335 00:40:06,940 --> 00:40:07,140 point. 2336 00:40:09,020 --> 00:40:09,860 What else is 2337 00:40:09,860 --> 00:40:09,980 available? 2338 00:40:10,260 --> 00:40:11,180 This has been a big 2339 00:40:11,180 --> 00:40:11,620 one over the last 2340 00:40:11,620 --> 00:40:12,920 couple weeks here, 2341 00:40:13,000 --> 00:40:13,480 right, I guess. 2342 00:40:14,000 --> 00:40:14,700 Remote command 2343 00:40:14,700 --> 00:40:15,560 execution in 2344 00:40:15,560 --> 00:40:16,600 Firefox, Netscape 2345 00:40:16,600 --> 00:40:18,220 Navigator 9, Mozilla, 2346 00:40:18,380 --> 00:40:19,760 any other Gecko-based 2347 00:40:19,760 --> 00:40:21,300 browser or browser-like 2348 00:40:21,300 --> 00:40:22,560 system you can 2349 00:40:22,560 --> 00:40:23,080 probably imagine. 2350 00:40:23,360 --> 00:40:25,260 Seamonkey, Navoo, 2351 00:40:25,380 --> 00:40:26,280 whatever else. 2352 00:40:27,420 --> 00:40:28,680 This is a quote from 2353 00:40:28,680 --> 00:40:29,320 the Mozilla security 2354 00:40:29,320 --> 00:40:29,700 blog. 2355 00:40:29,940 --> 00:40:30,600 I think they 2356 00:40:30,600 --> 00:40:31,280 explained it probably 2357 00:40:31,280 --> 00:40:31,940 better than we could 2358 00:40:31,940 --> 00:40:32,460 in this case. 2359 00:40:32,780 --> 00:40:34,060 The idea is that 2360 00:40:34,060 --> 00:40:34,780 you can 2361 00:40:34,800 --> 00:40:35,560 if we put in a 2362 00:40:35,560 --> 00:40:35,920 null character, 2363 00:40:36,100 --> 00:40:37,200 percent 00, encoded 2364 00:40:37,200 --> 00:40:38,520 null character, in the 2365 00:40:38,520 --> 00:40:39,740 URL for these URL 2366 00:40:39,740 --> 00:40:40,420 schemes that we're 2367 00:40:40,420 --> 00:40:41,760 discovering, for some 2368 00:40:41,760 --> 00:40:43,220 reason, Firefox, when 2369 00:40:43,220 --> 00:40:43,860 running on a Windows 2370 00:40:43,860 --> 00:40:45,240 system with IE7 2371 00:40:45,240 --> 00:40:46,640 installed, will 2372 00:40:46,640 --> 00:40:48,280 actually misinterpret 2373 00:40:48,280 --> 00:40:49,160 how it should handle 2374 00:40:49,160 --> 00:40:50,460 this, and instead of 2375 00:40:50,460 --> 00:40:51,080 using the URL 2376 00:40:51,080 --> 00:40:52,580 protocol handler, it 2377 00:40:52,580 --> 00:40:53,500 uses the file type 2378 00:40:53,500 --> 00:40:53,860 handler. 2379 00:40:54,520 --> 00:40:55,740 So let's show you, 2380 00:40:55,940 --> 00:40:57,020 I mean, to me that's 2381 00:40:57,020 --> 00:40:57,920 just, I'm not exactly 2382 00:40:57,920 --> 00:40:58,740 sure all the details, 2383 00:40:58,940 --> 00:40:59,760 but whatever, we don't 2384 00:40:59,760 --> 00:40:59,900 care. 2385 00:41:00,020 --> 00:41:00,560 We want to just see 2386 00:41:00,560 --> 00:41:01,060 the demo, right? 2387 00:41:02,020 --> 00:41:02,940 So here's the demo. 2388 00:41:03,040 --> 00:41:04,060 This is the mail to 2389 00:41:04,060 --> 00:41:04,380 URL. 2390 00:41:05,100 --> 00:41:05,960 There's several of 2391 00:41:05,960 --> 00:41:06,080 these. 2392 00:41:06,200 --> 00:41:06,660 There's mail to 2393 00:41:06,660 --> 00:41:08,480 news, SNEWS, NNTP, 2394 00:41:09,000 --> 00:41:09,940 all kinds of things, 2395 00:41:10,060 --> 00:41:10,160 right? 2396 00:41:10,680 --> 00:41:11,480 The idea, we've got 2397 00:41:11,480 --> 00:41:12,240 the double encoded 2398 00:41:12,240 --> 00:41:13,600 nulls right there, and 2399 00:41:13,600 --> 00:41:14,100 you can see at the 2400 00:41:14,100 --> 00:41:15,200 very end, the 2401 00:41:15,200 --> 00:41:16,020 blog.bat. 2402 00:41:16,980 --> 00:41:17,800 What's a bat file? 2403 00:41:17,920 --> 00:41:18,480 It's a batch file, 2404 00:41:18,580 --> 00:41:18,680 right? 2405 00:41:18,700 --> 00:41:19,020 It's going to be run 2406 00:41:19,020 --> 00:41:20,000 by the command prompt, 2407 00:41:20,180 --> 00:41:20,320 right? 2408 00:41:20,680 --> 00:41:21,380 So what ends up 2409 00:41:21,380 --> 00:41:24,300 happening is the URL, 2410 00:41:24,360 --> 00:41:24,720 the way it gets 2411 00:41:24,720 --> 00:41:25,440 handled is it goes to 2412 00:41:25,440 --> 00:41:26,280 the file type handler 2413 00:41:26,280 --> 00:41:27,640 now, and it kicks off 2414 00:41:27,640 --> 00:41:29,300 command.exe, and if you 2415 00:41:29,300 --> 00:41:30,200 notice the dot, dot, 2416 00:41:30,200 --> 00:41:31,340 dot, slash, Windows 2417 00:41:31,340 --> 00:41:33,000 system 32, calc.exe, 2418 00:41:33,420 --> 00:41:34,100 that's actually the 2419 00:41:34,100 --> 00:41:34,380 command. 2420 00:41:34,800 --> 00:41:35,820 That command.exe is 2421 00:41:35,820 --> 00:41:36,220 going to run. 2422 00:41:36,500 --> 00:41:37,380 So you can see it's 2423 00:41:37,380 --> 00:41:38,400 kicking off calc here. 2424 00:41:38,600 --> 00:41:39,340 It's kind of hard to 2425 00:41:39,340 --> 00:41:40,020 see from the example. 2426 00:41:40,320 --> 00:41:41,360 That's basically just a 2427 00:41:41,360 --> 00:41:42,420 hard-coded web page 2428 00:41:42,860 --> 00:41:43,720 with a link. 2429 00:41:43,920 --> 00:41:44,860 That's the red box 2430 00:41:44,860 --> 00:41:45,260 right there. 2431 00:41:45,320 --> 00:41:46,000 When you click that, 2432 00:41:46,060 --> 00:41:46,600 it's going to pop 2433 00:41:46,600 --> 00:41:47,680 open calc.exe. 2434 00:41:48,020 --> 00:41:48,940 There's great proof of 2435 00:41:48,940 --> 00:41:49,860 concepts on our 2436 00:41:49,860 --> 00:41:51,500 website, xs-sniper.com. 2437 00:41:51,680 --> 00:41:52,660 You guys can go and 2438 00:41:52,660 --> 00:41:53,420 pull on yourselves, 2439 00:41:53,620 --> 00:41:54,520 have a good time with 2440 00:41:54,520 --> 00:41:54,680 it. 2441 00:41:55,020 --> 00:41:55,800 We're not going to do 2442 00:41:55,800 --> 00:41:56,420 any live demos. 2443 00:41:56,740 --> 00:41:58,540 Obviously, the DEF CON 2444 00:41:58,540 --> 00:41:59,860 network is as shady as 2445 00:41:59,860 --> 00:42:00,800 we are, so we're going 2446 00:42:00,800 --> 00:42:01,440 to try to avoid that. 2447 00:42:01,600 --> 00:42:02,160 I think this is 2448 00:42:02,160 --> 00:42:03,200 actually patching the 2449 00:42:03,200 --> 00:42:04,040 latest version of 2450 00:42:04,040 --> 00:42:04,700 That is correct. 2451 00:42:04,800 --> 00:42:05,720 Mozilla or Firefox, 2452 00:42:06,400 --> 00:42:06,800 right? 2453 00:42:06,900 --> 00:42:07,860 But I think there's 2454 00:42:07,860 --> 00:42:08,780 some other Mozilla-based 2455 00:42:08,780 --> 00:42:09,580 browsers that haven't 2456 00:42:09,580 --> 00:42:10,800 rolled out their patches. 2457 00:42:10,800 --> 00:42:11,360 Yeah, actually, 2458 00:42:11,440 --> 00:42:12,340 Netscape, Navigator 9, 2459 00:42:12,560 --> 00:42:13,420 I think the Mozilla 2460 00:42:13,420 --> 00:42:14,160 browser is still 2461 00:42:14,160 --> 00:42:15,180 available, and this is 2462 00:42:15,180 --> 00:42:15,880 our last checking. 2463 00:42:17,320 --> 00:42:18,060 They're out there. 2464 00:42:18,880 --> 00:42:20,280 Hopefully, those teams 2465 00:42:20,280 --> 00:42:21,320 will work together to 2466 00:42:21,320 --> 00:42:22,100 try to fix this issue 2467 00:42:22,100 --> 00:42:22,480 as well. 2468 00:42:22,780 --> 00:42:23,560 They put that out 2469 00:42:23,560 --> 00:42:24,600 really fast, by the way. 2470 00:42:24,660 --> 00:42:25,080 They put it out in 2471 00:42:25,080 --> 00:42:25,580 like 14 minutes. 2472 00:42:25,580 --> 00:42:26,120 Yeah, kudos to 2473 00:42:26,120 --> 00:42:26,980 Firefox for putting 2474 00:42:26,980 --> 00:42:27,640 that out so quickly. 2475 00:42:27,720 --> 00:42:28,100 That was great. 2476 00:42:30,520 --> 00:42:31,740 I think people are 2477 00:42:31,740 --> 00:42:32,460 asking a lot of 2478 00:42:32,460 --> 00:42:33,480 questions about the 2479 00:42:33,480 --> 00:42:33,840 blame game. 2480 00:42:34,000 --> 00:42:34,760 Whose fault is it? 2481 00:42:34,800 --> 00:42:37,060 I think Rios and I 2482 00:42:37,060 --> 00:42:37,880 have stood pretty strong 2483 00:42:37,880 --> 00:42:39,140 that it's everybody's 2484 00:42:39,140 --> 00:42:40,320 fault, because what 2485 00:42:40,320 --> 00:42:41,040 we're looking at here 2486 00:42:41,040 --> 00:42:42,120 are some very simple 2487 00:42:42,120 --> 00:42:43,520 examples of just 2488 00:42:43,520 --> 00:42:44,400 stupid things, like 2489 00:42:44,400 --> 00:42:45,220 stack overflows, 2490 00:42:45,320 --> 00:42:45,920 command injections, 2491 00:42:46,240 --> 00:42:46,780 things that people 2492 00:42:46,780 --> 00:42:47,640 just forgot about, 2493 00:42:47,860 --> 00:42:48,100 right? 2494 00:42:48,640 --> 00:42:49,480 But this isn't 2495 00:42:49,480 --> 00:42:50,700 touching at all the 2496 00:42:50,700 --> 00:42:51,600 functionality issues 2497 00:42:51,600 --> 00:42:53,180 that these URIs are 2498 00:42:53,180 --> 00:42:53,740 allowing you to 2499 00:42:53,740 --> 00:42:54,340 interact with. 2500 00:42:55,000 --> 00:42:55,900 I mean, what do you 2501 00:42:55,900 --> 00:42:56,500 think about the 2502 00:42:56,500 --> 00:42:57,320 Picasa URI? 2503 00:42:57,560 --> 00:42:58,100 You guys use 2504 00:42:58,100 --> 00:42:59,120 Picasa for editing 2505 00:42:59,120 --> 00:42:59,600 your photos? 2506 00:42:59,720 --> 00:43:00,100 I love it. 2507 00:43:00,100 --> 00:43:00,600 I think it's great. 2508 00:43:01,720 --> 00:43:03,100 But what can you do 2509 00:43:03,100 --> 00:43:04,100 with the Picasa URI? 2510 00:43:04,320 --> 00:43:04,780 I don't know. 2511 00:43:04,800 --> 00:43:05,780 We'll have to figure 2512 00:43:05,780 --> 00:43:06,340 that out, I guess, 2513 00:43:06,360 --> 00:43:06,840 in the next couple 2514 00:43:06,840 --> 00:43:07,060 months. 2515 00:43:07,380 --> 00:43:08,960 But, you know, I 2516 00:43:08,960 --> 00:43:10,240 think everybody's at 2517 00:43:10,240 --> 00:43:10,480 fault. 2518 00:43:10,600 --> 00:43:11,100 Everybody needs to 2519 00:43:11,100 --> 00:43:11,880 take a strong look at 2520 00:43:11,880 --> 00:43:12,260 what they're doing 2521 00:43:12,260 --> 00:43:12,940 with this and try to 2522 00:43:12,940 --> 00:43:13,320 fix it. 2523 00:43:14,680 --> 00:43:15,600 So what's next? 2524 00:43:15,740 --> 00:43:16,280 I think I touched 2525 00:43:16,280 --> 00:43:16,920 on it a little bit. 2526 00:43:17,560 --> 00:43:18,140 You got your 2527 00:43:18,140 --> 00:43:18,880 functionality attacks, 2528 00:43:19,060 --> 00:43:19,600 I think, are going to 2529 00:43:19,600 --> 00:43:20,160 be the big thing. 2530 00:43:20,460 --> 00:43:21,420 You know, can I 2531 00:43:21,420 --> 00:43:23,520 send messages as 2532 00:43:23,520 --> 00:43:24,480 you from your 2533 00:43:24,480 --> 00:43:25,380 browser once I 2534 00:43:25,380 --> 00:43:26,180 cross-descripted you 2535 00:43:26,180 --> 00:43:26,840 through your chat 2536 00:43:26,840 --> 00:43:27,160 programs? 2537 00:43:28,200 --> 00:43:28,920 I think so. 2538 00:43:29,100 --> 00:43:29,620 All right, maybe. 2539 00:43:29,980 --> 00:43:30,340 Probably. 2540 00:43:31,240 --> 00:43:32,500 Can I upload 2541 00:43:32,500 --> 00:43:33,600 pictures, download 2542 00:43:33,600 --> 00:43:34,380 your pictures, 2543 00:43:34,800 --> 00:43:35,740 send you nasty 2544 00:43:35,740 --> 00:43:36,680 pictures to the 2545 00:43:36,680 --> 00:43:37,360 Picasa URI? 2546 00:43:38,640 --> 00:43:39,140 Possible. 2547 00:43:39,500 --> 00:43:39,820 Probably. 2548 00:43:40,620 --> 00:43:42,060 And then, you 2549 00:43:42,650 --> 00:43:43,220 know, what about 2550 00:43:43,220 --> 00:43:43,580 Nix? 2551 00:43:43,740 --> 00:43:44,700 I think no one's 2552 00:43:44,700 --> 00:43:45,300 really talked about 2553 00:43:45,300 --> 00:43:46,840 Nix, and the big 2554 00:43:46,840 --> 00:43:47,640 reason is, well, 2555 00:43:47,680 --> 00:43:48,240 Windows has this 2556 00:43:48,240 --> 00:43:49,140 registry, right, and 2557 00:43:49,140 --> 00:43:49,900 this registry's great 2558 00:43:49,900 --> 00:43:50,560 and it keeps all 2559 00:43:50,560 --> 00:43:51,380 these URL handlers. 2560 00:43:53,220 --> 00:43:54,280 Linux actually has 2561 00:43:54,280 --> 00:43:55,240 some registry-like 2562 00:43:55,240 --> 00:43:56,020 things as well, 2563 00:43:56,140 --> 00:43:56,680 especially for 2564 00:43:56,680 --> 00:43:57,520 GNOME and KDE. 2565 00:43:57,900 --> 00:43:58,800 So we'll be 2566 00:43:58,800 --> 00:43:59,320 seeing where those 2567 00:43:59,320 --> 00:44:00,020 take us to as 2568 00:44:00,020 --> 00:44:00,260 well. 2569 00:44:00,520 --> 00:44:00,860 Definitely. 2570 00:44:02,180 --> 00:44:03,020 So any 2571 00:44:03,020 --> 00:44:04,100 questions for us? 2572 00:44:05,180 --> 00:44:06,280 We'll take any and 2573 00:44:06,280 --> 00:44:06,760 all questions. 2574 00:44:06,820 --> 00:44:07,200 Any and all 2575 00:44:07,200 --> 00:44:07,660 questions. 2576 00:44:08,020 --> 00:44:08,320 But no guys 2577 00:44:08,320 --> 00:44:09,300 without t-shirts on. 2578 00:44:09,660 --> 00:44:10,800 Yeah, keep your 2579 00:44:10,800 --> 00:44:11,380 t-shirt on. 2580 00:44:14,220 --> 00:44:14,620 Anybody? 2581 00:44:14,680 --> 00:44:15,340 I can't really see 2582 00:44:15,340 --> 00:44:15,800 because the lights 2583 00:44:15,800 --> 00:44:16,300 are real bright, 2584 00:44:16,400 --> 00:44:16,720 but... 2585 00:44:17,940 --> 00:44:18,620 All right, cool. 2586 00:44:19,240 --> 00:44:20,040 Thank you. 2587 00:44:21,400 --> 00:44:21,940 Thank you.