1 00:00:14,160 --> 00:00:22,720 Now, I hope that you have a good time at DEF CON. So, this talk is called Hack Any Website. 2 00:00:22,860 --> 00:00:28,300 This is a very sexy title. This explains why there are so many people in the room. 3 00:00:29,360 --> 00:00:31,980 Actually, it's more about man-in-the-middle attack. 4 00:00:34,040 --> 00:00:37,600 So, first I will give you an overview of this attack. 5 00:00:38,020 --> 00:00:44,180 Then, I've prepared a few demos to show you what it's possible to do with this attack. 6 00:00:45,040 --> 00:00:49,720 After that, I will give you some general analysis and I will explain to you how it works. 7 00:00:50,880 --> 00:00:58,000 Then, I follow up with some technical analysis and I will show you the code to be able to reproduce this attack. 8 00:00:58,480 --> 00:01:02,640 Then, I will give you some defense mechanism and then I will conclude. 9 00:01:06,140 --> 00:01:08,560 So, what is the man-in-the-middle attack? 10 00:01:09,040 --> 00:01:14,520 The problem is today, servers are more and more well-protected, but the clients are not. 11 00:01:14,900 --> 00:01:21,560 So, the idea is the following. You have a client, you have a server, and between them, you have the man-in-the-middle. 12 00:01:22,400 --> 00:01:24,960 You have a communication between the client and the server. 13 00:01:26,240 --> 00:01:29,640 Let's say that the client sends a request to the server. 14 00:01:29,860 --> 00:01:33,140 The man-in-the-middle will intercept this request. 15 00:01:34,060 --> 00:01:36,280 It's possible to modify this request. 16 00:01:37,100 --> 00:01:39,780 The server will respond. 17 00:01:40,840 --> 00:01:44,380 And once again, the man-in-the-middle will intercept this response. 18 00:01:45,000 --> 00:01:48,180 And once again, it's possible to modify the response. 19 00:01:48,800 --> 00:01:52,340 So, this is a very generic man-in-the-middle attack. 20 00:01:52,600 --> 00:01:54,940 And I will show you how it's possible to do it. 21 00:01:54,960 --> 00:01:56,280 With Internet Explorer. 22 00:01:58,380 --> 00:02:01,280 So, I've prepared a few demos for you. 23 00:02:01,680 --> 00:02:06,660 As the wireless connection does not work very well, I did it yesterday in my hotel room. 24 00:02:07,000 --> 00:02:09,740 And I will be able to show you what I did. 25 00:02:11,620 --> 00:02:15,360 So, first, I will start with iNotes. 26 00:02:15,500 --> 00:02:17,820 So, you probably know iNotes. 27 00:02:17,940 --> 00:02:24,180 This is a webmail interface to access mail when you're running Lotus Domino. 28 00:02:26,000 --> 00:02:27,980 So, I will launch the demo. 29 00:02:29,120 --> 00:02:36,260 So, this is a very basic computer running Windows 2000 with Internet Explorer. 30 00:02:36,640 --> 00:02:39,100 I've started Internet Explorer. 31 00:02:39,420 --> 00:02:44,380 I will type in the address bar the URL to access the webmail interface. 32 00:02:44,880 --> 00:02:46,820 So, I access the login page. 33 00:02:47,060 --> 00:02:48,100 I type the username. 34 00:02:48,580 --> 00:02:49,820 I type my password. 35 00:02:50,120 --> 00:02:51,220 I will login. 36 00:02:54,960 --> 00:03:00,200 So, very standard, the homepage of the iNotes web access. 37 00:03:00,740 --> 00:03:04,120 I will click on the mail menu. 38 00:03:04,520 --> 00:03:05,920 I will choose inbox. 39 00:03:07,640 --> 00:03:09,640 And once again, this is very standard. 40 00:03:09,800 --> 00:03:13,260 I have the list view with all my email in my list box. 41 00:03:14,360 --> 00:03:16,780 I will right click on one of these emails. 42 00:03:16,920 --> 00:03:19,980 And as you can see, you have a very nice pop-up menu. 43 00:03:20,220 --> 00:03:21,540 And actually, this is a... 44 00:03:21,540 --> 00:03:22,520 It's too fast. 45 00:03:22,800 --> 00:03:24,400 I will just go back. 46 00:03:24,960 --> 00:03:25,420 A little. 47 00:03:26,120 --> 00:03:29,500 So, you have a nice DHTML pop-up menu. 48 00:03:30,020 --> 00:03:34,020 And this DHTML menu, you have some feature like open. 49 00:03:34,240 --> 00:03:35,680 So, you can open an email. 50 00:03:35,940 --> 00:03:38,020 You can move an email to another folder. 51 00:03:38,300 --> 00:03:40,700 You can remove an email from the folder. 52 00:03:40,900 --> 00:03:41,860 So, this is very standard. 53 00:03:42,360 --> 00:03:44,960 I choose the open feature. 54 00:03:46,320 --> 00:03:47,580 And the email is open. 55 00:03:47,740 --> 00:03:49,200 So, everything is fine. 56 00:03:49,340 --> 00:03:50,420 No problem at this moment. 57 00:03:51,680 --> 00:03:54,940 So, now let's try the second demo. 58 00:03:57,940 --> 00:04:09,800 Which is the same except that there is somebody between the client and the server which will attack the communication and modify what happens. 59 00:04:10,040 --> 00:04:12,980 So, let me show you with a graph. 60 00:04:13,260 --> 00:04:17,380 So, you have the client which sends a request to the corporate server. 61 00:04:17,740 --> 00:04:20,920 The corporate server sends back the response. 62 00:04:21,600 --> 00:04:23,680 And it will modify the response. 63 00:04:23,680 --> 00:04:28,080 And actually, I will switch the open and the remove feature. 64 00:04:28,620 --> 00:04:32,780 So, the open and remove feature that you have saw in the pop-up menu will be switched. 65 00:04:34,200 --> 00:04:35,180 So, what will happen? 66 00:04:35,380 --> 00:04:40,620 When the user will try to open his email, he will send the request, I want to remove the email. 67 00:04:41,200 --> 00:04:44,060 So, definitely, the email will be deleted on the server. 68 00:04:44,700 --> 00:04:49,660 And then, the corporate server will send back the release view, obviously, without the email. 69 00:04:50,560 --> 00:04:53,280 So, let me show you how it works. 70 00:04:53,680 --> 00:04:54,300 Very easy. 71 00:04:54,460 --> 00:04:57,820 I launch, once again, the demo. 72 00:04:59,020 --> 00:05:00,380 So, same stuff. 73 00:05:00,540 --> 00:05:01,720 I launch Internet Explorer. 74 00:05:03,360 --> 00:05:04,680 I type the URL. 75 00:05:06,640 --> 00:05:13,880 The user experience is exactly the same except that somebody is intercepting what happens between the client and the server. 76 00:05:14,360 --> 00:05:17,020 So, I type my username and my password. 77 00:05:17,240 --> 00:05:19,220 I login through this page. 78 00:05:21,140 --> 00:05:21,700 Okay. 79 00:05:21,760 --> 00:05:23,660 I reach the home page of Internet Explorer. 80 00:05:23,660 --> 00:05:24,800 The iNotes web access. 81 00:05:25,120 --> 00:05:28,020 I choose the inbox from the mail menu. 82 00:05:30,420 --> 00:05:33,700 Once again, I right-click on one of the emails. 83 00:05:35,460 --> 00:05:37,080 And then, take a look. 84 00:05:37,180 --> 00:05:37,920 I choose open. 85 00:05:38,740 --> 00:05:42,480 But actually, it removes the email from the inbox. 86 00:05:45,000 --> 00:05:47,000 Once again, I do it for another one. 87 00:05:47,080 --> 00:05:48,080 I choose open. 88 00:05:49,160 --> 00:05:49,940 Same stuff. 89 00:05:50,040 --> 00:05:51,860 It will delete the email. 90 00:05:54,520 --> 00:05:57,220 So, it's pretty funny to change those features. 91 00:06:00,700 --> 00:06:01,260 Okay. 92 00:06:01,360 --> 00:06:02,500 So, I have a second demo. 93 00:06:02,600 --> 00:06:06,060 And I think that it's even better than the first one. 94 00:06:06,520 --> 00:06:08,680 It's about the CNN web page. 95 00:06:10,000 --> 00:06:11,420 So, let's do it again. 96 00:06:11,520 --> 00:06:13,740 I will start the demo. 97 00:06:15,500 --> 00:06:19,400 And this time, the computer is free of the attack. 98 00:06:19,620 --> 00:06:23,300 So, I just want to type www.cnn.com. 99 00:06:23,300 --> 00:06:26,040 In the address bar of Internet Explorer. 100 00:06:26,340 --> 00:06:32,640 And I will reach the CNN web page, home page. 101 00:06:32,840 --> 00:06:35,440 I did this yesterday night. 102 00:06:37,160 --> 00:06:39,400 So, let me explain what I will do. 103 00:06:40,300 --> 00:06:46,040 Once again, you have a request between the client and the media website, which is CNN. 104 00:06:47,220 --> 00:06:50,640 CNN will send back the HTML page. 105 00:06:50,640 --> 00:06:54,800 And this HTML page will be intercepted by the man in the middle. 106 00:06:55,320 --> 00:07:01,900 So, what the man in the middle will get, this is the standard source of this HTML page. 107 00:07:02,580 --> 00:07:08,000 And the man in the middle will search for a specific tag. 108 00:07:09,440 --> 00:07:13,380 It's a little bit up here. 109 00:07:13,560 --> 00:07:19,880 This tag, actually, if you take a look at the source of the HTML page of the home page of CNN, 110 00:07:20,660 --> 00:07:25,560 this is the tag to see that you are in the middle of the page with the main title. 111 00:07:25,800 --> 00:07:29,660 And as you remember, it was the title about the doctor of Saddam Hussein. 112 00:07:29,840 --> 00:07:31,780 So, you can see it there. 113 00:07:32,680 --> 00:07:33,700 So, what will happen? 114 00:07:34,220 --> 00:07:39,580 The man in the middle will request something from the malicious server 115 00:07:39,580 --> 00:07:42,480 because I want to change the content of the home page. 116 00:07:43,000 --> 00:07:45,460 So, I do a request to the malicious web server. 117 00:07:46,120 --> 00:07:48,760 Obviously, I get a response from this server. 118 00:07:48,760 --> 00:07:54,500 And then I send back to the client the answer that has been modified. 119 00:07:54,820 --> 00:08:01,240 So, let me show you what you will get. 120 00:08:03,640 --> 00:08:06,620 So, I launch my second CNN demo. 121 00:08:07,000 --> 00:08:10,860 So, this time, the man in the middle will intercept the communication. 122 00:08:11,860 --> 00:08:14,640 I will type the CNN URL. 123 00:08:18,380 --> 00:08:20,160 URL in the address space bar. 124 00:08:22,200 --> 00:08:24,420 And as you can see, this is a little bit different. 125 00:08:25,900 --> 00:08:28,160 So, if you have any information about DEF CON, 126 00:08:28,620 --> 00:08:34,040 I think that you have to report to the DEF CON website. 127 00:08:40,720 --> 00:08:43,220 Okay. So, let me explain to you how it works 128 00:08:43,220 --> 00:08:45,080 and how it's possible to do this. 129 00:08:45,180 --> 00:08:46,840 And you will see that this is very, very easy 130 00:08:46,840 --> 00:08:51,380 to be able to intercept the content from a website. 131 00:08:52,500 --> 00:08:54,320 So, is it new? No. 132 00:08:55,760 --> 00:08:59,040 Actually, I have to go back in the past. 133 00:08:59,240 --> 00:09:02,420 And it was a war between Internet Explorer and Netscape. 134 00:09:02,680 --> 00:09:07,040 And if you remember, there was the release of version 4 135 00:09:07,040 --> 00:09:09,940 in the same week of both Internet Explorer and Netscape. 136 00:09:09,940 --> 00:09:13,300 By the way, I have some PC card. 137 00:09:13,720 --> 00:09:16,460 And I'm supposed to give it away right now. 138 00:09:16,600 --> 00:09:18,260 So, I will ask a question. 139 00:09:18,520 --> 00:09:22,860 And the first one who will answer the question will win the PC card. 140 00:09:23,700 --> 00:09:27,580 In which year was release version 4 of Internet Explorer? 141 00:09:32,020 --> 00:09:32,600 97! 142 00:09:34,440 --> 00:09:35,020 Okay. 143 00:09:43,600 --> 00:09:45,160 Actually, there is a second one. 144 00:09:45,240 --> 00:09:46,200 But this is for the end. 145 00:09:47,560 --> 00:09:48,980 There will be another question. 146 00:09:51,760 --> 00:09:56,960 So, big competition between Internet Explorer and Netscape in 1997. 147 00:09:57,660 --> 00:10:02,340 And Internet Explorer introduced a concept which is a BHO. 148 00:10:02,660 --> 00:10:04,540 The Brother Helper Object. 149 00:10:04,900 --> 00:10:07,820 And actually, it was a very good initiative from Microsoft. 150 00:10:08,180 --> 00:10:09,620 This is a way to... 151 00:10:10,400 --> 00:10:12,000 Open the browser structure. 152 00:10:12,690 --> 00:10:15,640 And you can access the browser structure through a DLL. 153 00:10:15,800 --> 00:10:17,520 So, this is the purpose of the BHO. 154 00:10:18,460 --> 00:10:19,660 And it's a great feature. 155 00:10:19,820 --> 00:10:24,100 When you, for instance, when you download a PDF file through Internet Explorer, 156 00:10:24,870 --> 00:10:27,560 the PDF file is displayed with a BHO. 157 00:10:27,800 --> 00:10:30,000 And it's also the same with a Google toolbar. 158 00:10:30,320 --> 00:10:32,700 The Google toolbar is using a BHO. 159 00:10:33,780 --> 00:10:39,200 The problem of the BHO is that you can change the structure of the HTML page 160 00:10:39,200 --> 00:10:40,980 inside Internet Explorer. 161 00:10:41,200 --> 00:10:44,980 But you have absolutely no security around this feature. 162 00:10:45,320 --> 00:10:49,360 I mean, Microsoft consider probably that Windows was secure enough. 163 00:10:50,000 --> 00:10:52,560 And then, BHO is totally silent. 164 00:10:52,820 --> 00:10:57,020 So, you can fully modify the structure of the HTML page 165 00:10:57,020 --> 00:10:59,540 without any warning for the user. 166 00:10:59,840 --> 00:11:05,820 And basically, this is what I did for both the iNotes and the CNN web page. 167 00:11:08,020 --> 00:11:09,180 So, definitely... 168 00:11:09,180 --> 00:11:12,960 It requires Internet Explorer 4.0 or later. 169 00:11:13,340 --> 00:11:17,060 But if you take a look at the Google site guest, 170 00:11:17,260 --> 00:11:20,780 we show you all the Google requests on the web. 171 00:11:20,900 --> 00:11:22,920 It's more than 90% of the market. 172 00:11:23,040 --> 00:11:26,160 So, definitely, it's not a big deal. 173 00:11:26,900 --> 00:11:30,600 And definitely, what you have to do, you have to create a DLL. 174 00:11:31,380 --> 00:11:34,180 You have to execute a code to be pushed, 175 00:11:34,300 --> 00:11:37,920 to push this DLL into the Internet Explorer process. 176 00:11:39,260 --> 00:11:42,220 The good point is that this is a very generic attack 177 00:11:42,220 --> 00:11:44,840 that leads to a lot of malicious scenarios, 178 00:11:45,040 --> 00:11:46,300 as I just showed you. 179 00:11:48,780 --> 00:11:51,520 So, the good point is that you do not need any hardware. 180 00:11:51,860 --> 00:11:52,840 It's just software. 181 00:11:52,960 --> 00:11:55,040 You have to develop this DLL 182 00:11:55,040 --> 00:11:58,340 and to run this DLL on the client. 183 00:11:59,860 --> 00:12:02,920 Another good point is that you do not have to modify the server. 184 00:12:03,120 --> 00:12:05,120 So, this is what is very, very good 185 00:12:05,120 --> 00:12:08,880 because if I had to change the CNN server, 186 00:12:09,180 --> 00:12:10,980 it would be probably very, very difficult. 187 00:12:12,890 --> 00:12:16,700 Moreover, this attack uses a feature developed by Internet Explorer. 188 00:12:16,900 --> 00:12:18,420 It's developed by Microsoft. 189 00:12:18,970 --> 00:12:21,760 So, definitely, Microsoft gives you all the tools 190 00:12:21,760 --> 00:12:24,520 to develop such attack. 191 00:12:25,800 --> 00:12:32,060 And last, this DLL actually cannot be detected by antivirus. 192 00:12:32,320 --> 00:12:35,900 So, this is a very standard DLL with no specific signature, 193 00:12:36,300 --> 00:12:37,600 nothing very specific. 194 00:12:37,760 --> 00:12:38,940 So, it's very easy. 195 00:12:39,180 --> 00:12:40,640 You just need to push this DLL 196 00:12:40,640 --> 00:12:43,520 and it will not be detected by antivirus. 197 00:12:45,820 --> 00:12:47,820 Last, you can personalize this attack, 198 00:12:47,920 --> 00:12:50,060 and this is what I did for the CNN web page. 199 00:12:50,440 --> 00:12:53,480 I established another connection with a malicious server 200 00:12:53,480 --> 00:12:55,120 to get the new content, 201 00:12:55,360 --> 00:12:58,840 and I reproduced the content for the client. 202 00:13:02,180 --> 00:13:04,940 So, let me give you some technical analysis 203 00:13:04,940 --> 00:13:08,420 to show you how you can develop this BHO, 204 00:13:08,420 --> 00:13:09,140 this attack. 205 00:13:11,200 --> 00:13:14,840 So, actually, BHO, this is a come-in-process DLL. 206 00:13:15,260 --> 00:13:18,660 And once you have registered this DLL, 207 00:13:18,820 --> 00:13:22,000 it will be automatically loaded by Internet Explorer. 208 00:13:22,300 --> 00:13:24,940 So, it means that the next time you start Internet Explorer, 209 00:13:25,260 --> 00:13:27,900 the DLL will be loaded in the process. 210 00:13:29,120 --> 00:13:33,320 And then, at this moment, Internet Explorer will check all the DLL 211 00:13:33,320 --> 00:13:37,660 and it will pass an unknown pointer to your DLL. 212 00:13:37,660 --> 00:13:40,640 So, this is the way you will be able to modify 213 00:13:40,640 --> 00:13:43,100 all the structure of the HTML page. 214 00:13:47,260 --> 00:13:49,020 So, how can you do that? 215 00:13:49,980 --> 00:13:51,420 So, this is pretty obvious. 216 00:13:51,640 --> 00:13:55,160 You have just to define a set-side function, 217 00:13:55,460 --> 00:14:00,200 and in this function, you have to call the manage connection 218 00:14:00,820 --> 00:14:04,020 where you will advise Internet Explorer 219 00:14:04,020 --> 00:14:05,900 that you want to get back 220 00:14:07,200 --> 00:14:08,600 the HTML structure. 221 00:14:08,980 --> 00:14:12,140 So, we will pass, actually, a flag advice 222 00:14:12,140 --> 00:14:14,760 to tell Internet Explorer that you are interested 223 00:14:14,760 --> 00:14:16,320 to get everything. 224 00:14:18,460 --> 00:14:19,740 Once you have done this, 225 00:14:19,960 --> 00:14:22,260 you have to connect your BHO 226 00:14:22,260 --> 00:14:24,680 to the structure, to the browser. 227 00:14:25,160 --> 00:14:28,800 So, you can do this with the find-connection-point function, 228 00:14:28,960 --> 00:14:32,500 and you will get a pointer to a come-printer, 229 00:14:32,740 --> 00:14:35,600 and then you have just to call the advise function, 230 00:14:35,900 --> 00:14:38,880 which, as you can see, is this parameter, 231 00:14:39,560 --> 00:14:44,040 and you will be able to get all the event of the container. 232 00:14:46,020 --> 00:14:49,460 So, any event that will be fired in Internet Explorer 233 00:14:49,460 --> 00:14:52,560 will be catched by your DLL. 234 00:14:53,900 --> 00:14:56,500 So, you have many events that you can intercept. 235 00:14:56,980 --> 00:15:01,460 So, the first event is DSP ID document complete. 236 00:15:01,900 --> 00:15:04,320 So, it means that when the page is downloaded 237 00:15:04,320 --> 00:15:07,320 and will be displayed on the Internet Explorer, 238 00:15:07,660 --> 00:15:09,700 this event will be fired. 239 00:15:10,180 --> 00:15:14,560 So, you will be able to get the full content of the HTML page 240 00:15:14,560 --> 00:15:17,640 and to modify any tag you want, 241 00:15:17,780 --> 00:15:21,900 and then to ask Internet Explorer to render the page. 242 00:15:22,120 --> 00:15:25,080 So, this is what I use for the CNN web page. 243 00:15:25,980 --> 00:15:29,720 I capture this event, I modify the page, 244 00:15:29,820 --> 00:15:33,340 and then Internet Explorer displays the new content. 245 00:15:34,600 --> 00:15:38,320 You have some other pretty interesting events, 246 00:15:38,720 --> 00:15:41,480 like the Navigate complete event, 247 00:15:41,820 --> 00:15:44,220 the Before Navigate, and the new window. 248 00:15:44,660 --> 00:15:46,820 The Before Navigate is pretty interesting 249 00:15:46,820 --> 00:15:51,500 because it's fired before you send a request to the server. 250 00:15:51,780 --> 00:15:53,780 So, I mean, when you type a URL, 251 00:15:53,980 --> 00:15:57,200 or when you want to click on an hyperlink, 252 00:15:57,440 --> 00:15:59,560 this event will be fired, 253 00:15:59,720 --> 00:16:02,840 so you will be able to get the full URL 254 00:16:02,840 --> 00:16:07,440 with all the arguments that have been sent by the client 255 00:16:07,440 --> 00:16:09,460 before it reaches the server. 256 00:16:10,080 --> 00:16:13,940 So, you can get the full URL. 257 00:16:15,100 --> 00:16:19,200 You have more than 20 events that you can intercept, 258 00:16:19,460 --> 00:16:20,820 and if you want to take a look, 259 00:16:20,880 --> 00:16:25,920 you have to go to the xdisp.h header file, 260 00:16:26,100 --> 00:16:28,140 which you can find in the SDK. 261 00:16:30,520 --> 00:16:32,220 So, let me give you an example 262 00:16:32,220 --> 00:16:33,460 with the document complete. 263 00:16:34,080 --> 00:16:38,440 So, once you intercept this event, 264 00:16:39,170 --> 00:16:40,640 you will be able to get 265 00:16:41,240 --> 00:16:43,820 the document structure of the HTML page. 266 00:16:44,000 --> 00:16:46,680 So, this is the function getDocument. 267 00:16:47,980 --> 00:16:50,680 So, this is the document, 268 00:16:50,900 --> 00:16:52,720 and from this document, 269 00:16:52,840 --> 00:16:54,400 you will be able to get the body. 270 00:16:54,500 --> 00:16:56,700 So, it means that the body that you can see 271 00:16:57,220 --> 00:16:59,020 in the HTML page, 272 00:16:59,020 --> 00:17:00,400 so, I mean, 273 00:17:02,060 --> 00:17:03,700 from this tag, 274 00:17:04,380 --> 00:17:05,780 basically to the end, 275 00:17:06,520 --> 00:17:09,860 will be reflected in this structure. 276 00:17:10,420 --> 00:17:12,860 And then, you can pass all this structure 277 00:17:12,860 --> 00:17:14,800 and modify any tag you want, 278 00:17:15,820 --> 00:17:17,900 and once you have done this modification, 279 00:17:18,320 --> 00:17:21,360 this new page will be displayed by Internet Explorer. 280 00:17:22,520 --> 00:17:24,920 The same way, if you want to get the location, 281 00:17:24,980 --> 00:17:25,980 I mean the URL, 282 00:17:26,220 --> 00:17:28,820 you can do it through the getLocation URL, 283 00:17:28,820 --> 00:17:29,260 the URL function. 284 00:17:34,180 --> 00:17:37,420 So, what you have to do to install your component. 285 00:17:37,860 --> 00:17:39,220 Actually, this is very easy. 286 00:17:39,300 --> 00:17:41,240 You have just to register the DLL, 287 00:17:41,720 --> 00:17:43,340 and you have to create a key 288 00:17:43,340 --> 00:17:45,240 in HKEY local machine, 289 00:17:45,500 --> 00:17:47,440 software, Microsoft, Windows, 290 00:17:47,780 --> 00:17:48,780 current version, Explorer, 291 00:17:49,140 --> 00:17:50,260 browser helper object, 292 00:17:50,500 --> 00:17:53,300 with the GUID of your DLL. 293 00:17:53,580 --> 00:17:54,400 And that's all. 294 00:17:54,640 --> 00:17:55,720 Once you have done this, 295 00:17:55,960 --> 00:17:58,320 the next time Internet Explorer 296 00:17:58,820 --> 00:17:59,000 will be launched, 297 00:17:59,220 --> 00:18:01,560 it will automatically load your BHO. 298 00:18:06,880 --> 00:18:08,580 So, how to defend? 299 00:18:10,900 --> 00:18:12,940 First, do not use Internet Explorer. 300 00:18:20,080 --> 00:18:24,080 If you want to still use Internet Explorer, 301 00:18:24,500 --> 00:18:26,240 you have many, many options. 302 00:18:26,480 --> 00:18:27,820 The first one is to disable 303 00:18:28,820 --> 00:18:30,740 or some of the BHOs. 304 00:18:31,240 --> 00:18:33,300 So, you can do it very simply. 305 00:18:33,480 --> 00:18:35,340 Just go through the registry, 306 00:18:35,660 --> 00:18:37,680 to the keys that I've just 307 00:18:38,720 --> 00:18:39,800 show you before, 308 00:18:40,000 --> 00:18:40,460 this key, 309 00:18:40,600 --> 00:18:44,360 and just remove all the keys, 310 00:18:44,540 --> 00:18:45,400 and then, 311 00:18:45,500 --> 00:18:47,320 all the BHO will not be loaded 312 00:18:47,320 --> 00:18:48,540 the next time. 313 00:18:49,080 --> 00:18:50,940 The problem is that it's pretty painful, 314 00:18:51,180 --> 00:18:52,420 because sometimes, 315 00:18:52,620 --> 00:18:53,940 the BHO are pretty useful, 316 00:18:54,120 --> 00:18:56,600 and this is the case for the Acrobat plugin, 317 00:18:56,800 --> 00:18:58,140 or for the Google toolbar. 318 00:19:00,660 --> 00:19:02,360 Another solution would be 319 00:19:02,360 --> 00:19:04,780 for Microsoft to improve 320 00:19:04,780 --> 00:19:06,540 in the coming release 321 00:19:06,540 --> 00:19:07,520 of Internet Explorer 322 00:19:07,520 --> 00:19:09,400 the support of BHO. 323 00:19:10,060 --> 00:19:12,280 First, I'm very, very surprised 324 00:19:12,280 --> 00:19:13,580 that there is no warning 325 00:19:13,580 --> 00:19:15,600 that the BHO has modified 326 00:19:15,600 --> 00:19:16,620 the web page. 327 00:19:16,820 --> 00:19:18,260 So, when I have modified 328 00:19:18,520 --> 00:19:19,660 the CNN web page, 329 00:19:19,780 --> 00:19:21,360 I get absolutely no warning 330 00:19:21,360 --> 00:19:23,100 that something has modified 331 00:19:23,100 --> 00:19:24,680 what I've downloaded from the website. 332 00:19:25,120 --> 00:19:27,200 And I hope that in the next release, 333 00:19:28,820 --> 00:19:29,640 there will be a kind of warning 334 00:19:29,640 --> 00:19:31,300 to let the users that something 335 00:19:31,300 --> 00:19:33,020 happened on the 336 00:19:33,640 --> 00:19:35,140 inside the Internet Explorer. 337 00:19:36,570 --> 00:19:36,880 Otherwise, 338 00:19:37,360 --> 00:19:39,320 they can also create a tag, 339 00:19:39,440 --> 00:19:41,220 something like disabled BHO, 340 00:19:41,420 --> 00:19:43,720 so for a given web page, 341 00:19:43,900 --> 00:19:45,480 you are sure to disable 342 00:19:45,480 --> 00:19:47,180 all the BHO of the page. 343 00:19:55,040 --> 00:19:56,340 Okay, so before 344 00:19:56,340 --> 00:19:57,380 the conclusion, 345 00:20:00,440 --> 00:20:01,120 I'm going to 346 00:20:01,120 --> 00:20:02,660 give the second PC card. 347 00:20:03,200 --> 00:20:04,560 So, to your mind, 348 00:20:04,740 --> 00:20:06,300 which privilege 349 00:20:06,600 --> 00:20:08,300 is required to install 350 00:20:08,300 --> 00:20:09,080 a BHO? 351 00:20:12,820 --> 00:20:13,820 Power user, 352 00:20:13,980 --> 00:20:14,460 power user. 353 00:20:23,460 --> 00:20:24,820 So, definitely, 354 00:20:25,060 --> 00:20:27,040 what I just wanted to show you 355 00:20:27,040 --> 00:20:27,940 is that using 356 00:20:28,820 --> 00:20:29,600 the most standard feature 357 00:20:29,600 --> 00:20:31,940 of Microsoft Internet Explorer, 358 00:20:32,300 --> 00:20:34,280 it was possible to develop an attack, 359 00:20:34,500 --> 00:20:36,440 and this is a very flexible attack. 360 00:20:36,700 --> 00:20:37,900 It's fully selective 361 00:20:37,900 --> 00:20:39,620 and fully personalizable. 362 00:20:40,480 --> 00:20:41,280 So, definitely, 363 00:20:41,580 --> 00:20:43,420 you should not trust what you see. 364 00:20:44,380 --> 00:20:45,940 Another point is that you have, 365 00:20:46,580 --> 00:20:47,760 if you take a look at Google, 366 00:20:48,080 --> 00:20:50,120 you have a lot of BHO watchers, 367 00:20:50,240 --> 00:20:52,060 and this is more executable 368 00:20:52,060 --> 00:20:54,900 to be able to list all the BHOs 369 00:20:54,900 --> 00:20:56,320 that are installed on your computer. 370 00:20:56,580 --> 00:20:58,600 So, definitely, I recommend that you 371 00:20:58,820 --> 00:21:00,480 are using such tools to know 372 00:21:00,480 --> 00:21:02,240 all the BHOs that are installed 373 00:21:02,660 --> 00:21:04,840 on your PC, and I'm pretty sure 374 00:21:04,840 --> 00:21:05,560 that you will be 375 00:21:06,540 --> 00:21:08,080 amazed by what you will discover. 376 00:21:11,160 --> 00:21:12,720 So, this presentation 377 00:21:12,720 --> 00:21:13,640 and the code 378 00:21:14,560 --> 00:21:16,700 can be downloaded from the DEF CON 379 00:21:16,700 --> 00:21:18,400 website. You have 380 00:21:18,400 --> 00:21:20,640 a clear BHO, 381 00:21:20,880 --> 00:21:22,740 and you can do whatever you want 382 00:21:22,740 --> 00:21:23,720 to do with it. 383 00:21:24,460 --> 00:21:26,340 And definitely, if you have any questions, 384 00:21:26,620 --> 00:21:28,540 you can contact me by 385 00:21:28,820 --> 00:21:30,480 email. So, definitely, 386 00:21:30,700 --> 00:21:31,760 have fun with BHO. 387 00:21:33,320 --> 00:21:33,880 Thank you.