1 00:00:00,000 --> 00:00:05,580 Hello everybody. During the following portion of this presentation, we experienced technical difficulties. 2 00:00:05,840 --> 00:00:11,200 The problem does get resolved, and the quality will improve shortly. Thank you for your patience. 3 00:00:11,560 --> 00:00:15,500 My name is Gregory Pleischer. This is attacking Tor at the application there. 4 00:00:16,760 --> 00:00:20,640 We'll get started with some kind of a brief overview of what this talk is going to be about. 5 00:00:20,920 --> 00:00:26,200 We're focused on here identifying Tor web traffic, kind of as a group of users, 6 00:00:26,200 --> 00:00:31,640 then fingerprinting individual users, looking at things in the web browser that may be used to unmask them, 7 00:00:31,820 --> 00:00:36,740 and then looking at constructing attacks at the application layer in terms of web browsers, 8 00:00:37,060 --> 00:00:41,200 client-side script, and other client JavaScript. 9 00:00:41,940 --> 00:00:47,600 This talk is not about passive monitoring and exit nodes, network attacks against path selection, 10 00:00:47,900 --> 00:00:53,780 or using applications to improve existing network attacks, and it's not about breaking SSL, 11 00:00:53,900 --> 00:00:56,100 although all of those things have been discussed. 12 00:00:56,860 --> 00:01:01,020 I'm not going to be talking about those. I'm strictly looking at application layer attacks. 13 00:01:02,260 --> 00:01:07,360 So here's the software that I use. I looked at the Tor browser bundle, the Videlia bundle for Windows, 14 00:01:07,660 --> 00:01:15,940 the Videlia bundle for Mac, and Firefox 2, Firefox 3, and Google 5, as well as the Tor button and other misleadings. 15 00:01:17,200 --> 00:01:19,860 So does your browser look like this? 16 00:01:21,040 --> 00:01:25,940 What do you see there? Some people say, oh, I see Wikileaks. Well, I see it. You have the Google toolbar. 17 00:01:26,200 --> 00:01:30,620 You have NoScript, and you have Tor button. Or maybe it looks like this. 18 00:01:30,860 --> 00:01:33,260 You know, some people say, oh, that's cross-site scripting. 19 00:01:33,400 --> 00:01:37,220 Well, I'm looking at you have, like, security testing add-ons installed, 20 00:01:37,480 --> 00:01:43,800 and you have Local Rodeo and Foxy Proxy and all this other stuff that, you know, 21 00:01:43,800 --> 00:01:46,980 remote sites can detect that you have these add-ons installed. 22 00:01:48,440 --> 00:01:51,080 So let's go to a little background information. 23 00:01:52,180 --> 00:01:55,120 If you were here earlier for Roger's talk, most of this will be for you, 24 00:01:55,120 --> 00:01:57,980 but Tor is free software developed by the Tor project. 25 00:01:58,480 --> 00:02:01,560 It's a volunteer effort on the Internet, so anybody can participate, 26 00:02:01,740 --> 00:02:07,100 which is important because it's not some specific group of people, some specific club you have to join. 27 00:02:07,620 --> 00:02:13,600 Anybody out there can set up an exit node and start exiting traffic, which we're going to get to in quite a bit. 28 00:02:13,920 --> 00:02:16,060 But people, quite a few people use Tor. 29 00:02:16,200 --> 00:02:24,360 It's used to localize PC surveillance and blocking, as well as hiding your original IP address. 30 00:02:25,180 --> 00:02:29,180 So here's a very, you know, traditional view of what the Tor network looks like. 31 00:02:29,200 --> 00:02:36,360 You have an analysis browser, a set of three nodes that you're going to transit through, and getting to Bob's server. 32 00:02:37,860 --> 00:02:41,720 So what is the application stack as far as Tor web surfing? 33 00:02:41,900 --> 00:02:44,380 You have the web browser, which is probably Firefox. 34 00:02:44,740 --> 00:02:46,680 You have a local HTTP proxy. 35 00:02:47,200 --> 00:02:49,800 You have the Tor client acting as a SOX proxy. 36 00:02:50,160 --> 00:02:54,060 And then you have a Tor exit node that is actually doing the proxy request. 37 00:02:55,120 --> 00:02:56,720 And then you have the remote web server. 38 00:02:57,540 --> 00:03:01,800 So if we revisit our previous diagram, here's kind of the application stack. 39 00:03:02,040 --> 00:03:09,860 You can see the browser, the local HTTP proxy, your SOX client going through your exits to your exit node, 40 00:03:09,980 --> 00:03:10,880 and then onto the server. 41 00:03:11,440 --> 00:03:14,500 So let's talk a little bit about the adversary model when you're using Tor. 42 00:03:15,320 --> 00:03:20,880 There are certain points in the Tor network where you're kind of at risk at an application layer. 43 00:03:20,940 --> 00:03:25,000 That's at the remote server, in the exit nodes, the remote server. 44 00:03:25,120 --> 00:03:28,100 That's ISP, as well as the exit nodes, ISP. 45 00:03:28,160 --> 00:03:32,580 Any of those points, you're at risk for malicious activity. 46 00:03:33,600 --> 00:03:37,360 So it's important to understand that exit nodes can be attack points. 47 00:03:38,000 --> 00:03:44,160 Some people always think that, oh, it's just a place where you can monitor traffic, where you can look at stuff passively. 48 00:03:44,260 --> 00:03:48,160 But you can actually inject content into both requests and responses. 49 00:03:48,660 --> 00:03:52,340 So exit nodes can be used to attack you very easily. 50 00:03:52,520 --> 00:03:53,960 And this has been done in the past. 51 00:03:54,080 --> 00:03:54,980 And I'm sure it will continue. 52 00:03:54,980 --> 00:03:56,080 It will continue to be done in the future. 53 00:03:56,400 --> 00:03:58,100 And why do people do this? 54 00:03:58,400 --> 00:04:02,260 The Tor users make an attractive testbed for man-in-the-middle attacks. 55 00:04:03,200 --> 00:04:08,640 We've all heard that people will come up with some thesis and test it on Tor users. 56 00:04:08,820 --> 00:04:14,320 It's like, oh, yeah, we were able to break SSL and use this number of Tor users or something else. 57 00:04:14,580 --> 00:04:16,620 And Tor users are self-selecting. 58 00:04:16,700 --> 00:04:20,920 So only people that are using the Tor network are going to be affected by your attack. 59 00:04:22,600 --> 00:04:24,440 Let's talk a little bit about DNS requests. 60 00:04:25,040 --> 00:04:27,900 The DNS queries are resolved by your remote Tor node. 61 00:04:28,720 --> 00:04:30,100 They're not resolved locally. 62 00:04:30,260 --> 00:04:36,460 The idea is if somebody can cause you to make a DNS request, then you will be leaking information about where you're located. 63 00:04:37,080 --> 00:04:42,900 Perhaps your local ISP or if you're running a recursive resolver yourself in your own local network. 64 00:04:43,540 --> 00:04:46,700 And this makes traditional DNS rebinding attacks difficult. 65 00:04:47,880 --> 00:04:53,120 Because since Tor is slow in resolving these DNS requests, they're cached for a minimum of 60 seconds, 66 00:04:53,240 --> 00:04:54,960 regardless of what the remote server is TTing. 67 00:04:54,980 --> 00:05:00,520 But we've been able to see that it's not impossible to do DNS rebinding through other techniques, 68 00:05:00,620 --> 00:05:02,480 such as the document.domain bypass. 69 00:05:05,180 --> 00:05:06,040 Applications in Tor. 70 00:05:06,140 --> 00:05:08,880 So only specific applications that are aware of Tor, 71 00:05:09,060 --> 00:05:12,140 either through the HTTP proxy or the SOX proxy, 72 00:05:12,160 --> 00:05:15,500 are going to be able to use it without leaking information about you, 73 00:05:15,600 --> 00:05:18,820 either through your IP address or through DNS requests. 74 00:05:20,300 --> 00:05:22,920 So we've modified our diagram here now 75 00:05:22,920 --> 00:05:24,960 and added in a couple additional attack requests. 76 00:05:24,980 --> 00:05:27,400 We've added in a couple additional attack points, which is DNS and external programs. 77 00:05:29,680 --> 00:05:31,880 So let's move on to the identifying stage. 78 00:05:32,760 --> 00:05:36,860 How do we go about detecting Tor users as a group? 79 00:05:37,540 --> 00:05:43,060 The group of Tor users, when you go to visit a site using Tor, you kind of stand out. 80 00:05:43,380 --> 00:05:45,300 I mean, sure, there are a lot of people using Tor, 81 00:05:45,480 --> 00:05:49,640 but in the global scope of the Internet, you're a very small group of people. 82 00:05:49,800 --> 00:05:54,820 So it's pretty easy to get a list of IP addresses of all the known Tor exits. 83 00:05:54,980 --> 00:05:57,200 And I mean, this is by design. 84 00:05:57,360 --> 00:06:01,720 You have to know what these IP addresses are to construct your path through the network. 85 00:06:02,560 --> 00:06:08,620 So something like the Tor bulk exit list can be able to be used to retrieve a large exit list 86 00:06:08,620 --> 00:06:10,700 of all the nodes, all their IP addresses. 87 00:06:11,140 --> 00:06:13,060 But there are a few other alternative methods. 88 00:06:14,000 --> 00:06:18,160 You can run your own Tor client and collect the information yourself, 89 00:06:18,440 --> 00:06:20,820 kind of in a very passive, simple manner. 90 00:06:20,900 --> 00:06:23,980 And now you're not going out and requesting this big bunch of data. 91 00:06:24,120 --> 00:06:24,960 Maybe you don't want to. 92 00:06:24,960 --> 00:06:26,560 You want people to know that you're looking up to see, 93 00:06:26,680 --> 00:06:30,180 oh, I'm trying to identify Tor users when they visit my site. 94 00:06:31,000 --> 00:06:32,780 There are some limitations to this, though, 95 00:06:32,820 --> 00:06:35,480 because not all the exit IP addresses are actually published. 96 00:06:35,920 --> 00:06:40,040 Some exit nodes accept requests on one IP address, 97 00:06:40,200 --> 00:06:41,820 but then send traffic out on another. 98 00:06:42,060 --> 00:06:46,660 So this kind of limits your ability to get the global picture. 99 00:06:47,540 --> 00:06:50,560 So then there is a project called Tor DNS EL, 100 00:06:50,880 --> 00:06:53,500 which is an active testing exit list tool. 101 00:06:53,720 --> 00:06:54,860 And this is going to go. 102 00:06:54,960 --> 00:06:56,740 It's going to go through and actually actively test 103 00:06:56,740 --> 00:06:59,680 to try and determine what are the real exit node IP addresses 104 00:06:59,680 --> 00:07:02,100 that are being used to send out the traffic. 105 00:07:02,520 --> 00:07:04,960 And if you use the Tor browser bundle, 106 00:07:05,140 --> 00:07:08,240 when you load it up, it goes to check.torproject.org. 107 00:07:08,380 --> 00:07:10,300 This is using Tor DNS EL. 108 00:07:11,880 --> 00:07:15,560 Another approach at more of a higher level at the application layer, 109 00:07:15,740 --> 00:07:19,780 we can request specific content through HTML, 110 00:07:19,960 --> 00:07:21,680 you know, iframes, images, links, whatever, 111 00:07:21,900 --> 00:07:24,860 using some special syntaxes that Tor supports internally. 112 00:07:24,960 --> 00:07:28,360 To get to hidden services, you use .onion. 113 00:07:28,480 --> 00:07:31,140 To request through a specific exit node, 114 00:07:31,260 --> 00:07:32,780 you use the fingerprint .exit. 115 00:07:32,900 --> 00:07:35,580 So by doing this, if a user is not using Tor, 116 00:07:36,160 --> 00:07:39,560 then they're not going to be able to retrieve these resources. 117 00:07:39,800 --> 00:07:42,280 And you can test for this, you know, 118 00:07:42,300 --> 00:07:45,600 using like onload events on image tags, on iframes. 119 00:07:46,340 --> 00:07:49,160 But there are some kind of significant problems with doing this. 120 00:07:49,240 --> 00:07:50,640 One is speed. 121 00:07:50,860 --> 00:07:52,480 You know, these requests are slow, 122 00:07:52,560 --> 00:07:53,760 especially for hidden services. 123 00:07:53,760 --> 00:07:56,760 Your .onion request is going to take a long time. 124 00:07:57,400 --> 00:08:02,140 It also, you're depending on resources that are outside of your control. 125 00:08:02,420 --> 00:08:04,800 So, you know, these may come, these may go. 126 00:08:04,980 --> 00:08:06,820 So you never get a true picture of, 127 00:08:07,280 --> 00:08:09,360 am I actually identifying these Tor users properly? 128 00:08:10,220 --> 00:08:14,560 So there's another internal special syntax that Tor uses, 129 00:08:14,640 --> 00:08:15,740 which is .noconnect. 130 00:08:15,960 --> 00:08:21,880 And you can use this to test the speed at which you resolve DNS names 131 00:08:21,880 --> 00:08:23,080 that end in .noconnect. 132 00:08:24,220 --> 00:08:26,220 .noconnect is essentially a no-op operation. 133 00:08:26,460 --> 00:08:29,420 As soon as you request an address ending in .noconnect, 134 00:08:29,560 --> 00:08:30,980 Tor immediately closes it. 135 00:08:31,240 --> 00:08:35,640 Now, if you're actually using, requesting host names over DNS, 136 00:08:35,960 --> 00:08:39,380 even those host names, you're going to a local DNS resolver, 137 00:08:39,480 --> 00:08:42,220 are still going to take more time than it takes for Tor to close your socket. 138 00:08:42,440 --> 00:08:44,360 So you can use these timing discrepancies 139 00:08:44,360 --> 00:08:47,120 to actually identify somebody if they're using Tor. 140 00:08:47,320 --> 00:08:50,640 And what's attractive about this is it's entirely on the client side, 141 00:08:50,840 --> 00:08:52,140 entirely in JavaScript. 142 00:08:53,820 --> 00:08:56,220 So let's talk a little bit about fingerprinting. 143 00:08:56,240 --> 00:08:59,700 And we're going to focus on browser fingerprinting here 144 00:08:59,700 --> 00:09:03,020 through active testing of browser characteristics. 145 00:09:03,640 --> 00:09:06,880 And I primarily focused on Firefox and TorButton 146 00:09:06,880 --> 00:09:09,240 because these are recommended by the Tor project. 147 00:09:09,500 --> 00:09:13,360 And TorButton, what it does is it attempts to modify your user agent information 148 00:09:13,360 --> 00:09:17,780 to keep you from being easily identified. 149 00:09:18,080 --> 00:09:21,540 So TorButton picks a specific user agent string 150 00:09:21,540 --> 00:09:23,580 and uses this for all your, 151 00:09:23,760 --> 00:09:26,820 and I didn't test any other browsers on this stuff. 152 00:09:26,960 --> 00:09:29,120 I'm sure there are similar techniques that can be used. 153 00:09:29,400 --> 00:09:32,540 So let's talk about some anonymity set reductions in Firefox. 154 00:09:33,700 --> 00:09:37,380 Internally, Firefox has certain behavioral changes 155 00:09:37,850 --> 00:09:39,900 that vary between platforms and versions. 156 00:09:40,180 --> 00:09:43,300 And we can go ahead and enumerate all this information and test for it. 157 00:09:43,640 --> 00:09:47,240 One of the best ways to go about this 158 00:09:47,240 --> 00:09:49,540 is there's an internal components.interfaces 159 00:09:49,540 --> 00:09:52,320 that exposes internal Firefox information 160 00:09:52,320 --> 00:09:53,740 about what interfaces are used. 161 00:09:53,740 --> 00:10:00,260 So for example, there's an NSI accessible Win32 object, 162 00:10:00,400 --> 00:10:03,360 an NSI Windows reg key that are only available on Windows. 163 00:10:03,640 --> 00:10:07,260 There's an NSI Mac shell service, an NSI local file Mac. 164 00:10:07,460 --> 00:10:09,600 These are only available on Mac OS X. 165 00:10:10,100 --> 00:10:14,780 There's this NSI script security manager 190 branch 166 00:10:14,780 --> 00:10:16,720 that was added in 3.0.12. 167 00:10:16,820 --> 00:10:20,540 So you can test for these and identify what platform a user's on 168 00:10:20,540 --> 00:10:23,140 and what Firefox version they're running. 169 00:10:23,680 --> 00:10:26,280 Simply based on the existence of these values, 170 00:10:26,620 --> 00:10:28,960 they could be returned bogus information, 171 00:10:29,380 --> 00:10:31,120 but simply having them be present, 172 00:10:31,240 --> 00:10:33,000 we can enumerate them and test on it. 173 00:10:33,100 --> 00:10:36,240 So this allows us to unmask the real user information. 174 00:10:36,740 --> 00:10:38,340 I don't know how well you can see this, 175 00:10:38,420 --> 00:10:41,160 but this is looking at Mac OS X, 176 00:10:41,280 --> 00:10:46,100 and Firefox is claiming that this is Windows 2.0.0.16, 177 00:10:46,260 --> 00:10:49,820 but it's actually 3.0.10 on Mac OS X. 178 00:10:50,000 --> 00:10:53,000 So using this, we can very easily, 179 00:10:53,140 --> 00:10:53,820 and very quickly, 180 00:10:53,900 --> 00:10:56,720 identify specific user agent strings, 181 00:10:56,880 --> 00:10:58,320 even if you've attempted to hide them. 182 00:10:59,160 --> 00:11:02,880 We can also look for installed and enabled Firefox add-ons. 183 00:11:04,480 --> 00:11:06,860 In the old days, like Firefox 2, 184 00:11:07,800 --> 00:11:10,040 components exposed themselves via Chrome. 185 00:11:10,180 --> 00:11:12,660 Chrome content could be very easily retrieved. 186 00:11:13,080 --> 00:11:15,440 Some extensions still choose to do this 187 00:11:15,440 --> 00:11:17,940 by setting this content accessible equals yes 188 00:11:17,940 --> 00:11:19,000 in their manifest file. 189 00:11:19,140 --> 00:11:22,080 So we could pull information from resources in Chrome. 190 00:11:22,200 --> 00:11:22,900 Now, Tor button, 191 00:11:22,900 --> 00:11:23,640 Tor button blocks this. 192 00:11:23,860 --> 00:11:25,800 So I had to come up with a different approach, 193 00:11:25,900 --> 00:11:29,440 and that's to look at components that expose their own XPCOM interfaces. 194 00:11:30,100 --> 00:11:32,440 So like Google Toolbar, for example, 195 00:11:32,440 --> 00:11:34,460 exposes this GTBI bookmark helper, 196 00:11:34,640 --> 00:11:38,100 and Greasemonkey exposes GI browser window. 197 00:11:38,260 --> 00:11:39,940 By testing for these, we can say, 198 00:11:40,060 --> 00:11:43,340 oh, you have this specific extension or add-on installed. 199 00:11:43,660 --> 00:11:45,120 And as we start to do this, 200 00:11:45,180 --> 00:11:45,900 you can start to see, 201 00:11:46,040 --> 00:11:47,860 oh, we can start to slice people up. 202 00:11:48,040 --> 00:11:49,860 You know, certain people have certain add-ons installed 203 00:11:49,860 --> 00:11:50,860 and other people's don't. 204 00:11:50,940 --> 00:11:52,340 And like if you're using Tor button, 205 00:11:52,340 --> 00:11:53,880 you toggle this on and off. 206 00:11:53,940 --> 00:11:56,020 If you visit the site today using Tor, 207 00:11:56,180 --> 00:11:57,920 but visit it later not using Tor, 208 00:11:58,000 --> 00:11:59,260 we can start to come up with these 209 00:11:59,740 --> 00:12:02,020 anonymity set reductions and intersection attacks. 210 00:12:03,300 --> 00:12:06,100 We can also scan for custom protocol handlers. 211 00:12:07,680 --> 00:12:10,680 SMB, SFTP, or it's installed by the GNOME support package. 212 00:12:11,580 --> 00:12:14,080 There's a relative file protocol handler 213 00:12:14,080 --> 00:12:16,520 installed by Foxy Proxy and so on. 214 00:12:17,100 --> 00:12:20,400 Normally, these generate these really annoying browser pop-ups, 215 00:12:20,420 --> 00:12:21,480 these modal windows that say, 216 00:12:21,560 --> 00:12:22,320 oh, I don't know how to handle this. 217 00:12:22,340 --> 00:12:25,900 But by wrapping these requests in a specific jar protocol, 218 00:12:26,300 --> 00:12:27,900 we can actually suppress those, 219 00:12:27,960 --> 00:12:29,440 so this can be done completely silently. 220 00:12:29,980 --> 00:12:32,960 We can also generate and examine browser exceptions. 221 00:12:33,500 --> 00:12:34,800 You know, these are internal exceptions 222 00:12:34,800 --> 00:12:36,080 thrown from the browser. 223 00:12:36,500 --> 00:12:39,840 These error messages from JavaScript are localized. 224 00:12:40,160 --> 00:12:43,280 And this doesn't depend on what your user agent setting is 225 00:12:43,280 --> 00:12:44,520 or what language you have enabled. 226 00:12:44,700 --> 00:12:46,460 You can actually then build a list 227 00:12:46,460 --> 00:12:47,920 of all the possible error messages 228 00:12:47,920 --> 00:12:49,620 and all their possible localized values 229 00:12:49,620 --> 00:12:51,800 to determine which locales 230 00:12:51,800 --> 00:12:53,680 the user has enabled and installed. 231 00:12:54,440 --> 00:12:56,460 Additionally, we can look for internal exceptions. 232 00:12:56,760 --> 00:12:59,180 You know, generate errors in the Firefox code. 233 00:12:59,440 --> 00:13:00,640 Here's a pretty good example. 234 00:13:00,760 --> 00:13:02,760 This browser feed writer has a problem 235 00:13:02,760 --> 00:13:04,960 where if you create it without calling a method 236 00:13:04,960 --> 00:13:05,740 and then close it, 237 00:13:05,800 --> 00:13:07,600 it generates this exception message 238 00:13:07,600 --> 00:13:10,440 and it actually leaks your installation location. 239 00:13:10,560 --> 00:13:12,300 I mean, normally that's probably no big deal 240 00:13:12,660 --> 00:13:15,420 if you have it just installed in the normal location. 241 00:13:15,580 --> 00:13:17,580 But if you have Tor browser bundle installed 242 00:13:17,580 --> 00:13:20,120 and you put that underneath, like on your desktop, 243 00:13:20,120 --> 00:13:22,020 this will reveal your username. 244 00:13:22,360 --> 00:13:25,600 You know, and this can happen in Linux and Mac OS X as well. 245 00:13:33,140 --> 00:13:35,720 We can also enumerate Windows COM objects. 246 00:13:36,160 --> 00:13:38,900 And, you know, normally this would seem like it's impossible. 247 00:13:39,120 --> 00:13:41,640 You know, like Firefox doesn't support COM and ActiveX. 248 00:13:41,760 --> 00:13:44,320 But there was this old kind of Netscape thing in there 249 00:13:44,320 --> 00:13:45,740 called Gecko ActiveX Object. 250 00:13:46,000 --> 00:13:49,420 And you can create and instantiate ActiveX objects, 251 00:13:49,420 --> 00:13:52,300 but the problem is you have to have a whitelist. 252 00:13:52,360 --> 00:13:53,820 And this whitelist is, you know, 253 00:13:53,820 --> 00:13:56,060 I don't think it's really documented very well 254 00:13:56,060 --> 00:13:57,080 and it doesn't work. 255 00:13:57,280 --> 00:14:00,120 But what's interesting is when you request a COM object, 256 00:14:00,280 --> 00:14:02,400 there's a difference in the error messages that are returned 257 00:14:02,400 --> 00:14:05,360 if the COM objects exist on your local machine 258 00:14:05,360 --> 00:14:06,800 versus if it doesn't exist. 259 00:14:07,160 --> 00:14:08,340 You can't actually create it. 260 00:14:08,400 --> 00:14:08,980 You can't call methods. 261 00:14:09,120 --> 00:14:10,960 But simply by testing for this existence, 262 00:14:11,240 --> 00:14:14,640 you can start to look at different plug-ins 263 00:14:14,640 --> 00:14:15,700 and add-ons that are installed. 264 00:14:16,020 --> 00:14:18,420 You can look for specific versions of programs 265 00:14:18,420 --> 00:14:20,260 because some versions of programs differ, 266 00:14:20,420 --> 00:14:23,600 like Microsoft Word varies their COM object 267 00:14:24,100 --> 00:14:26,440 PROG IDs based on what version you have. 268 00:14:26,500 --> 00:14:29,200 So it could be Microsoft.word.8, 269 00:14:29,340 --> 00:14:30,400 you know, that kind of thing. 270 00:14:32,580 --> 00:14:34,920 And let's talk a little bit about local proxies. 271 00:14:35,040 --> 00:14:38,520 Now, local proxies are kind of a blessing and a curse 272 00:14:38,520 --> 00:14:39,760 as far as Tor is concerned because, 273 00:14:40,400 --> 00:14:43,260 although, you know, it allows you to actually use Tor 274 00:14:43,260 --> 00:14:45,600 because Firefox has some problems if you, you know, 275 00:14:45,620 --> 00:14:47,420 try and directly use the SOX proxies, 276 00:14:47,420 --> 00:14:49,380 your port to surf through sometimes, 277 00:14:49,940 --> 00:14:52,220 they also then start to expose this other part, 278 00:14:52,360 --> 00:14:54,340 you know, other application attack point. 279 00:14:54,800 --> 00:14:58,080 You know, the Vidalia bundle ships with the PrivOxy 280 00:14:58,080 --> 00:14:58,740 as its proxy. 281 00:14:59,180 --> 00:15:01,120 Tor browser bundle uses Polipo. 282 00:15:01,180 --> 00:15:04,460 And PrivOxy is a fairly old, old proxy 283 00:15:04,460 --> 00:15:06,100 that's been around for a while. 284 00:15:06,120 --> 00:15:07,500 It was originally used to try and, you know, 285 00:15:07,500 --> 00:15:08,880 limit, like, web browser bugs, 286 00:15:09,080 --> 00:15:11,400 that kind of stuff that we're trying to break down your privacy. 287 00:15:11,820 --> 00:15:12,780 Polipo is much newer. 288 00:15:12,920 --> 00:15:15,200 It's based on HTTP 1.1. 289 00:15:15,740 --> 00:15:16,660 It's caching. 290 00:15:17,420 --> 00:15:19,260 And it has a different set of problems. 291 00:15:20,140 --> 00:15:23,400 So we can look at these behaviors and content 292 00:15:23,400 --> 00:15:26,200 and start to come up with a way to identify 293 00:15:26,200 --> 00:15:28,260 which proxy you're using. 294 00:15:28,820 --> 00:15:32,000 Arsenake demonstrated attacking, detecting PrivOxy 295 00:15:32,000 --> 00:15:34,580 using its built-in CSS, like, in 2006. 296 00:15:34,840 --> 00:15:36,400 And it still works to this day. 297 00:15:36,440 --> 00:15:37,380 This hasn't ever been addressed. 298 00:15:37,860 --> 00:15:38,760 But it could be. 299 00:15:38,780 --> 00:15:39,720 It could be very simply addressed 300 00:15:39,720 --> 00:15:42,160 if the remote config.privoxy.org site 301 00:15:42,160 --> 00:15:43,900 simply hosted the same content. 302 00:15:44,060 --> 00:15:45,900 But, you know, nobody's ever done that. 303 00:15:45,900 --> 00:15:48,960 But there's also a shortcut method in PrivOxy, 304 00:15:49,040 --> 00:15:50,040 which is p.p. 305 00:15:50,180 --> 00:15:52,820 And so there's no way that some website's 306 00:15:52,820 --> 00:15:54,140 ever going to be able to host p.p. 307 00:15:54,180 --> 00:15:56,280 So we can just modify our detection routines 308 00:15:56,280 --> 00:15:57,420 and use p.p. instead. 309 00:15:58,720 --> 00:16:02,280 These proxies also exhibit locally detectable behaviors, 310 00:16:02,420 --> 00:16:05,340 such as the set of filters on headers 311 00:16:05,340 --> 00:16:08,640 that the Tor browser bundle uses in Polipo 312 00:16:08,640 --> 00:16:10,660 are from, except language, xpad, and link. 313 00:16:10,760 --> 00:16:13,140 So we can generate XML HTTP requests 314 00:16:13,140 --> 00:16:14,920 and actively test for this, you know. 315 00:16:14,920 --> 00:16:16,080 Generate a list of... 316 00:16:16,080 --> 00:16:17,500 Add these headers to our request, 317 00:16:17,600 --> 00:16:18,420 send it out to the site, 318 00:16:18,480 --> 00:16:19,180 see if they made it. 319 00:16:19,240 --> 00:16:20,060 If they didn't make it, 320 00:16:20,300 --> 00:16:22,000 oh, we can tell you're using Polipo. 321 00:16:23,920 --> 00:16:26,220 And we can also then move on to looking at 322 00:16:26,220 --> 00:16:30,100 can we cause these proxies to have errors? 323 00:16:30,420 --> 00:16:32,480 You know, if we can read those error messages back, 324 00:16:32,520 --> 00:16:33,860 we start to get information about 325 00:16:34,500 --> 00:16:35,720 what versions they are 326 00:16:35,720 --> 00:16:38,520 and perhaps other information that can be used 327 00:16:38,520 --> 00:16:40,380 to reduce your anonymity and privacy. 328 00:16:41,580 --> 00:16:43,120 Because some of these error responses 329 00:16:43,120 --> 00:16:44,520 include the proxy version, 330 00:16:44,920 --> 00:16:45,720 your host name, 331 00:16:45,820 --> 00:16:47,100 the local time and time zone. 332 00:16:47,320 --> 00:16:49,680 And as long as we can maintain a same origin, 333 00:16:49,840 --> 00:16:51,200 we can read these error messages back. 334 00:16:51,320 --> 00:16:52,660 Here's a Windows privoxy error. 335 00:16:52,880 --> 00:16:53,960 You can see the version 336 00:16:53,960 --> 00:16:55,240 and what host it's listening on. 337 00:16:55,440 --> 00:16:56,780 Here's a Windows Polipo error. 338 00:16:57,020 --> 00:16:58,120 We can actually see, then, 339 00:16:58,120 --> 00:16:59,800 the local time zone of where this is. 340 00:17:00,840 --> 00:17:02,080 Here's one from Linux. 341 00:17:02,240 --> 00:17:03,460 This is Ubuntu, 342 00:17:03,500 --> 00:17:04,680 and it was installed via AppGit. 343 00:17:04,740 --> 00:17:07,580 You can see the actual host name of the machine. 344 00:17:13,340 --> 00:17:14,660 So how do we go about 345 00:17:15,160 --> 00:17:16,360 generating some of this information? 346 00:17:16,800 --> 00:17:18,520 And we can use browser defects 347 00:17:18,520 --> 00:17:19,820 and educations to get to this, 348 00:17:19,900 --> 00:17:22,180 like generating a post request without a length, 349 00:17:22,720 --> 00:17:24,280 using an IPv6 host name. 350 00:17:24,560 --> 00:17:25,980 We can use malform authorities, 351 00:17:27,140 --> 00:17:28,560 bogus HTTP methods. 352 00:17:28,720 --> 00:17:30,360 And the most successful one so far, 353 00:17:30,460 --> 00:17:31,700 I've discerned, 354 00:17:31,720 --> 00:17:33,380 is the IPv6 host name. 355 00:17:33,420 --> 00:17:35,500 Both privoxy and Polipo 356 00:17:35,500 --> 00:17:38,900 and other proxies fail miserably 357 00:17:38,900 --> 00:17:40,000 when attempting to parse that. 358 00:17:41,060 --> 00:17:43,260 But even if the client side is fixed, 359 00:17:43,380 --> 00:17:44,380 we can still cause errors 360 00:17:44,380 --> 00:17:45,260 from the server side. 361 00:17:45,760 --> 00:17:47,160 We can generate requests 362 00:17:47,160 --> 00:17:48,740 but then drop them on a connect. 363 00:17:49,020 --> 00:17:50,480 Or we can return 364 00:17:50,480 --> 00:17:51,880 just completely non-valid 365 00:17:51,880 --> 00:17:56,020 or nonsensical HTTP headers. 366 00:17:56,260 --> 00:17:59,020 So anything in RFC 2616 367 00:17:59,020 --> 00:18:00,060 is probably fair game 368 00:18:00,060 --> 00:18:00,940 for these types of attacks. 369 00:18:02,100 --> 00:18:03,480 So let's talk about 370 00:18:03,480 --> 00:18:05,780 active attacking of Tor clients. 371 00:18:06,300 --> 00:18:08,480 So here are some historical attacks of note. 372 00:18:09,700 --> 00:18:11,280 The first was a paper, 373 00:18:11,440 --> 00:18:13,000 a white paper put out by Fort Consult 374 00:18:13,000 --> 00:18:14,200 called Practical Onion Hacking. 375 00:18:14,420 --> 00:18:15,800 And they went through 376 00:18:15,800 --> 00:18:17,020 and they really kind of, 377 00:18:17,120 --> 00:18:18,200 in my opinion, 378 00:18:18,220 --> 00:18:18,700 for the first time, 379 00:18:18,720 --> 00:18:19,600 proved out the fact that 380 00:18:19,600 --> 00:18:22,940 by generating active malicious content 381 00:18:22,940 --> 00:18:23,680 at exit nodes, 382 00:18:23,800 --> 00:18:24,980 you could work to unmask people. 383 00:18:25,080 --> 00:18:25,560 What they did is 384 00:18:25,560 --> 00:18:28,180 they ran a modified exit node server 385 00:18:28,180 --> 00:18:30,520 and looped back through a local proxy 386 00:18:30,520 --> 00:18:31,760 and used Perl 387 00:18:31,760 --> 00:18:34,700 to just like dump in client script. 388 00:18:35,040 --> 00:18:35,760 And this client script 389 00:18:35,760 --> 00:18:38,520 would then try and load Java code 390 00:18:38,520 --> 00:18:40,240 and make image requests 391 00:18:40,240 --> 00:18:41,760 and try and do other tricks 392 00:18:41,760 --> 00:18:43,080 to bypass the local proxy. 393 00:18:43,900 --> 00:18:45,520 H.D. Moore did a similar thing. 394 00:18:45,660 --> 00:18:47,320 He was trying to filter out BitTorrent users 395 00:18:47,320 --> 00:18:48,520 for Torment 396 00:18:48,520 --> 00:18:49,400 and that kind of got all 397 00:18:50,080 --> 00:18:52,080 taken out of context and blown up. 398 00:18:52,160 --> 00:18:53,380 But he also has a site called 399 00:18:53,380 --> 00:18:54,120 DeCloak.net 400 00:18:54,120 --> 00:18:55,880 which is the Metasploit decloaking engine. 401 00:18:56,120 --> 00:18:57,040 And this goes through 402 00:18:57,040 --> 00:18:59,100 and does another set of similar attacks 403 00:18:59,540 --> 00:19:03,580 and works to defeat your browser protections 404 00:19:03,580 --> 00:19:05,300 and launch external programs 405 00:19:05,300 --> 00:19:06,640 such as Word and iTunes. 406 00:19:07,420 --> 00:19:09,400 And then we'll talk a little bit about 407 00:19:09,400 --> 00:19:10,460 control port exploitation. 408 00:19:10,460 --> 00:19:12,720 This was a very big topic 409 00:19:12,720 --> 00:19:13,900 in the summer of 2007. 410 00:19:14,420 --> 00:19:16,400 During the time of DEF CON and Black Hat, 411 00:19:17,320 --> 00:19:18,320 Kyle Williams discovered 412 00:19:18,320 --> 00:19:21,200 a very interesting cross protocol attack 413 00:19:21,200 --> 00:19:22,660 against the local control port. 414 00:19:22,900 --> 00:19:24,340 Basically what was happening was 415 00:19:24,340 --> 00:19:26,480 Tor was allowing multiple attempts 416 00:19:26,480 --> 00:19:27,960 at sending the authenticate request. 417 00:19:28,300 --> 00:19:29,880 And if you didn't have a password set, 418 00:19:30,020 --> 00:19:30,820 the authenticate request 419 00:19:30,820 --> 00:19:31,920 could be sent multiple times 420 00:19:31,920 --> 00:19:33,200 over and over and over again. 421 00:19:33,720 --> 00:19:34,800 So what would happen is 422 00:19:34,800 --> 00:19:35,700 you would create a form, 423 00:19:36,620 --> 00:19:38,900 an HTML form and post data. 424 00:19:38,900 --> 00:19:41,160 And this was set with multi-part form data 425 00:19:41,160 --> 00:19:43,620 which meant that each line was on its own line. 426 00:19:43,760 --> 00:19:45,640 So it would see an HTTP, 427 00:19:45,960 --> 00:19:47,640 this, that, headers, whatever. 428 00:19:47,880 --> 00:19:48,640 And then it would finally get 429 00:19:48,640 --> 00:19:49,440 to the authenticate request. 430 00:19:49,640 --> 00:19:50,480 And once it got there, 431 00:19:50,560 --> 00:19:51,560 then you were authenticated 432 00:19:51,560 --> 00:19:53,580 and you could send whatever you wanted. 433 00:19:54,540 --> 00:19:57,060 So this was fixed by only allowing 434 00:19:57,060 --> 00:19:58,980 a single attempt at sending authenticate. 435 00:19:59,200 --> 00:20:00,320 But there was something else 436 00:20:00,320 --> 00:20:02,340 that was really big in summer of 2007, 437 00:20:02,560 --> 00:20:03,980 and that was DNS rebinding. 438 00:20:04,200 --> 00:20:05,500 And I mentioned before 439 00:20:05,500 --> 00:20:07,320 that the traditional DNS rebinding attacks 440 00:20:07,320 --> 00:20:08,560 against Tor didn't work too well. 441 00:20:08,620 --> 00:20:08,880 But there was something else 442 00:20:08,900 --> 00:20:09,120 that worked. 443 00:20:09,120 --> 00:20:09,600 But we could use 444 00:20:09,600 --> 00:20:11,120 the document domain bypass 445 00:20:11,120 --> 00:20:11,760 to create, 446 00:20:11,860 --> 00:20:13,280 use Java to create 447 00:20:13,280 --> 00:20:14,180 raw socket connections. 448 00:20:14,520 --> 00:20:15,340 And at the time, 449 00:20:15,340 --> 00:20:16,660 Tor button didn't block Java. 450 00:20:16,880 --> 00:20:17,640 So this was 451 00:20:17,640 --> 00:20:18,980 an extremely effective attack. 452 00:20:19,240 --> 00:20:20,760 So we moved on 453 00:20:20,760 --> 00:20:21,320 and then we said, 454 00:20:21,380 --> 00:20:21,780 okay, well, 455 00:20:21,840 --> 00:20:22,760 the protection is 456 00:20:22,760 --> 00:20:23,880 to set a control port password. 457 00:20:24,020 --> 00:20:25,860 Don't allow empty passwords. 458 00:20:26,100 --> 00:20:27,240 And we'll get back to that 459 00:20:27,240 --> 00:20:27,720 in a little while. 460 00:20:28,440 --> 00:20:29,900 So Tor button does offer 461 00:20:29,900 --> 00:20:31,240 some protection against scripts. 462 00:20:31,460 --> 00:20:32,540 It attempts to filter out 463 00:20:32,540 --> 00:20:33,300 some dangerous protocols 464 00:20:33,300 --> 00:20:35,040 like resource, Chrome, file. 465 00:20:35,420 --> 00:20:37,240 It masks your identifying properties. 466 00:20:37,240 --> 00:20:39,220 And some of these 467 00:20:39,220 --> 00:20:40,420 are implemented in JavaScript. 468 00:20:40,720 --> 00:20:41,740 It's through hooking 469 00:20:41,740 --> 00:20:42,760 of the browser properties. 470 00:20:42,980 --> 00:20:44,340 But kind of what can be done 471 00:20:44,340 --> 00:20:44,840 in JavaScript 472 00:20:44,840 --> 00:20:46,340 can also be undone in JavaScript. 473 00:20:46,800 --> 00:20:48,180 So let's talk a little bit 474 00:20:48,180 --> 00:20:49,020 about defeating 475 00:20:49,020 --> 00:20:49,960 Tor button protections. 476 00:20:50,780 --> 00:20:52,240 We can use the delete operator 477 00:20:52,800 --> 00:20:54,240 to access prototypes 478 00:20:54,240 --> 00:20:56,420 of the original objects. 479 00:20:56,740 --> 00:20:58,120 And this has been mostly addressed 480 00:20:58,120 --> 00:20:59,540 and it's pretty much 481 00:20:59,540 --> 00:21:00,300 not a concern anymore. 482 00:21:00,520 --> 00:21:01,880 One that still works quite well 483 00:21:01,880 --> 00:21:03,040 is the XPC native wrapper. 484 00:21:03,320 --> 00:21:04,420 For anybody who's ever written 485 00:21:04,420 --> 00:21:06,000 a Firefox extension or add-on, 486 00:21:06,040 --> 00:21:06,860 you know that 487 00:21:06,860 --> 00:21:08,160 XPC native wrappers 488 00:21:08,160 --> 00:21:09,240 are intrinsically created 489 00:21:09,240 --> 00:21:10,200 when you're accessing 490 00:21:11,560 --> 00:21:12,740 code, client script 491 00:21:12,740 --> 00:21:14,160 that's running in a sandbox. 492 00:21:14,540 --> 00:21:16,200 So the idea is that 493 00:21:16,200 --> 00:21:17,680 by using this XPC native wrapper, 494 00:21:17,900 --> 00:21:19,440 you know that you're actually 495 00:21:19,440 --> 00:21:20,900 getting the real code, 496 00:21:21,040 --> 00:21:21,860 the real interface, 497 00:21:22,040 --> 00:21:22,720 the real property, 498 00:21:22,860 --> 00:21:23,700 real method, 499 00:21:23,860 --> 00:21:25,360 and it hasn't been modified 500 00:21:25,360 --> 00:21:25,760 in any way. 501 00:21:25,860 --> 00:21:26,920 Well, we can flip this all around 502 00:21:26,920 --> 00:21:28,040 and use this from our code 503 00:21:28,040 --> 00:21:29,520 to defeat the hooks 504 00:21:29,520 --> 00:21:31,280 that the add-on have done. 505 00:21:31,420 --> 00:21:33,700 So by using this XPC native wrapper, 506 00:21:33,820 --> 00:21:34,560 we can be assured 507 00:21:34,560 --> 00:21:35,400 that we're getting back 508 00:21:35,400 --> 00:21:36,500 the original objects. 509 00:21:36,860 --> 00:21:38,000 So things like the history object 510 00:21:38,000 --> 00:21:39,420 or the screen object 511 00:21:39,420 --> 00:21:40,180 can then read 512 00:21:40,860 --> 00:21:42,100 their original values out. 513 00:21:42,520 --> 00:21:44,320 Another method that I discovered 514 00:21:44,320 --> 00:21:46,200 is using the components.lookup method. 515 00:21:46,420 --> 00:21:48,280 And this returns internally, 516 00:21:48,460 --> 00:21:49,380 intrinsically wrapped 517 00:21:49,380 --> 00:21:50,600 native function objects, 518 00:21:50,900 --> 00:21:52,260 and you can then call those 519 00:21:52,260 --> 00:21:53,400 to construct objects 520 00:21:53,400 --> 00:21:54,180 that are themselves 521 00:21:54,180 --> 00:21:56,940 XPC natively wrapped 522 00:21:56,940 --> 00:21:58,420 and use those to retrieve 523 00:21:58,420 --> 00:21:59,560 original methods as well. 524 00:22:01,720 --> 00:22:02,940 So let's talk a little bit 525 00:22:02,940 --> 00:22:04,540 about active content and plug-ins. 526 00:22:06,200 --> 00:22:06,780 Now, 527 00:22:06,860 --> 00:22:07,880 it's pretty well accepted 528 00:22:07,880 --> 00:22:09,260 that active content and plug-ins 529 00:22:09,260 --> 00:22:10,620 are universally viewed 530 00:22:10,620 --> 00:22:11,920 as dangerous to your anonymity 531 00:22:11,920 --> 00:22:13,220 and nobody would use them 532 00:22:13,220 --> 00:22:14,140 and all this, 533 00:22:14,280 --> 00:22:17,200 but let's think back a little bit. 534 00:22:18,020 --> 00:22:19,200 Times have changed. 535 00:22:19,840 --> 00:22:21,300 We're no longer just 536 00:22:21,300 --> 00:22:22,660 people using Tor 537 00:22:22,660 --> 00:22:25,140 not strictly based on 538 00:22:25,780 --> 00:22:26,960 wanting to remain anonymous. 539 00:22:27,060 --> 00:22:27,900 There are a lot of people 540 00:22:27,900 --> 00:22:29,100 that are using it 541 00:22:29,100 --> 00:22:31,040 to circumvent local restrictions 542 00:22:31,040 --> 00:22:32,000 in their ISPs. 543 00:22:32,140 --> 00:22:33,020 The Iranian elections 544 00:22:33,020 --> 00:22:34,120 is a pretty good example. 545 00:22:34,360 --> 00:22:36,240 And these people want to use 546 00:22:36,240 --> 00:22:36,760 Flash. 547 00:22:37,240 --> 00:22:38,420 They want to view YouTube. 548 00:22:38,520 --> 00:22:39,600 They want to have Java 549 00:22:39,600 --> 00:22:40,460 enabled to do stuff. 550 00:22:40,720 --> 00:22:42,040 So there's going to be 551 00:22:42,040 --> 00:22:42,660 this kind of maybe 552 00:22:42,660 --> 00:22:43,320 a tipping point 553 00:22:43,320 --> 00:22:44,300 where it starts to be like, 554 00:22:44,400 --> 00:22:46,160 well, maybe it's not so bad. 555 00:22:46,240 --> 00:22:47,620 Maybe it's not so dangerous. 556 00:22:47,860 --> 00:22:50,240 And that should be a real concern 557 00:22:50,240 --> 00:22:52,180 because even when you have 558 00:22:52,180 --> 00:22:53,680 your plug-ins disabled, 559 00:22:55,560 --> 00:22:56,560 there's been discoveries 560 00:22:56,560 --> 00:22:57,360 that show that you can 561 00:22:57,360 --> 00:22:58,480 directly load content 562 00:22:58,480 --> 00:22:59,580 because internally, 563 00:23:00,260 --> 00:23:02,500 Firefox has MIME detection 564 00:23:02,500 --> 00:23:05,100 and file extension sniffing 565 00:23:05,100 --> 00:23:06,020 that kicks in. 566 00:23:07,020 --> 00:23:09,060 So this can be then used 567 00:23:09,060 --> 00:23:11,020 to really get after you. 568 00:23:12,460 --> 00:23:14,000 So let's talk a little bit 569 00:23:14,000 --> 00:23:16,120 about a Firefox 2 exploit 570 00:23:16,120 --> 00:23:17,080 that was pretty interesting. 571 00:23:18,140 --> 00:23:20,160 Tor button behaves differently 572 00:23:20,160 --> 00:23:21,020 if it's launched 573 00:23:21,020 --> 00:23:22,200 from a disabled state 574 00:23:22,200 --> 00:23:23,540 versus if it's launched 575 00:23:23,540 --> 00:23:24,860 from an enabled state. 576 00:23:25,460 --> 00:23:27,180 And there were some approaches 577 00:23:27,180 --> 00:23:28,080 that you could use then 578 00:23:28,080 --> 00:23:30,140 to load the active content. 579 00:23:30,220 --> 00:23:31,380 In this case, it was Flash 580 00:23:32,020 --> 00:23:32,920 by wrapping it 581 00:23:32,920 --> 00:23:34,300 in multiple protocol handlers. 582 00:23:34,460 --> 00:23:35,800 And Tor button 583 00:23:36,020 --> 00:23:36,920 was attempting to say, 584 00:23:36,980 --> 00:23:37,980 oh, you're trying to 585 00:23:37,980 --> 00:23:38,940 directly load something. 586 00:23:39,140 --> 00:23:40,180 And it would fire, 587 00:23:40,240 --> 00:23:41,220 but it would fire too late 588 00:23:41,220 --> 00:23:42,060 because by the time 589 00:23:42,060 --> 00:23:43,540 it had actually loaded, 590 00:23:43,700 --> 00:23:45,960 it was already too late. 591 00:23:45,980 --> 00:23:47,200 The Flash was running. 592 00:23:49,200 --> 00:23:50,800 So the way this was constructed 593 00:23:50,800 --> 00:23:52,220 was by using the jar protocol, 594 00:23:53,040 --> 00:23:53,840 sticking it, 595 00:23:53,900 --> 00:23:55,700 then view source in there, 596 00:23:55,820 --> 00:23:58,040 and loading from a jar file 597 00:23:58,040 --> 00:23:59,160 an attack file. 598 00:24:00,100 --> 00:24:02,140 And this jar file contained 599 00:24:02,140 --> 00:24:03,820 an attack.html 600 00:24:03,820 --> 00:24:05,560 and an attack Swift file. 601 00:24:06,020 --> 00:24:07,280 And these two things 602 00:24:07,280 --> 00:24:08,080 then would be loaded, 603 00:24:08,180 --> 00:24:09,500 and the attack.html 604 00:24:09,500 --> 00:24:10,380 would directly load 605 00:24:10,380 --> 00:24:11,700 the attack Swift file 606 00:24:11,700 --> 00:24:12,580 via an iframe. 607 00:24:19,240 --> 00:24:21,000 So let's talk a little bit 608 00:24:21,000 --> 00:24:22,420 about multiple browser attacks. 609 00:24:23,400 --> 00:24:24,620 One of the items 610 00:24:24,620 --> 00:24:26,440 on the Tor project website 611 00:24:26,440 --> 00:24:27,960 suggests using two browsers, 612 00:24:28,160 --> 00:24:29,000 one for Tor 613 00:24:29,000 --> 00:24:31,100 and one for other unsafe browsing. 614 00:24:31,730 --> 00:24:33,620 And it's important to remember 615 00:24:33,620 --> 00:24:34,700 that the unsafe browser 616 00:24:34,700 --> 00:24:36,320 doesn't have many of the 617 00:24:36,980 --> 00:24:38,360 restrictions or protections 618 00:24:39,060 --> 00:24:41,400 that your existing Tor button 619 00:24:41,400 --> 00:24:43,660 in Firefox is going to provide you. 620 00:24:43,740 --> 00:24:45,580 So you could be browsing content 621 00:24:45,580 --> 00:24:46,620 out there on the web, 622 00:24:46,800 --> 00:24:48,260 and this content could be 623 00:24:48,260 --> 00:24:49,560 trying to actively detect 624 00:24:49,560 --> 00:24:51,560 or attack your Tor button 625 00:24:51,560 --> 00:24:53,340 or your installed Tor client 626 00:24:54,160 --> 00:24:56,100 directly through port 9050 627 00:24:56,100 --> 00:24:56,960 or 9051, 628 00:24:57,120 --> 00:24:58,880 and you would have no protection. 629 00:24:59,180 --> 00:25:00,120 So that's something 630 00:25:00,120 --> 00:25:01,000 to be concerned about 631 00:25:01,000 --> 00:25:02,080 if you're using two different 632 00:25:02,080 --> 00:25:03,300 browser instances 633 00:25:03,300 --> 00:25:04,320 because by default, 634 00:25:04,320 --> 00:25:05,660 Firefox isn't going to block 635 00:25:05,660 --> 00:25:09,060 attempts to access port 9050 or 9051. 636 00:25:11,540 --> 00:25:13,660 So these unsafe browsers 637 00:25:13,660 --> 00:25:15,420 can use vulnerabilities 638 00:25:15,420 --> 00:25:18,260 in plug-ins that you may have 639 00:25:18,260 --> 00:25:19,240 installed in these other ones. 640 00:25:19,700 --> 00:25:21,600 There's been numerous discoveries 641 00:25:21,600 --> 00:25:23,980 of Java same-origin bypasses, 642 00:25:24,000 --> 00:25:26,640 and using this, 643 00:25:26,720 --> 00:25:27,860 you can attempt to create 644 00:25:27,860 --> 00:25:28,720 raw socket connections. 645 00:25:29,360 --> 00:25:30,500 Let's say, for example, 646 00:25:30,600 --> 00:25:32,500 that you have a same-origin bypass 647 00:25:32,500 --> 00:25:34,040 in your IE Explorer, 648 00:25:35,460 --> 00:25:37,600 and it creates a socket connection 649 00:25:37,600 --> 00:25:38,080 and says, 650 00:25:38,220 --> 00:25:39,980 oh, well, I'm going to make a request 651 00:25:39,980 --> 00:25:41,380 through your Tor client. 652 00:25:41,740 --> 00:25:42,940 You have a Tor running. 653 00:25:43,040 --> 00:25:44,200 It says, I'm going to make 654 00:25:44,200 --> 00:25:45,960 a SOX request through your Tor client 655 00:25:45,960 --> 00:25:47,200 and go out to a server 656 00:25:47,200 --> 00:25:48,160 to see if that's successful 657 00:25:48,160 --> 00:25:49,320 because if it's successful, 658 00:25:49,500 --> 00:25:50,540 I know that you're using Tor. 659 00:25:50,820 --> 00:25:52,500 And maybe there's some other information 660 00:25:52,500 --> 00:25:53,800 that it can infer from that. 661 00:25:54,360 --> 00:25:55,080 Who knows? 662 00:25:55,280 --> 00:25:56,940 Maybe if you're using a Polipo, 663 00:25:56,980 --> 00:25:58,160 maybe there's cached content 664 00:25:58,160 --> 00:25:59,660 that's being stored locally. 665 00:25:59,740 --> 00:26:00,580 Instead of going directly 666 00:26:00,580 --> 00:26:01,500 to your Tor client, 667 00:26:01,700 --> 00:26:03,400 it makes a request to Polipo 668 00:26:03,400 --> 00:26:04,140 and says, oh, 669 00:26:04,320 --> 00:26:05,240 is there cached content? 670 00:26:05,440 --> 00:26:06,800 Have you visited my site? 671 00:26:07,380 --> 00:26:08,900 There's all sorts of interesting 672 00:26:08,900 --> 00:26:10,320 and emergent attacks 673 00:26:10,320 --> 00:26:11,580 that become available 674 00:26:12,260 --> 00:26:14,100 when you have these multiple browsers 675 00:26:14,100 --> 00:26:15,760 that are all going at the same time. 676 00:26:17,060 --> 00:26:18,800 Something else that's very interesting, 677 00:26:18,960 --> 00:26:20,420 and this is kind of covered by 678 00:26:21,220 --> 00:26:21,880 dcloak.net, 679 00:26:21,940 --> 00:26:24,500 is that external protocol handlers 680 00:26:24,500 --> 00:26:26,480 can automatically launch applications 681 00:26:26,480 --> 00:26:28,040 that aren't proxy-aware. 682 00:26:28,720 --> 00:26:29,840 So, for example, 683 00:26:29,980 --> 00:26:31,080 the Windows Telnet 684 00:26:31,080 --> 00:26:32,640 and LDP protocol handlers, 685 00:26:32,640 --> 00:26:34,440 these are installed by default. 686 00:26:35,520 --> 00:26:36,320 They're enabled, 687 00:26:36,480 --> 00:26:37,720 but they're set to ask. 688 00:26:38,540 --> 00:26:40,780 But the current Tor button 689 00:26:41,520 --> 00:26:43,080 doesn't change your preference 690 00:26:43,460 --> 00:26:45,140 when it's toggled and not toggled. 691 00:26:45,440 --> 00:26:47,440 So let's say you're using Firefox 692 00:26:47,440 --> 00:26:48,860 and something pops up and says, 693 00:26:49,020 --> 00:26:50,220 oh, do you want to use Telnet? 694 00:26:50,820 --> 00:26:52,180 Probably you're not going to say yes, 695 00:26:52,380 --> 00:26:53,420 but maybe you did. 696 00:26:53,480 --> 00:26:54,460 Maybe you said, remember this. 697 00:26:54,700 --> 00:26:55,760 And then sometime later, 698 00:26:55,820 --> 00:26:56,900 you have Tor button enabled, 699 00:26:57,460 --> 00:26:58,560 and somebody says, 700 00:26:58,760 --> 00:26:59,280 oh, well, here, 701 00:26:59,340 --> 00:27:00,420 let me make a Telnet request. 702 00:27:00,420 --> 00:27:04,260 If it's not set to always ask, 703 00:27:04,420 --> 00:27:05,980 it's going to automatically launch Telnet 704 00:27:05,980 --> 00:27:07,740 and go out and automatically connect. 705 00:27:08,200 --> 00:27:09,900 And this is going to completely bypass 706 00:27:11,320 --> 00:27:12,720 your proxy settings, 707 00:27:12,920 --> 00:27:14,380 and you're going to be just, 708 00:27:14,580 --> 00:27:14,880 you know, 709 00:27:15,560 --> 00:27:16,700 they're going to be able to detect 710 00:27:16,700 --> 00:27:17,540 your real IP address, 711 00:27:17,720 --> 00:27:19,500 which is really bad for some people. 712 00:27:20,820 --> 00:27:23,000 And the LDAP protocol handler 713 00:27:23,000 --> 00:27:24,280 is very interesting 714 00:27:24,280 --> 00:27:26,660 because it doesn't say this big, long, 715 00:27:26,660 --> 00:27:28,080 like, run 32 DLL thing. 716 00:27:28,200 --> 00:27:29,240 It says address book. 717 00:27:29,940 --> 00:27:31,600 That sounds pretty innocuous. 718 00:27:31,620 --> 00:27:33,020 Maybe you would be tempted, you know. 719 00:27:33,100 --> 00:27:34,820 Let's say you're visiting a webmail site, 720 00:27:35,000 --> 00:27:37,220 and it says this link needs to use your address book. 721 00:27:37,580 --> 00:27:39,040 Well, that seems reasonable. 722 00:27:39,180 --> 00:27:40,080 It's your address book. 723 00:27:40,160 --> 00:27:41,480 It's a webmail site. 724 00:27:42,020 --> 00:27:45,500 You know, very easy to make a mistake like that. 725 00:27:45,620 --> 00:27:47,500 And what this does is it actually goes out 726 00:27:47,500 --> 00:27:48,360 and makes an LDAP request. 727 00:27:48,620 --> 00:27:49,360 But once again, 728 00:27:49,440 --> 00:27:50,760 it launches an external program. 729 00:27:51,160 --> 00:27:53,240 And this external program is going to bypass 730 00:27:53,240 --> 00:27:55,300 your Tor proxy settings, 731 00:27:55,400 --> 00:27:57,140 and it's going to connect directly to their site. 732 00:28:04,220 --> 00:28:06,060 So let's talk a little bit 733 00:28:06,060 --> 00:28:08,820 about running JavaScript in your browser. 734 00:28:08,920 --> 00:28:11,180 I mean, something that a lot of people suggest 735 00:28:11,180 --> 00:28:12,840 is don't run JavaScript. 736 00:28:13,260 --> 00:28:14,320 Don't run JavaScript. 737 00:28:14,600 --> 00:28:15,300 You know, you'll be safe. 738 00:28:15,440 --> 00:28:16,040 Don't run it. 739 00:28:17,140 --> 00:28:19,200 But there's this interesting problem 740 00:28:19,200 --> 00:28:22,780 that your add-ons that you install in Firefox 741 00:28:22,780 --> 00:28:25,360 are running JavaScript under the scenes. 742 00:28:25,520 --> 00:28:26,780 And if they're doing stuff 743 00:28:26,780 --> 00:28:29,220 that's maybe making DNS work, 744 00:28:29,240 --> 00:28:29,360 DNS requests, 745 00:28:29,640 --> 00:28:31,940 or maybe launching external programs, 746 00:28:32,260 --> 00:28:33,940 you're going to have a significant problem 747 00:28:33,940 --> 00:28:36,160 because you may think you're not running any JavaScript, 748 00:28:36,460 --> 00:28:38,380 but internally your browser's running JavaScript. 749 00:28:39,040 --> 00:28:40,440 So here are some ones. 750 00:28:40,620 --> 00:28:42,360 And I just focused on kind of, you know, 751 00:28:42,400 --> 00:28:46,200 security-type add-ons like Perspectives, 752 00:28:46,200 --> 00:28:48,240 which goes out and attempts to discern 753 00:28:48,240 --> 00:28:50,620 whether SSL certificates are valid. 754 00:28:50,860 --> 00:28:54,280 And it does this by querying multiple sources. 755 00:28:55,060 --> 00:28:57,060 But in doing this, it's using DNS. 756 00:28:57,060 --> 00:29:00,100 And these DNS requests are, you know, 757 00:29:00,100 --> 00:29:03,480 bypassing your local proxy settings. 758 00:29:03,720 --> 00:29:06,340 And this is especially bad in Firefox 3.5. 759 00:29:06,440 --> 00:29:08,820 I don't know if there was some change that was made 760 00:29:08,820 --> 00:29:09,840 or what. 761 00:29:09,900 --> 00:29:11,200 I haven't been able to determine, 762 00:29:11,440 --> 00:29:13,960 but it appears that any sort of synchronous DNS requests 763 00:29:13,960 --> 00:29:16,200 that are originating from your add-ons 764 00:29:16,200 --> 00:29:18,380 are bypassing your local proxy settings. 765 00:29:18,860 --> 00:29:21,380 Local Rodeo, that's another interesting one. 766 00:29:21,460 --> 00:29:24,620 Local Rodeo is an add-on 767 00:29:24,620 --> 00:29:26,340 that attempts to prevent remote sites 768 00:29:26,340 --> 00:29:28,060 from connecting to your local network, 769 00:29:28,300 --> 00:29:29,580 or local host. 770 00:29:29,800 --> 00:29:32,060 And it does this by, well, using DNS. 771 00:29:32,240 --> 00:29:34,040 Because it says, oh, where are you trying to connect? 772 00:29:34,320 --> 00:29:35,620 Oh, you're trying to connect locally. 773 00:29:35,900 --> 00:29:37,040 Well, where are you coming from? 774 00:29:37,180 --> 00:29:39,020 Well, I'll use DNS to figure that out. 775 00:29:39,540 --> 00:29:42,200 The NetCraft CoolBar, people install this 776 00:29:42,200 --> 00:29:44,080 because it has, like, anti-phishing capabilities. 777 00:29:44,360 --> 00:29:46,840 But once again, it's using DNS internally, 778 00:29:47,920 --> 00:29:49,120 bypassing your proxy settings. 779 00:29:49,880 --> 00:29:51,760 Now, I thought this was pretty funny. 780 00:29:51,820 --> 00:29:53,360 A lot of people love NoScript. 781 00:29:53,520 --> 00:29:54,620 And, you know, I use it too. 782 00:29:54,620 --> 00:29:57,680 But it added a new feature called ABE. 783 00:29:57,820 --> 00:30:02,060 And ABE re-implements a lot of the local Rodeo functionality. 784 00:30:03,120 --> 00:30:04,620 But when it does this, 785 00:30:04,760 --> 00:30:07,800 if you make requests to, like, these local hosts, 786 00:30:07,860 --> 00:30:09,420 other alternative local host ones, 787 00:30:09,560 --> 00:30:11,160 you know, this DWORD one and this HEX one, 788 00:30:11,680 --> 00:30:14,800 it's going to go out and perform a direct DNS lookup 789 00:30:16,820 --> 00:30:19,540 based on the page that you're currently on. 790 00:30:19,760 --> 00:30:22,120 So all you need to do is add an image tag 791 00:30:22,120 --> 00:30:24,220 that requests, you know, 792 00:30:24,620 --> 00:30:26,220 an August image from one of these sites. 793 00:30:26,500 --> 00:30:28,700 And it'll say, oh, you're trying to go to local host. 794 00:30:28,800 --> 00:30:30,060 Oh, stop, no, bad. 795 00:30:30,280 --> 00:30:31,320 Oh, where are you coming from? 796 00:30:31,620 --> 00:30:33,840 And it goes out and does a DNS lookup. 797 00:30:34,040 --> 00:30:37,120 So right there, it's leaking your DNS information. 798 00:30:37,600 --> 00:30:39,660 And this appears to be, you know, 799 00:30:40,140 --> 00:30:42,680 like I mentioned, Firefox 3.5 seems to have problems 800 00:30:42,680 --> 00:30:44,300 with all extensions that I could tell. 801 00:30:44,520 --> 00:30:47,200 But this is actually still effective in Firefox 3. 802 00:30:47,300 --> 00:30:49,440 So I'm not sure what the deal is there. 803 00:30:49,540 --> 00:30:51,960 But, you know, that's something to be concerned about. 804 00:30:55,960 --> 00:30:58,760 Now, add-ons may also launch external programs. 805 00:30:59,000 --> 00:31:00,460 And this is a pretty good one. 806 00:31:01,080 --> 00:31:04,060 Microsoft, in their .NET framework, 807 00:31:04,900 --> 00:31:06,520 installs this framework assistant. 808 00:31:06,920 --> 00:31:09,020 And this gets installed as a global extension. 809 00:31:09,240 --> 00:31:10,760 And if you've been paying any attention 810 00:31:10,760 --> 00:31:14,420 to tech news over the last several months, 811 00:31:14,540 --> 00:31:16,080 this, like, blew up in the Washington Post. 812 00:31:16,240 --> 00:31:17,420 Brian Krebs had a whole big thing. 813 00:31:17,620 --> 00:31:19,320 And, you know, it just got all out of control. 814 00:31:19,460 --> 00:31:21,040 And Microsoft had to release a patch. 815 00:31:21,440 --> 00:31:23,060 And this patch then would, 816 00:31:23,060 --> 00:31:25,580 instead of being installed globally, 817 00:31:26,000 --> 00:31:28,460 it would get installed to your local profile. 818 00:31:30,240 --> 00:31:32,860 So what ends up happening here is 819 00:31:33,520 --> 00:31:35,900 this plug-in is kind of misbehaving. 820 00:31:36,220 --> 00:31:38,040 No, I shouldn't say plug-in. It's an add-on. 821 00:31:38,080 --> 00:31:40,040 It's kind of misbehaving because it doesn't 822 00:31:40,040 --> 00:31:41,900 register itself as a plug-in. 823 00:31:42,020 --> 00:31:44,440 And it doesn't register itself as an application. 824 00:31:45,280 --> 00:31:49,060 Internally, it's looking for application-x-ms 825 00:31:49,060 --> 00:31:51,860 slash x-ms-application. 826 00:31:51,860 --> 00:31:54,780 And when it sees that MIME type returned in a response, 827 00:31:55,140 --> 00:31:57,820 it goes ahead and launches an external program 828 00:31:57,820 --> 00:31:59,300 called Presentation Host. 829 00:31:59,520 --> 00:32:01,960 And this Presentation Host then re-requests 830 00:32:01,960 --> 00:32:03,480 your original requesting URL 831 00:32:03,480 --> 00:32:05,360 using this external program. 832 00:32:05,480 --> 00:32:06,900 And it does this all automatically. 833 00:32:07,220 --> 00:32:08,480 There's an option that says, 834 00:32:08,520 --> 00:32:10,760 ask me before I launch this. 835 00:32:10,860 --> 00:32:12,280 But they have it set to true. 836 00:32:12,360 --> 00:32:14,720 And there was an older Firefox extension 837 00:32:14,720 --> 00:32:16,980 called ffclickonce, I believe. 838 00:32:17,220 --> 00:32:19,820 And it had the same behavior, 839 00:32:19,940 --> 00:32:21,140 the same kind of properties. 840 00:32:21,860 --> 00:32:23,160 And this default was, 841 00:32:23,260 --> 00:32:25,620 ask me before you launch this external network program. 842 00:32:25,840 --> 00:32:28,780 So, you know, it's kind of some questionable stuff there. 843 00:32:28,940 --> 00:32:32,060 So, even though Microsoft released this fix, 844 00:32:32,320 --> 00:32:34,240 this fix doesn't actually do anything 845 00:32:34,240 --> 00:32:35,820 if you still have it installed 846 00:32:35,820 --> 00:32:37,220 and you haven't uninstalled it. 847 00:32:37,280 --> 00:32:38,580 So that's a big concern. 848 00:32:39,140 --> 00:32:40,960 And here's kind of what it looks like. 849 00:32:41,100 --> 00:32:43,760 The top one, it's installed globally 850 00:32:43,760 --> 00:32:44,960 and can't be uninstalled. 851 00:32:45,380 --> 00:32:48,180 And later, the second version, 852 00:32:48,260 --> 00:32:50,040 it's installed in the user profile 853 00:32:50,040 --> 00:32:51,760 and, you know, you finally can't 854 00:32:51,860 --> 00:32:53,100 uninstall it. 855 00:32:59,600 --> 00:33:01,480 But there's a problem with 856 00:33:01,480 --> 00:33:03,520 the Microsoft fix as well. 857 00:33:04,460 --> 00:33:05,760 They install this 858 00:33:05,760 --> 00:33:06,860 under your user profile. 859 00:33:07,520 --> 00:33:09,500 And, you know, maybe they figure everybody's 860 00:33:09,500 --> 00:33:11,560 like most people and they just install Firefox 861 00:33:11,560 --> 00:33:13,460 and they see hard drive 862 00:33:13,460 --> 00:33:14,860 location and are done. 863 00:33:15,100 --> 00:33:17,520 But some people run portable versions 864 00:33:17,520 --> 00:33:19,700 of Firefox. And these portable 865 00:33:19,700 --> 00:33:21,760 versions, you're extending 866 00:33:21,860 --> 00:33:23,400 your local profile is installed 867 00:33:23,400 --> 00:33:24,920 beneath the data directory. 868 00:33:25,260 --> 00:33:27,920 So what happens is, like Tor Browser 869 00:33:27,920 --> 00:33:28,500 Bundle, 870 00:33:28,780 --> 00:33:31,120 when this plugin runs, 871 00:33:31,720 --> 00:33:33,860 runs automatically, it takes its existing 872 00:33:33,860 --> 00:33:35,640 self and reinstalls a version 873 00:33:35,640 --> 00:33:37,220 of it underneath your profile. 874 00:33:37,340 --> 00:33:38,980 So let's say you had this on a USB token. 875 00:33:39,700 --> 00:33:41,960 If you could, you ran this on a machine 876 00:33:41,960 --> 00:33:43,720 that had this extension installed, 877 00:33:44,040 --> 00:33:45,920 it would get installed on your USB 878 00:33:45,920 --> 00:33:48,020 token. And if you took that to a machine 879 00:33:48,020 --> 00:33:49,840 that, you know, you would remove this extension, 880 00:33:49,840 --> 00:33:51,340 it would still have the same 881 00:33:51,720 --> 00:33:52,940 behavior, the same effect. 882 00:33:53,260 --> 00:33:55,480 Somebody could still send this to you and because it's 883 00:33:55,480 --> 00:33:57,220 installed under your local profile 884 00:33:57,220 --> 00:33:59,740 on a USB key, it would 885 00:33:59,740 --> 00:34:01,760 still launch it and you would still be in big 886 00:34:01,760 --> 00:34:02,020 trouble. 887 00:34:05,100 --> 00:34:07,220 So let's talk a little bit about attacking 888 00:34:07,220 --> 00:34:08,900 saved content via Tor. 889 00:34:09,080 --> 00:34:11,660 Now, I think everybody's probably pretty much 890 00:34:11,660 --> 00:34:13,540 aware that a malicious 891 00:34:13,540 --> 00:34:15,680 exit node or a remote 892 00:34:15,680 --> 00:34:17,420 server, for example, 893 00:34:17,500 --> 00:34:19,820 could go ahead and modify content, 894 00:34:19,840 --> 00:34:21,660 that is returning to you. Especially 895 00:34:21,660 --> 00:34:23,800 if it's, you know, first identified that you're 896 00:34:23,800 --> 00:34:25,480 using Tor, you know, through 897 00:34:25,480 --> 00:34:27,860 some of those identifying characteristics I talked 898 00:34:27,860 --> 00:34:30,160 about. Or if it's done some fingerprinting 899 00:34:30,160 --> 00:34:31,780 and it's looked for what extensions 900 00:34:31,780 --> 00:34:33,760 you have installed. You know, maybe it could target 901 00:34:33,760 --> 00:34:35,880 one specifically. So I think 902 00:34:35,880 --> 00:34:37,720 that's all pretty clear 903 00:34:37,720 --> 00:34:39,620 in people's mind that if you download like an 904 00:34:39,620 --> 00:34:41,380 executable over Tor and then run it, 905 00:34:41,480 --> 00:34:43,220 that's just looking for big trouble. 906 00:34:44,680 --> 00:34:45,160 So, 907 00:34:46,220 --> 00:34:47,780 this Trojan content may 908 00:34:47,780 --> 00:34:49,280 wait to phone home, even if 909 00:34:49,840 --> 00:34:51,780 you have your machine set up in such a way 910 00:34:51,780 --> 00:34:53,720 that, you know, all of your traffic is being 911 00:34:53,720 --> 00:34:55,680 transparently proxied and it's not going to 912 00:34:55,680 --> 00:34:57,600 leak any of your DNS 913 00:34:57,600 --> 00:34:58,000 information. 914 00:34:59,440 --> 00:35:01,580 But sometimes even safe content may 915 00:35:01,580 --> 00:35:02,720 not be so safe. 916 00:35:03,300 --> 00:35:05,620 Let's talk a little bit about locally saved HTML 917 00:35:05,620 --> 00:35:06,240 content. 918 00:35:07,740 --> 00:35:09,600 This content, you can force 919 00:35:09,600 --> 00:35:11,200 any HTML to be saved locally 920 00:35:11,780 --> 00:35:13,580 by specifying a content disposition 921 00:35:13,580 --> 00:35:15,640 of attachment. And, you know, people have known 922 00:35:15,640 --> 00:35:16,620 about this for years. 923 00:35:17,300 --> 00:35:19,760 When you do this, you know, you get this pop-up box that says, 924 00:35:19,840 --> 00:35:20,880 do you want to open or save this? 925 00:35:21,340 --> 00:35:23,440 And, you know, there are sites out there that do this 926 00:35:23,440 --> 00:35:25,740 legitimately. You know, download sites, 927 00:35:26,140 --> 00:35:27,640 webmail sites, whatever, you know. 928 00:35:27,780 --> 00:35:29,540 They want to have HTML 929 00:35:29,540 --> 00:35:31,320 content, but they want to make you save it. 930 00:35:33,300 --> 00:35:33,700 So, 931 00:35:34,480 --> 00:35:35,560 if you do this, 932 00:35:35,560 --> 00:35:37,540 and you do save it, later, 933 00:35:37,720 --> 00:35:39,700 and this may vary a little bit 934 00:35:39,700 --> 00:35:41,320 depending on what operating system you're using, 935 00:35:41,480 --> 00:35:43,820 if you double-click on that, it's going to launch 936 00:35:44,500 --> 00:35:45,860 as an HTML file, 937 00:35:46,340 --> 00:35:47,740 launch in your web browser. 938 00:35:48,520 --> 00:35:49,800 So, if this content 939 00:35:49,840 --> 00:35:51,500 had been trojaned in some way, 940 00:35:52,680 --> 00:35:53,960 you know, this is all of a sudden 941 00:35:53,960 --> 00:35:55,420 locally active content 942 00:35:55,420 --> 00:35:57,640 running on your machine. Now, web browsers 943 00:35:57,640 --> 00:35:59,600 have sandboxes that they run this code in, 944 00:36:00,400 --> 00:36:01,840 but there are some interesting problems. 945 00:36:01,960 --> 00:36:03,800 Like in Firefox 2, local HTML 946 00:36:03,800 --> 00:36:05,900 could read any file, any directory 947 00:36:05,900 --> 00:36:07,480 on your machine. So, 948 00:36:07,520 --> 00:36:10,020 simple as just, you know, clicking on a website, 949 00:36:10,160 --> 00:36:11,940 getting a pop-up that says, do you want to open or save 950 00:36:11,940 --> 00:36:13,220 this, and you say save, 951 00:36:13,340 --> 00:36:15,760 and then run it later. It could 952 00:36:15,760 --> 00:36:17,220 just read any file on your machine 953 00:36:17,220 --> 00:36:19,600 and send it off. Now, this has been fixed in 954 00:36:19,840 --> 00:36:20,860 Firefox 3 and beyond. 955 00:36:22,380 --> 00:36:23,760 HTML, locally saved 956 00:36:23,760 --> 00:36:25,540 HTML content is limited to reading 957 00:36:25,540 --> 00:36:27,520 itself and 958 00:36:27,520 --> 00:36:29,860 existing sub-directories that it knows 959 00:36:29,860 --> 00:36:31,820 about. It can no longer enumerate 960 00:36:31,820 --> 00:36:33,480 every single file on your machine. 961 00:36:34,620 --> 00:36:35,820 So, let's look at what 962 00:36:35,820 --> 00:36:37,680 this looks like, because there's something 963 00:36:37,680 --> 00:36:39,620 important to note here. When you choose 964 00:36:39,620 --> 00:36:41,580 open in Firefox, 965 00:36:42,180 --> 00:36:43,640 you're not actually opening 966 00:36:43,640 --> 00:36:45,880 a remote web page. You're opening 967 00:36:45,880 --> 00:36:47,820 a locally saved version of that web 968 00:36:47,820 --> 00:36:49,720 page. That's automatically 969 00:36:49,840 --> 00:36:51,400 getting downloaded in the background 970 00:36:51,400 --> 00:36:53,580 and being saved. You can see this. 971 00:36:53,660 --> 00:36:55,460 I'm choosing to open this HTML document. 972 00:36:55,840 --> 00:36:57,700 And it's getting saved, you know, 973 00:36:57,700 --> 00:36:59,800 with this random name, so you can't, like, reference it 974 00:36:59,800 --> 00:37:01,840 or anything. But then, later, 975 00:37:02,040 --> 00:37:03,720 when, as soon as I click OK, 976 00:37:03,900 --> 00:37:05,460 it opens it from my temp directory. 977 00:37:06,080 --> 00:37:07,680 That's running on my local 978 00:37:07,680 --> 00:37:09,740 machine. We're kind of back to that 979 00:37:09,740 --> 00:37:11,500 same problem. You say, oh, well, 980 00:37:11,940 --> 00:37:13,300 what can we do with this? 981 00:37:14,460 --> 00:37:15,980 In Vidalia bundles, 982 00:37:15,980 --> 00:37:18,520 with Vidalia version 0.0.16 983 00:37:18,520 --> 00:37:19,180 and earlier, 984 00:37:19,840 --> 00:37:21,940 the control password was saved 985 00:37:22,860 --> 00:37:23,820 even for 986 00:37:23,820 --> 00:37:25,040 random values in clear text 987 00:37:25,040 --> 00:37:27,620 in the Vidalia configuration file. 988 00:37:27,840 --> 00:37:29,500 So, locally saved HTML 989 00:37:29,500 --> 00:37:31,420 could read this. They could go through, 990 00:37:31,540 --> 00:37:33,720 figure out where your Vidalia installation 991 00:37:33,720 --> 00:37:35,380 is by enumerating 992 00:37:35,380 --> 00:37:37,520 the directory structure of your machine, 993 00:37:37,780 --> 00:37:39,820 open that file, read out 994 00:37:39,820 --> 00:37:41,760 the value. So, now 995 00:37:41,760 --> 00:37:43,120 if we had Java enabled, 996 00:37:43,360 --> 00:37:45,800 we talked a little bit before about, you know, this is kind of 997 00:37:45,800 --> 00:37:47,740 in the bad old days. If we had Java 998 00:37:47,740 --> 00:37:49,760 enabled and we just happened to have the same origin 999 00:37:49,840 --> 00:37:51,920 bypass, we could then construct 1000 00:37:51,920 --> 00:37:53,540 a request, open a socket, 1001 00:37:53,700 --> 00:37:55,280 and directly connect to the 1002 00:37:55,280 --> 00:37:57,860 Tor control port and send the password 1003 00:37:57,860 --> 00:37:58,980 through. So, this could all be done 1004 00:37:59,860 --> 00:38:01,720 fairly transparently to the user simply 1005 00:38:01,720 --> 00:38:03,860 by them opening a file 1006 00:38:03,860 --> 00:38:05,880 that came up and said, do you want to open or save 1007 00:38:05,880 --> 00:38:06,020 this? 1008 00:38:08,500 --> 00:38:09,860 So, there are some additional 1009 00:38:09,860 --> 00:38:11,520 blended threats that are possible. 1010 00:38:12,580 --> 00:38:13,880 And this is kind 1011 00:38:13,880 --> 00:38:15,280 of, you know, some stuff that's 1012 00:38:16,180 --> 00:38:17,620 been around for a while. 1013 00:38:18,800 --> 00:38:19,660 And, you know, 1014 00:38:19,840 --> 00:38:21,260 it's kind of well known in the web application 1015 00:38:21,820 --> 00:38:23,600 security realm that these, 1016 00:38:23,740 --> 00:38:25,960 the web browser and plug-in 1017 00:38:25,960 --> 00:38:27,520 content have different security models. 1018 00:38:28,000 --> 00:38:29,220 They run in different 1019 00:38:29,220 --> 00:38:31,360 kind of this sandboxed idea. So, like, 1020 00:38:31,380 --> 00:38:33,620 Flash has a different security model 1021 00:38:33,620 --> 00:38:35,860 for locally opened Flash files. What it says 1022 00:38:35,860 --> 00:38:37,820 is it says, oh, you can read any file 1023 00:38:37,820 --> 00:38:39,840 on the local machine, but you can't connect 1024 00:38:39,840 --> 00:38:41,700 to the network without the user saying, yes, 1025 00:38:41,700 --> 00:38:42,780 you can connect to the network. 1026 00:38:43,300 --> 00:38:45,780 You know, Java has similar restrictions. It says 1027 00:38:45,780 --> 00:38:47,820 older versions said, oh, 1028 00:38:47,840 --> 00:38:49,460 you can only connect to the local host. 1029 00:38:50,940 --> 00:38:51,860 We can go ahead 1030 00:38:51,860 --> 00:38:53,920 and then, you know, 1031 00:38:53,960 --> 00:38:55,840 like, this content can be set 1032 00:38:55,840 --> 00:38:57,440 up in such a way that 1033 00:38:57,440 --> 00:38:57,700 it, 1034 00:38:59,800 --> 00:39:01,680 you can, the remote server can choose 1035 00:39:01,680 --> 00:39:03,620 to accept this request. Because a lot of the time in web 1036 00:39:03,620 --> 00:39:05,340 application security, we're talking about, 1037 00:39:05,900 --> 00:39:07,880 oh, you know, how do I break the same 1038 00:39:07,880 --> 00:39:09,840 origin policy, whatever, you know, it's like, 1039 00:39:09,900 --> 00:39:11,760 but in this case, you know, the remote server can 1040 00:39:11,760 --> 00:39:13,760 choose, oh, I want to do something. 1041 00:39:13,840 --> 00:39:15,220 I want to do something mean to this person. 1042 00:39:15,460 --> 00:39:17,900 So, what you can do is you can use a couple 1043 00:39:17,900 --> 00:39:19,740 of techniques. You can use, you can 1044 00:39:19,840 --> 00:39:21,660 load locally saved 1045 00:39:21,660 --> 00:39:23,820 HTML as a zip file, 1046 00:39:23,980 --> 00:39:25,180 basically, using the jar protocol. 1047 00:39:25,680 --> 00:39:27,740 And this is kind of interesting because 1048 00:39:28,680 --> 00:39:29,760 Flash has some 1049 00:39:29,760 --> 00:39:31,560 interesting properties. You know, as I just talked about, 1050 00:39:31,600 --> 00:39:33,360 Flash, its security model says 1051 00:39:33,360 --> 00:39:35,720 you can read any file, any directory 1052 00:39:35,720 --> 00:39:37,640 on the local machine. So, there's actually a couple ways 1053 00:39:37,640 --> 00:39:39,140 to do this. Kind of the older way 1054 00:39:39,140 --> 00:39:41,540 was to just combine the Swift and HTML 1055 00:39:41,540 --> 00:39:43,700 into an HTML document. It says, 1056 00:39:43,760 --> 00:39:45,700 you know, combine local 1057 00:39:45,700 --> 00:39:48,200 read.swift with loader.html 1058 00:39:48,200 --> 00:39:49,200 into HTML document. 1059 00:39:49,840 --> 00:39:51,800 Serve that up if a user says, oh, open 1060 00:39:51,800 --> 00:39:52,900 it, it gets saved locally, 1061 00:39:54,060 --> 00:39:55,500 opens, and then what's it do? Well, 1062 00:39:55,700 --> 00:39:57,460 what it can do is it can say, I can 1063 00:39:57,460 --> 00:39:58,420 load Flash, 1064 00:39:59,460 --> 00:40:01,720 I can load myself, and then 1065 00:40:01,720 --> 00:40:03,640 Flash says, oh, you can load other local 1066 00:40:03,640 --> 00:40:05,860 files, so it can reload your loader 1067 00:40:05,860 --> 00:40:07,540 file as a local HTML 1068 00:40:07,540 --> 00:40:09,720 file, and at that point, then, you've read any file 1069 00:40:09,720 --> 00:40:11,740 off your local directory, and you can connect 1070 00:40:11,740 --> 00:40:13,200 back out to the web and transmit it. 1071 00:40:13,980 --> 00:40:15,800 So, here's the new technique that I came 1072 00:40:15,800 --> 00:40:17,720 up with, which is to use 1073 00:40:17,720 --> 00:40:19,680 a temporary, you know, use a zip 1074 00:40:19,840 --> 00:40:21,840 file, but instead of storing content in there, 1075 00:40:21,900 --> 00:40:23,560 you know, people think, oh, a zip file, so it's all 1076 00:40:23,560 --> 00:40:25,700 compressed, there's no way to load it. Well, what you do 1077 00:40:25,700 --> 00:40:27,840 is you use the store method, you know, store it, 1078 00:40:27,860 --> 00:40:29,800 no compression, and then when your 1079 00:40:29,800 --> 00:40:31,780 browser loads this, browsers are 1080 00:40:31,780 --> 00:40:33,540 great, they ignore, like, invalid 1081 00:40:33,540 --> 00:40:35,560 garbage content, embedded nulls, whatever. 1082 00:40:35,700 --> 00:40:37,640 It says, oh, can I find some HTML? Oh, 1083 00:40:37,680 --> 00:40:39,700 I found some HTML, let me parse it and load it and 1084 00:40:39,700 --> 00:40:41,760 run script and do whatever. So then this 1085 00:40:41,760 --> 00:40:43,420 file can reload itself 1086 00:40:44,540 --> 00:40:45,700 using the jar protocol 1087 00:40:45,700 --> 00:40:47,720 to pull out specific pieces, and 1088 00:40:47,720 --> 00:40:49,820 once you're doing that, then we're back to, oh, 1089 00:40:49,840 --> 00:40:51,840 I can use direct iframe content 1090 00:40:51,840 --> 00:40:52,620 and load it. 1091 00:40:54,600 --> 00:40:55,740 So let's talk 1092 00:40:55,740 --> 00:40:56,180 a little bit 1093 00:40:57,420 --> 00:40:58,740 about toggle button, 1094 00:40:59,300 --> 00:41:01,580 toggle attacks on TorButton. And these 1095 00:41:01,580 --> 00:41:03,660 have always been pretty interesting, but I don't think 1096 00:41:03,660 --> 00:41:05,760 they've really been fully fleshed out. You know, 1097 00:41:05,760 --> 00:41:07,600 TorButton currently does a pretty good job 1098 00:41:07,600 --> 00:41:09,580 of trying to prevent you from transitioning 1099 00:41:09,580 --> 00:41:11,320 from one state to another 1100 00:41:11,320 --> 00:41:13,560 and leaking information. You know, it handles 1101 00:41:13,560 --> 00:41:15,540 cookies, it handles cache 1102 00:41:15,540 --> 00:41:17,600 content, you know, all sorts of other interesting 1103 00:41:17,600 --> 00:41:19,720 stuff. But, 1104 00:41:19,840 --> 00:41:21,200 here are a couple methods that you can 1105 00:41:21,680 --> 00:41:23,600 use that attempt to defeat these 1106 00:41:23,600 --> 00:41:25,020 protections. The first is 1107 00:41:25,460 --> 00:41:27,700 using a timer, using set interval to create 1108 00:41:27,700 --> 00:41:29,700 a timer. And what this timer does 1109 00:41:29,700 --> 00:41:31,860 is when you're on a specific site and you click, 1110 00:41:32,000 --> 00:41:33,720 you know, let's say 1111 00:41:33,720 --> 00:41:35,700 you have TorButton disabled, and you 1112 00:41:35,700 --> 00:41:37,680 start this timer, you visit the site, start the timer. 1113 00:41:37,860 --> 00:41:39,520 In a new page, you 1114 00:41:39,520 --> 00:41:41,660 open it up and you say, well, enable TorButton, and you start 1115 00:41:41,660 --> 00:41:43,600 surfing. Now, in that previous 1116 00:41:43,600 --> 00:41:45,480 page, that timer was stopped. 1117 00:41:45,700 --> 00:41:46,940 You know, it stops all the JavaScript. 1118 00:41:47,420 --> 00:41:49,820 You go on, do whatever, and then you say, oh, 1119 00:41:49,840 --> 00:41:51,360 well, disable TorButton. Okay. 1120 00:41:51,460 --> 00:41:53,520 Well, that stops, but the new page starts 1121 00:41:53,520 --> 00:41:55,640 running again. And that timer can detect 1122 00:41:55,640 --> 00:41:57,740 the timing difference between when 1123 00:41:57,740 --> 00:41:59,360 it was started and then stopped, 1124 00:41:59,540 --> 00:42:01,660 and when it was restarted. So, 1125 00:42:01,680 --> 00:42:03,660 you know, you can use that then to kind of 1126 00:42:03,660 --> 00:42:05,580 time how long somebody's been using 1127 00:42:05,580 --> 00:42:06,660 Tor and had it enabled. 1128 00:42:08,260 --> 00:42:09,620 You can also remotely 1129 00:42:09,620 --> 00:42:11,420 detect TorButton banned ports. 1130 00:42:11,580 --> 00:42:13,500 TorButton bans some ports. It adds it to the 1131 00:42:13,500 --> 00:42:15,200 list of banned ports in Firefox. 1132 00:42:15,480 --> 00:42:17,860 Port 9050, 9051, 1133 00:42:19,140 --> 00:42:19,640 811, 1134 00:42:19,840 --> 00:42:21,120 8118, and 8123. 1135 00:42:21,220 --> 00:42:23,320 The 8118 and 8123 are the 1136 00:42:23,940 --> 00:42:25,800 HTTP proxy ports for 1137 00:42:25,800 --> 00:42:27,200 PrivOxy and PoloPo. 1138 00:42:28,320 --> 00:42:29,520 Another interesting 1139 00:42:29,520 --> 00:42:31,140 one is the show modal dialogue. 1140 00:42:31,600 --> 00:42:33,720 The return value can be set 1141 00:42:33,720 --> 00:42:35,760 using window.returnValue, and 1142 00:42:35,760 --> 00:42:37,820 when the dialogue pops up, 1143 00:42:37,900 --> 00:42:39,540 if you would do something like toggle your 1144 00:42:39,540 --> 00:42:41,460 TorButton state, the existing 1145 00:42:41,460 --> 00:42:43,640 state is maintained back 1146 00:42:43,640 --> 00:42:45,500 there, and it gets transferred 1147 00:42:45,500 --> 00:42:47,420 back when you close that pop-up window. 1148 00:42:47,660 --> 00:42:49,740 And the JavaScript that's currently present 1149 00:42:49,840 --> 00:42:51,420 waiting to be run is rerun. 1150 00:42:52,720 --> 00:42:53,820 Now, I'd hope to have 1151 00:42:53,820 --> 00:42:55,780 some demos, do some 1152 00:42:55,780 --> 00:42:56,920 live demos up here, but 1153 00:42:57,520 --> 00:42:59,000 one, it's kind of tricky 1154 00:42:59,700 --> 00:43:01,560 with Tor running over the web. 1155 00:43:01,880 --> 00:43:03,760 You know, especially on a hostile network 1156 00:43:03,760 --> 00:43:05,320 like DefCon. And 1157 00:43:05,860 --> 00:43:07,780 as I was preparing for this, I was thinking 1158 00:43:07,780 --> 00:43:09,500 about, maybe I'll record some movies, and 1159 00:43:09,500 --> 00:43:11,820 I got this pop-up one day. It said 1160 00:43:11,820 --> 00:43:13,680 er ready. And I'm like, er 1161 00:43:13,680 --> 00:43:15,200 ready? And 1162 00:43:15,720 --> 00:43:17,720 I clicked okay. It was, you know, 1163 00:43:17,720 --> 00:43:19,620 an alert box from Firefox. And 1164 00:43:20,480 --> 00:43:21,200 Firefox crashed. 1165 00:43:21,540 --> 00:43:23,420 And I was running this in a virtual machine, 1166 00:43:23,520 --> 00:43:25,440 and the virtual machine 1167 00:43:25,440 --> 00:43:27,400 hard drive started grinding away. And I'm like, 1168 00:43:27,500 --> 00:43:29,680 oh, I think maybe I should kill this virtual machine off 1169 00:43:29,680 --> 00:43:30,360 and, you know, 1170 00:43:31,540 --> 00:43:33,400 revert it to a no and good state. And 1171 00:43:33,400 --> 00:43:35,400 what had happened is somebody had launched an exploit, 1172 00:43:35,520 --> 00:43:37,520 and I'm pretty sure that this was some sort of 1173 00:43:37,520 --> 00:43:39,280 exit node that had injected an exploit 1174 00:43:39,280 --> 00:43:41,320 into Firefox and had basically 1175 00:43:41,320 --> 00:43:43,260 owned me. So I wasn't 1176 00:43:43,260 --> 00:43:45,480 particularly ready to get up here 1177 00:43:45,480 --> 00:43:47,100 and get owned on stage. So 1178 00:43:47,660 --> 00:43:49,360 we're going to skip the demos. But the demos, 1179 00:43:49,840 --> 00:43:51,680 this is a temporary location. The real 1180 00:43:51,680 --> 00:43:53,660 location, this will redirect to it. But 1181 00:43:53,660 --> 00:43:55,740 I just put this up there. So everything 1182 00:43:55,740 --> 00:43:57,740 I've covered here, it's live on the web. You 1183 00:43:57,740 --> 00:43:58,960 can try it out. 1184 00:43:59,500 --> 00:44:01,460 Something else I'm hoping to do is to go through and 1185 00:44:01,460 --> 00:44:03,660 you know, this stuff all kind of, you know, if you look at the 1186 00:44:03,660 --> 00:44:05,040 code, it all looks like a magic trick. 1187 00:44:05,720 --> 00:44:07,740 But what I'm going to do is, you know, post about how 1188 00:44:07,740 --> 00:44:09,700 I actually went through and got, like, all the 1189 00:44:09,700 --> 00:44:11,160 component information out of these 1190 00:44:11,960 --> 00:44:13,740 Firefox versions and add-ons. So 1191 00:44:13,740 --> 00:44:15,680 that you can actually reproduce this yourself. 1192 00:44:16,820 --> 00:44:17,600 So what are some 1193 00:44:17,600 --> 00:44:19,720 conclusions to draw from this? There's a 1194 00:44:19,840 --> 00:44:21,480 huge application attack surface here. 1195 00:44:21,760 --> 00:44:23,720 I mean, just gigantic. And you know, 1196 00:44:23,760 --> 00:44:25,700 all of the, you know, web application attacks 1197 00:44:25,700 --> 00:44:27,740 that people know and love, you can 1198 00:44:27,740 --> 00:44:29,740 repurpose a lot of these to attack Tor. 1199 00:44:30,880 --> 00:44:32,000 And what's interesting 1200 00:44:32,000 --> 00:44:33,760 is you can actually take some of these things 1201 00:44:33,760 --> 00:44:35,560 that I've come up with here. There's nothing specific 1202 00:44:35,560 --> 00:44:37,900 about Tor. And use it to, 1203 00:44:37,920 --> 00:44:39,820 you know, just do normal, attack normal web 1204 00:44:39,820 --> 00:44:41,600 traffic, you know, fingerprint normal users. I mean, 1205 00:44:41,640 --> 00:44:43,540 there are other add-ons out there in Firefox 1206 00:44:43,540 --> 00:44:45,740 that say, oh, I want to hide my user agent. 1207 00:44:45,820 --> 00:44:47,620 Oh, I want to hide what language I'm using. 1208 00:44:47,700 --> 00:44:49,820 You can repurpose this stuff and, you know, 1209 00:44:49,840 --> 00:44:51,880 use it. Some of the stuff I wrote specifically 1210 00:44:51,880 --> 00:44:53,680 to, you know, kind of get around some of the Tor 1211 00:44:53,680 --> 00:44:55,560 button restrictions. But there's nothing, 1212 00:44:56,420 --> 00:44:57,800 you know, really 1213 00:44:57,800 --> 00:44:59,680 groundbreaking about some of this stuff. 1214 00:45:00,320 --> 00:45:01,500 So what can you do? 1215 00:45:01,780 --> 00:45:03,520 You know, consider using an isolated environment. 1216 00:45:03,820 --> 00:45:05,760 You know, I'm pretty paranoid with 1217 00:45:05,760 --> 00:45:07,800 this. I always run Tor on VM. Especially when I'm 1218 00:45:07,800 --> 00:45:09,680 doing research on this stuff because, like I said, 1219 00:45:09,740 --> 00:45:11,620 you know, it's very easy to just get owned. 1220 00:45:12,440 --> 00:45:13,500 You know, only install 1221 00:45:13,500 --> 00:45:15,940 the software you need. Run a regressive, 1222 00:45:16,060 --> 00:45:17,800 you know, like egress, restrictive egress 1223 00:45:17,800 --> 00:45:19,700 firewall. You know, limit your 1224 00:45:19,840 --> 00:45:21,840 traffic and, you know, consider transparently 1225 00:45:22,640 --> 00:45:23,840 sending the traffic out 1226 00:45:24,900 --> 00:45:25,820 everything over 1227 00:45:25,820 --> 00:45:27,380 Tor kind of from an isolated environment. 1228 00:45:27,820 --> 00:45:29,720 And, you know, definitely remember your 1229 00:45:29,720 --> 00:45:31,820 safe web browsing habits. Consider using 1230 00:45:31,820 --> 00:45:33,680 isolated identities. Don't mix your 1231 00:45:33,680 --> 00:45:35,480 identities. You know, come up with a specific identity 1232 00:45:35,480 --> 00:45:37,460 when you're using Tor and only 1233 00:45:37,460 --> 00:45:39,700 use that identity. You know, come up with a different identity 1234 00:45:39,700 --> 00:45:41,700 when you're not using Tor. You know, only 1235 00:45:41,700 --> 00:45:43,540 post under a certain account. You know, 1236 00:45:43,540 --> 00:45:45,480 be very cognizant of not mixing accounts. 1237 00:45:45,880 --> 00:45:47,860 And definitely don't ever trust 1238 00:45:47,860 --> 00:45:49,820 anything that was downloaded over an 1239 00:45:49,840 --> 00:45:51,760 unencrypted channel. And I guess 1240 00:45:51,760 --> 00:45:53,780 really don't trust anything that was downloaded 1241 00:45:53,780 --> 00:45:55,600 over an encrypted channel now either. So 1242 00:45:55,600 --> 00:45:57,680 that whole SSL thing is pretty funny. 1243 00:45:58,280 --> 00:45:59,580 So here's some references 1244 00:45:59,580 --> 00:46:01,660 and that's about it. 1245 00:46:02,460 --> 00:46:02,980 So...