1 00:00:00,000 --> 00:00:09,360 So, yeah, this is my improving web generability scanning talk. Yeah, it is not about memory 2 00:00:09,360 --> 00:00:16,060 corruption. It is not about buffer overflows. It's about web scanning. But about cool web 3 00:00:16,060 --> 00:00:24,760 scanning. And, yeah, so we should probably start with the reasons for this talk because 4 00:00:24,760 --> 00:00:34,740 obviously there are like a hundred tools for penetration testing web applications out there 5 00:00:34,740 --> 00:00:44,280 already. I mean, the ‑‑ we know skip fish. We know a little bit of NASs. We know the W3AF, 6 00:00:45,100 --> 00:00:52,780 SQL map, a lot of tools, a lot of good tools. And so the actual reason for this talk is not to 7 00:00:52,780 --> 00:00:53,540 build a new tool. 8 00:00:54,760 --> 00:01:00,780 It does exactly the same thing as all the others do. The reason for this talk is to improve all 9 00:01:00,780 --> 00:01:08,840 the other tools and to build a new tool that acts like proof of concept for the strategy that I'm 10 00:01:08,840 --> 00:01:16,020 going to present now. And, yeah, so this talk is all about web applications and how the web 11 00:01:16,020 --> 00:01:22,940 changed in the last few years. And obviously we're not dealing with static websites anymore 12 00:01:23,720 --> 00:01:24,620 with, you know ‑‑ 13 00:01:24,620 --> 00:01:31,080 So a couple of static sites with some links and some forms and maybe some, I don't know, Java 14 00:01:31,080 --> 00:01:37,080 applets. We're still dealing with Java applets. But there's a lot of new stuff. There are Web 15 00:01:37,080 --> 00:01:45,940 Sockets, Web GL, all that stuff. So the reason for the talk is simply that all the tools that are 16 00:01:45,940 --> 00:01:54,600 out there right now are sort of using HTTP libraries and HTTP parsers to do some kind of 17 00:01:54,620 --> 00:01:54,920 work. And so this is a little bit of a 18 00:01:54,920 --> 00:02:03,540 way to handle the web content that they get through a TCP socket. And I have the impression that 19 00:02:03,540 --> 00:02:09,340 there is a better way to solve the problem. And, yeah, so that's the reason for the talk. 20 00:02:11,120 --> 00:02:23,420 And, yeah, who am I? It's my first year at DEF CON. It's my first talk. And then I do some software development. I did some KVM stuff in the call space. 21 00:02:25,020 --> 00:02:32,260 And I'm trying to build a startup. So that's me. That's why I'm interested in that stuff and why I want to improve that stuff. 22 00:02:34,160 --> 00:02:40,360 So the structure of the talk is primarily really simple. I'm going to talk about the problems of 23 00:02:40,360 --> 00:02:54,600 web scanning. How I, at least for my part of view, solved them. I'm going to try to prove it with some demos. And I'm going to try to 24 00:02:54,620 --> 00:03:00,800 yeah, when you want to switch over to the Metasploit and Kinect talk, then after the 25 00:03:00,800 --> 00:03:04,580 demo is a really good time for that because then I'm simply going to walk through a lot of 26 00:03:04,580 --> 00:03:13,940 code. Yeah. So that's it. And how many of you guys are penetration testers or actually 27 00:03:13,940 --> 00:03:22,180 worked in that space? Could you raise your hands? I thought so. So a lot of you. So, yeah. 28 00:03:22,180 --> 00:03:31,480 You know the tools out there, you know what they do, you know how automated they are. And you 29 00:03:31,480 --> 00:03:39,840 also know that during a penetration test, we can't really rely on one tool as the final and only 30 00:03:39,840 --> 00:03:49,220 solution for web apps because, for example, if you use the W3F framework to penetration test a 31 00:03:49,220 --> 00:03:52,160 website, it is very likely that you will have a penetration test that will be a little bit more 32 00:03:52,180 --> 00:03:57,400 likely to happen that some encoding errors occur. And if you use SQL map to explore the SQL 33 00:03:57,400 --> 00:04:04,580 injection, it is very likely that that process fails. So what we do is we build tool chains. And 34 00:04:04,580 --> 00:04:12,700 we build really large tool chains. And there's nothing wrong with that. But I have the 35 00:04:12,700 --> 00:04:17,880 impression that we build tool chains with a lot of web scanners and all the web scanners have 36 00:04:17,880 --> 00:04:22,160 the same problem. So in the end, we have a lot of web scanners and all the web scanners have 37 00:04:22,180 --> 00:04:30,080 10 tools that fire the exact same HTTP requests against a web server. And we don't have any 38 00:04:30,080 --> 00:04:40,480 benefit from that extra traffic. And, yeah. So that's sort of my feeling of the penetration 39 00:04:40,480 --> 00:04:45,900 test is pain. You start a tool against a website, watch the process, you have no idea what 40 00:04:45,900 --> 00:04:52,160 happens in the background except that some injection attacks happen. And then you start a tool 41 00:04:52,180 --> 00:04:58,200 some crawling and, you know, looking for backup files and I don't know. But it's like a black 42 00:04:58,200 --> 00:05:03,560 box in the end. And you can only hope that one scanner finds more vulnerabilities than 43 00:05:03,560 --> 00:05:14,020 the other scanners. So, yeah. I think ‑‑ yeah. I just try to handle that in a better 44 00:05:14,020 --> 00:05:18,740 way. A more reliable way. Because in web scanning it all comes down to reliability in the end. 45 00:05:20,140 --> 00:05:27,740 So let's start with SkipFish. And I want to say SkipFish is a perfectly great tool. I mean, 46 00:05:27,780 --> 00:05:35,460 the code is great. It's super modular. It's super plain C. Really cool. But if you use it 47 00:05:35,460 --> 00:05:43,200 against JavaScript‑rich applications or a website with, you know, flash, it's completely 48 00:05:43,200 --> 00:05:48,720 useless. It's great for really static websites. It's perfect if you want to use it for 49 00:05:48,720 --> 00:05:55,020 personal Excel or you want to hunt in backups or if you want to Dдose a web server. It's 50 00:05:55,020 --> 00:06:05,340 perfect. But, you know, to authenticate and do WebSockets and attack WebSockets, it's 51 00:06:05,340 --> 00:06:17,820 more or less useless. And the reason for that is it's based on the HTTP library. And I want to say again it's a great tool. I mean, the guy even built a own 52 00:06:18,720 --> 00:06:27,340 library and see and it's cool. So it's a great tool. But I think we have a lot of HTTP fuzzers 53 00:06:27,340 --> 00:06:34,160 out there already and we really don't want to attack HTTP even more because we all know 54 00:06:34,160 --> 00:06:40,780 HTTP, we know how the requests look like, we know how the responses look like, but there's 55 00:06:40,780 --> 00:06:49,080 an additional logical layer of vulnerabilities and features and websites and, you know, if 56 00:06:49,080 --> 00:06:58,340 the core of your scanner is HTTP and the website is based on flash, you get a lot of binary 57 00:06:58,340 --> 00:07:05,940 content and your HTML library is going to try to parse that content and it's going to 58 00:07:05,940 --> 00:07:07,580 fail because it's no HTML. 59 00:07:08,560 --> 00:07:10,760 And so that's just looking at it. 60 00:07:10,760 --> 00:07:17,660 It's going to work. And I think a second example for that problem is the W3F, perfectly modular, 61 00:07:18,040 --> 00:07:28,040 perfectly yeah, it's Python code, it's really cool plug-ins, really cool stuff, but the 62 00:07:28,040 --> 00:07:36,360 core of the W3F is HTTP library. In fact, it's just a URL from Python with an additional, 63 00:07:37,060 --> 00:07:38,440 you know, security layer. 64 00:07:38,780 --> 00:07:40,700 So it's the same problem. 65 00:07:40,700 --> 00:07:41,400 It's the same problem in the very end. 66 00:07:42,940 --> 00:07:50,220 And the third example is a great tool as well, SQL map, we all know it, we all love it 67 00:07:50,220 --> 00:07:51,300 for SQL injections. 68 00:07:53,520 --> 00:08:01,840 But when you try to actually, you know, use the internal heuristics of SQL map to find 69 00:08:01,840 --> 00:08:09,080 some forms on the website and to perform injections against these HTML forms, it is likely to 70 00:08:09,080 --> 00:08:10,520 happen that the internal 71 00:08:10,700 --> 00:08:13,240 HTML parser of SQL map is going to fail. 72 00:08:14,040 --> 00:08:21,080 And I mean, that's okay because as security guys, it's not really our job to write good 73 00:08:21,080 --> 00:08:24,460 HTML parsers and to create good HTTP lips. 74 00:08:25,240 --> 00:08:31,980 But if you're a penetration tester and you run SQL map against a website and SQL map 75 00:08:31,980 --> 00:08:38,480 says the HTML is broken, it's sort of not the result that we expected because we're 76 00:08:38,480 --> 00:08:39,300 not interested in that. 77 00:08:40,900 --> 00:08:49,420 And when you start your Firefox or Chrome or your Bursuit or whatever afterwards and 78 00:08:49,420 --> 00:08:56,420 try to inject into that form manually, you'll recognize it works. 79 00:08:56,740 --> 00:08:59,060 And the HTML is still broken. 80 00:08:59,220 --> 00:09:03,800 And still a really broken website and it may not look nice. 81 00:09:04,040 --> 00:09:08,260 But your browser renders the form. 82 00:09:08,500 --> 00:09:10,680 You can use the code. 83 00:09:10,680 --> 00:09:11,300 You can use web elements. 84 00:09:11,540 --> 00:09:15,780 You see the input fields and you can simply fire your requests. 85 00:09:17,000 --> 00:09:26,140 So yeah, so the sum up of all that stuff is we have a lot of tools. 86 00:09:26,420 --> 00:09:31,140 All the tools are based on HTTP libraries and have some HTML parsers in them. 87 00:09:31,880 --> 00:09:38,680 They also have some, you know, regular expressions to extract some URLs out of JavaScript. 88 00:09:39,240 --> 00:09:40,660 Maybe they have even read the code. 89 00:09:40,680 --> 00:09:42,760 Maybe they have read this for flash files. 90 00:09:43,900 --> 00:09:52,880 But as we have seen with the browser example, there is a better way to solve the problem. 91 00:09:53,340 --> 00:10:01,440 And the solution is, from my point of view, because it is incredibly hard to extract information 92 00:10:01,440 --> 00:10:07,080 from a Turing complete language like JavaScript, it's incredibly hard to handle all the broken 93 00:10:07,080 --> 00:10:08,600 HTML and web stuff. 94 00:10:09,460 --> 00:10:16,480 So the solution is, from my point of view, to simply use a web browser. 95 00:10:17,400 --> 00:10:19,380 So I jumped over a couple of slides. 96 00:10:19,640 --> 00:10:24,060 But I wanted to come to that final point very quickly. 97 00:10:24,420 --> 00:10:33,220 Because the fundamental reason for this talk is simply, and that's really simple, I created 98 00:10:33,220 --> 00:10:35,020 a Python web scanner. 99 00:10:35,120 --> 00:10:38,080 And replaced the actual, the actual HTML. 100 00:10:38,080 --> 00:10:41,720 The, you know, the core component that we know from all the scanners out there. 101 00:10:42,380 --> 00:10:44,200 I replaced that with a web browser. 102 00:10:44,520 --> 00:10:45,340 I took WebKit. 103 00:10:45,940 --> 00:10:50,960 I used the PySide project to get the web browser in there. 104 00:10:51,280 --> 00:10:55,100 And I don't build my HTTP request and all that stuff myself. 105 00:10:55,420 --> 00:10:56,520 I simply use the web browser. 106 00:10:57,200 --> 00:10:58,600 I have full access to it. 107 00:10:58,700 --> 00:11:00,000 I modified WebKit a little bit. 108 00:11:00,220 --> 00:11:00,780 I patched it. 109 00:11:01,660 --> 00:11:04,240 I can fire JavaScript events and all that stuff. 110 00:11:04,500 --> 00:11:05,680 So yeah. 111 00:11:07,540 --> 00:11:07,980 So. 112 00:11:09,260 --> 00:11:13,340 I've talked a lot about HTTP libraries and all that stuff now. 113 00:11:13,540 --> 00:11:21,400 But it all comes down to this whole talk comes down to the web browser that I put in the 114 00:11:21,400 --> 00:11:22,040 middle of my scanner. 115 00:11:24,300 --> 00:11:25,340 And yeah. 116 00:11:25,800 --> 00:11:30,520 I mean, there are some other issues that we have with web scanning. 117 00:11:30,740 --> 00:11:37,980 For example, URLs used to look like the example that is on the slide up there. 118 00:11:38,060 --> 00:11:44,140 You know, slash news, slash question mark, and some parof, whatever. 119 00:11:45,280 --> 00:11:52,080 And then the search engine optimization guys came and they felt good with completely different 120 00:11:52,080 --> 00:11:52,460 URLs. 121 00:11:52,880 --> 00:11:56,340 And they completely ignored the RFCs. 122 00:11:56,360 --> 00:11:57,480 They completely ignored everything. 123 00:11:57,800 --> 00:12:00,080 And it's not bad. 124 00:12:00,320 --> 00:12:02,440 The URLs look nicer, in fact. 125 00:12:02,620 --> 00:12:04,720 But yeah. 126 00:12:04,900 --> 00:12:07,400 We as scanner developers have no chance. 127 00:12:07,400 --> 00:12:15,220 No chance to actually extract dynamic parts of that URL and to, you know, it's simply 128 00:12:15,220 --> 00:12:21,460 impossible to tell which part of a URL today is dynamic, injectable, or, you know, whatever. 129 00:12:21,860 --> 00:12:22,540 It's simply impossible. 130 00:12:24,380 --> 00:12:30,440 So putting all the problems of vulnerabilities scanning together looks like that. 131 00:12:31,380 --> 00:12:32,760 We can't handle JavaScript. 132 00:12:33,120 --> 00:12:33,780 We can't handle slash. 133 00:12:34,160 --> 00:12:36,020 We have problems with authentication. 134 00:12:37,600 --> 00:12:39,840 We have web firewalls out there. 135 00:12:42,240 --> 00:12:45,680 And all of a sudden we also have business logics. 136 00:12:45,720 --> 00:12:48,160 We have e-commerce systems and all that stuff. 137 00:12:48,940 --> 00:12:54,280 So now I come back to my little browser approach. 138 00:12:55,380 --> 00:13:01,220 That does not solve all the problems, but it is a good start because it eliminates most 139 00:13:01,220 --> 00:13:02,000 of the problems. 140 00:13:02,280 --> 00:13:04,500 It eliminates the JavaScript problem. 141 00:13:04,500 --> 00:13:06,780 It eliminates the Flash problem. 142 00:13:08,320 --> 00:13:10,480 There are still some Java outlets out there. 143 00:13:10,680 --> 00:13:16,760 So if we want to support that, that is eliminated as well. 144 00:13:18,380 --> 00:13:19,500 And yeah. 145 00:13:19,640 --> 00:13:28,060 So from there we can start addressing a lot of different problems and we can start to 146 00:13:28,060 --> 00:13:32,100 build actually better tools because we don't have to care about all the stuff that we don't 147 00:13:32,100 --> 00:13:32,400 like. 148 00:13:32,400 --> 00:13:36,080 We don't have to care about redirects, about some HTML stuff. 149 00:13:36,320 --> 00:13:40,820 All that stuff is suddenly gone because the web browser will take care of it. 150 00:13:42,540 --> 00:13:43,600 And yeah. 151 00:13:44,740 --> 00:13:50,300 So I actually put a little example scanner into the slides. 152 00:13:50,500 --> 00:13:51,820 It's just Python. 153 00:13:54,980 --> 00:14:02,060 The code simply shows Python spawning a browser instance. 154 00:14:02,180 --> 00:14:02,380 It's just Python. 155 00:14:02,380 --> 00:14:09,600 It's loading Google.com, crawling Google.com, logging into Google.com, killing the browser 156 00:14:09,600 --> 00:14:12,000 instance again and starting the fuzzing. 157 00:14:12,240 --> 00:14:16,380 And as you can see, the whole scanner has seven lines of code. 158 00:14:17,600 --> 00:14:30,100 And of course, the actual scanner that I'm going to release today is larger, but the 159 00:14:30,100 --> 00:14:32,360 concept and the design of the scanner is larger. 160 00:14:32,360 --> 00:14:36,000 It's exactly shown with that code. 161 00:14:37,400 --> 00:14:48,000 So the follow-up is if we want to build penetration testing tools for the web that are more reliable 162 00:14:48,780 --> 00:14:58,900 and actually more useful to attack today's web applications, you know, not the web that 163 00:14:59,220 --> 00:15:00,520 was online ten years ago. 164 00:15:00,680 --> 00:15:01,480 Okay. 165 00:15:09,360 --> 00:15:18,500 Then we actually need to start actually attacking web content and not HTTP, and so that's kind 166 00:15:18,500 --> 00:15:24,020 of what I wanted to achieve with the included web browser. 167 00:15:26,320 --> 00:15:27,840 And yeah. 168 00:15:27,980 --> 00:15:28,380 So. 169 00:15:30,700 --> 00:15:31,460 I'm out. 170 00:15:31,480 --> 00:15:35,380 As I said before, I did not want to build a new tool and a new solution for everything, 171 00:15:35,620 --> 00:15:41,080 but I also wanted to improve the existing solutions. Because we have great tools for 172 00:15:41,700 --> 00:15:47,500 a lot of different purposes already. We have SQL map, we have the W3F, we have Skipfish, 173 00:15:47,680 --> 00:15:54,320 we have all those tools. And the only process that fails in all those tools is discovery. 174 00:15:54,320 --> 00:16:05,560 So, when this process and all those tools is actually replaced by a process that works 175 00:16:06,120 --> 00:16:12,460 and that works better than the existing process, we can still use all those tools and they 176 00:16:12,460 --> 00:16:19,840 are great, as I said. But we can also put a lot of pressure off the scanner developers 177 00:16:19,840 --> 00:16:24,260 because now suddenly they have actual ‑‑ they have actually time to 178 00:16:24,260 --> 00:16:32,520 focus on security and not on, you know, HTML anymore. And that's kind of good. That's good. 179 00:16:33,030 --> 00:16:44,380 I think that's a good solution for the really annoying problems that come with the web today. 180 00:16:45,620 --> 00:16:53,300 So the second and probably more interesting part of that talk is not about simply putting 181 00:16:53,300 --> 00:16:54,040 a browser engine. 182 00:16:55,340 --> 00:16:57,480 It is about authentication. 183 00:16:59,720 --> 00:17:06,920 The authentication process that is implemented is still relying on the browser engine and 184 00:17:06,920 --> 00:17:13,060 still relying on the rendering and JavaScript execution. But it solves a different problem. 185 00:17:13,560 --> 00:17:22,860 And the problem it solves is not HTTP basic. It's supported by every HTTP library and other 186 00:17:22,860 --> 00:17:29,160 other stuff. But we have a lot of different authentication schemes on the web. And they 187 00:17:29,160 --> 00:17:37,660 all look like that, for example. You know, just some forms, an e‑mail address, a user 188 00:17:37,660 --> 00:17:48,020 name, and what I try to do is to fingerprint these authentication schemes. And actually 189 00:17:48,020 --> 00:17:56,300 what I learned is there are three fingerprintable elements in today's web authentication. It's 190 00:17:57,120 --> 00:18:05,880 as this slide shows, there are always two visible text fields. The first one is, you 191 00:18:05,880 --> 00:18:11,180 know, for some kind of user name or an e‑mail address. The second one is for a password. 192 00:18:11,600 --> 00:18:18,000 And if you have a HTTP library‑based scanner, the problem is that the scanner is actually 193 00:18:18,020 --> 00:18:26,900 blind. It sees a lot of HTML content, a lot of text, but it's hard to tell which of those text 194 00:18:26,900 --> 00:18:32,380 fields is actually used for the user name and which for the password and which one for, I 195 00:18:32,380 --> 00:18:40,080 don't know, the description of your WordPress comment. So when you have a browser engine that 196 00:18:40,080 --> 00:18:47,060 actually renders the CSS and, you know, the actual website, it's really easy to determine 197 00:18:48,020 --> 00:18:52,960 which fields are used for which purpose. And the three fingerprintable elements of 198 00:18:53,680 --> 00:19:02,420 access control on the web is the first one is there are two visible text fields. The 199 00:19:02,420 --> 00:19:08,640 second one is the web tries to protect you from the guy behind you who wants to see your 200 00:19:08,640 --> 00:19:16,580 password on your screen. And the fingerprintable element is the type of the input field, the 201 00:19:18,020 --> 00:19:23,160 number of cards you are typing. So that's an easy one. And so when the scanner actually 202 00:19:23,160 --> 00:19:32,500 found a web form with a password field, the only thing missing is to find the text field 203 00:19:32,500 --> 00:19:41,600 that is used for the user name. And actually that's pretty simple, but as I said, it all 204 00:19:41,600 --> 00:19:48,000 comes down to reliability, and so I came up with a third fingerprint. Actually in the 205 00:19:48,000 --> 00:19:55,780 the geometry. Because when you look at all those log in forms on the web, you will recognize 206 00:19:55,780 --> 00:20:05,900 that the companies try to make the websites look nice. And to do that, the text fields 207 00:20:05,900 --> 00:20:16,180 are parallel. And that's more or less always the case. So even if the first and the second 208 00:20:16,180 --> 00:20:19,040 fingerprint fails, that one is still pretty reliable. 209 00:20:22,680 --> 00:20:33,180 So in the end, we have a log in function. And the useful thing about the log in function 210 00:20:33,180 --> 00:20:38,980 is that it is provided by the web browser itself. So when you build a vulnerability 211 00:20:38,980 --> 00:20:46,160 scanner, you don't have to care about finding some log in forms, building some HDDs. You 212 00:20:46,160 --> 00:20:53,040 can simply call that function. And I built a lot of functions for different purposes. 213 00:20:54,040 --> 00:20:59,180 For example, you know, the search function of a website, the log out function of a website. 214 00:21:00,080 --> 00:21:08,760 You can check if you're still logged in and all that stuff. So with that, it is really 215 00:21:09,360 --> 00:21:15,660 easy to penetration test internal parts of websites. 216 00:21:16,940 --> 00:21:23,740 And that's not given because it has been a problem for a long time. And I think a lot 217 00:21:23,740 --> 00:21:29,080 of zero day exploits for a lot of web applications are there and are still being released every 218 00:21:29,080 --> 00:21:38,940 day because it was difficult to scan them in an automated way. And that's really easy 219 00:21:38,940 --> 00:21:44,940 now. And, yeah, so that's actually the first demo 220 00:21:44,940 --> 00:21:45,640 that I wanted to show you. And I hope you enjoyed it. 221 00:21:45,660 --> 00:21:51,480 I'm going to show this whole log in process because it was kind of useful. And to actually 222 00:21:51,480 --> 00:21:56,840 prove that the scanner is able to log in and that it has a browser engine included, 223 00:21:57,120 --> 00:22:04,040 the scanner will make a screenshot as soon as it is logged in. And, yeah. So that's what 224 00:22:04,040 --> 00:22:15,640 I'm going to show. So I don't really have a name for the scanner. I could show you the 225 00:22:15,660 --> 00:22:22,580 code. I called it 360. Yeah, that's the current name. It will be released on JetHub today. 226 00:22:23,400 --> 00:22:35,660 So for example, let's use a website that is known for its complicated JavaScripting. 227 00:22:36,940 --> 00:22:44,920 Facebook. You could also use Twitter or whatever. But that's how the source code of the Facebook 228 00:22:44,920 --> 00:22:51,620 website looks like. As you can see, there's really a lot of nasty stuff in there. And 229 00:22:53,520 --> 00:22:58,940 you really need to be able to execute JavaScript to handle that website in an automated way. 230 00:22:59,640 --> 00:23:14,900 So I'll show the log in process. I created a test account. And I'm going to show you 231 00:23:14,920 --> 00:23:27,480 the code. That's the password. I kind of have to show it, but, yeah. So we scan Facebook.com. 232 00:23:27,700 --> 00:23:40,980 The user name is DEFCON20X. The password is here. And the scan started. That's some 233 00:23:40,980 --> 00:23:44,900 QT internal stuff. You know, the site gets actioned. So I'm going to show you the code. 234 00:23:44,920 --> 00:23:50,140 It's actually rendered. So there are some changes applied to the fonts. The more important 235 00:23:50,140 --> 00:24:05,400 thing is the log in seems to be finished. And a screenshot has been created. And as 236 00:24:05,400 --> 00:24:14,900 soon as I started my NGINX here, you can actually see it. Yep. So I'm going to show 237 00:24:14,920 --> 00:24:24,320 you the code. It looks like that. The log in failed. That's interesting, but not important 238 00:24:24,320 --> 00:24:24,840 for the demo. 239 00:24:32,720 --> 00:24:44,900 On which one? Because we have three fingerprints for log in. Do you know how many fingerprints 240 00:24:44,920 --> 00:24:47,960 there are? I don't know. So I'm going to show any web log in on the web that requires 241 00:24:48,350 --> 00:24:54,000 you to enter two passwords. Which password do you think is the best one? 242 00:24:54,240 --> 00:24:59,540 The first one? Yeah. That's actually what ‑‑ can I come back to that in a minute? I just 243 00:24:59,540 --> 00:25:06,000 want to show the successful log in. That is a great question, of course. So let me 244 00:25:06,000 --> 00:25:14,900 just show the log in. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. 245 00:25:23,220 --> 00:25:31,140 Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Let's 246 00:25:31,140 --> 00:25:31,420 go. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. I think 247 00:25:31,420 --> 00:25:44,900 I just forgot the Gmail part of the mail address. Here we go. So you have the NGINX 248 00:25:52,100 --> 00:26:13,800 Logging in. Ready. Okay. So we're logged in. But the actual reason why I said it was not 249 00:26:13,800 --> 00:26:21,160 but important that the login failed was because the scanner tried to log in by just and I'll 250 00:26:21,160 --> 00:26:27,680 prove that with the source code now. That's the source code of the example script. I simply 251 00:26:27,680 --> 00:26:34,120 get the browser object. Sorry for the noise. I simply get the browser object. I simply 252 00:26:34,120 --> 00:26:42,060 get the username and password from the command line and simply call that function. And I'll 253 00:26:42,060 --> 00:26:43,780 walk you through the different functions. 254 00:26:43,780 --> 00:26:50,220 Afterwards, if you want to, but there is no ‑‑ you know, there are no ‑‑ I did not 255 00:26:50,220 --> 00:26:55,480 prepare the scanner to log into Facebook. And I'm going to prove that afterwards. But 256 00:26:55,480 --> 00:27:02,180 to come back to your question, your question was there are two different forms on that 257 00:27:02,180 --> 00:27:13,660 Web site. And ‑‑ thanks. Yeah. The cool thing about Web forms is form is a ‑‑ 258 00:27:13,780 --> 00:27:28,740 it's a specific HTML tag. So you have, you know, a HTML form in a HTML document looks 259 00:27:28,740 --> 00:27:36,840 like that. Starts with a form tag and ends with a form tag. And in one form tag are specific 260 00:27:36,840 --> 00:27:43,760 input elements. And if you want to submit a log in form, you have to have a specific 261 00:27:43,780 --> 00:27:50,780 input. And you can ‑‑ you know, usually you only submit the input fields in one form 262 00:27:51,620 --> 00:28:00,780 tag. And in a log in form, there are specific ‑‑ there are specific data required. One the 263 00:28:00,780 --> 00:28:05,540 username. One the password. And in the registration form, which is another function of the scanner, 264 00:28:05,560 --> 00:28:13,460 by the way, .register to sign up, there are different elements required. And I showed 265 00:28:13,780 --> 00:28:25,140 those three different finger prints a couple of minutes ago. These ones. It's actually 266 00:28:25,140 --> 00:28:31,480 really easy to tell those different forms apart because it is a problem, of course. 267 00:28:31,860 --> 00:28:37,460 There are password fields in the registration form as well. But usually there are finger 268 00:28:37,460 --> 00:28:43,760 prints to detect that as well. And the easiest finger print is there are ‑‑ there are 269 00:28:43,760 --> 00:28:49,880 more than two visible text fields required to register on a website. For example, birth 270 00:28:49,880 --> 00:28:57,600 date or email address or, you know, that stuff. And the scanner simply finger prints 271 00:28:57,600 --> 00:29:04,840 the actual log in form on Facebook by, you know, just two input fields, one password, 272 00:29:05,020 --> 00:29:13,660 one username. Yeah. I can show some more demos for log in on Twitter, on Google Plus, 273 00:29:13,760 --> 00:29:23,240 on pics.devcon.org. I don't know if you want to see that. Doesn't seem so. Yeah? 274 00:29:23,560 --> 00:29:36,640 Yeah. Okay. So I don't have ‑‑ I don't have an account for pics.devcon.org, but 275 00:29:36,640 --> 00:29:43,740 we'll see if the log in would work. If you have a random account, you can see that the 276 00:29:43,760 --> 00:29:49,240 website in your mind that has a really complicated log in scheme, we can try that as well. So 277 00:29:49,240 --> 00:29:57,100 just as a proof that I did not, you know, prepare it. But, okay. The pics.devcon.org 278 00:29:57,100 --> 00:30:05,220 one is finished. Looks like that. Invalid log in. That's good news because, you know, 279 00:30:05,260 --> 00:30:13,740 the account is not valid. And the scanner at least tried to log in. Okay. So that's 280 00:30:13,760 --> 00:30:25,360 it. I'll try Twitter now. Or Google Plus. And as you know, Google is known for its really 281 00:30:25,360 --> 00:30:33,100 specific, really cool web kit hacks. So I don't want to be the guy who builds a web 282 00:30:33,100 --> 00:30:42,200 scanner based on HTTP and HTML parsing that has to, you know, parse Google JavaScript. 283 00:30:43,760 --> 00:30:58,540 So that one is finished as well. Seems to work. Good. Cool. So, yeah, but I'm going 284 00:30:58,540 --> 00:31:09,340 to talk about that later. So that was authentication. And the other demos that I wanted to show are 285 00:31:09,340 --> 00:31:21,120 are all about ‑‑ you know, I built a little PHP test app with very common vulnerabilities 286 00:31:22,500 --> 00:31:36,600 as a fast TGI beyond that Nginx set up. Looks like that. There's some JavaScript in that, 287 00:31:36,600 --> 00:31:45,180 for example, this link here redirects through two different kinds of redirections. One is 288 00:31:45,180 --> 00:31:51,200 HTTP header based. The other one comes with a delay of one second and is fired by JavaScript. 289 00:31:52,420 --> 00:32:03,560 And regular crawlers used to break with some sort of redirection of that kind because they 290 00:32:03,560 --> 00:32:06,460 are simply not supposed to handle it just by parsing HTML. 291 00:32:07,680 --> 00:32:27,900 Let me show that one as well quickly. For example, there is a S Q L I slash whatever 292 00:32:29,260 --> 00:32:36,400 here, but that's not the important part. We have tools to exploit XSS with a delay of 293 00:32:36,400 --> 00:32:43,640 of a couple of days. We have tools to exploit SQL injections and whatever. The important 294 00:32:43,930 --> 00:32:52,760 thing about this talk is the detection of the fuzzable elements of the website. And 295 00:32:52,760 --> 00:33:00,700 this fuzzable element, the phoo.php, is not easy to find for crawler. It's not that difficult 296 00:33:00,700 --> 00:33:08,280 but it's not that easy as well. And this is the source code. The link is simply blah.html. 297 00:33:08,860 --> 00:33:18,960 And as I said, it simply redirects to phoo.php with some weird JavaScript slash header stuff. 298 00:33:20,380 --> 00:33:27,920 And I'm not going to tell the scanner about the phoo.php but just about localhost. And 299 00:33:27,920 --> 00:33:28,920 we'll see if ‑‑ 300 00:33:28,920 --> 00:33:29,520 Okay. 301 00:33:30,360 --> 00:33:30,680 Okay. 302 00:33:30,700 --> 00:33:35,460 It is able to find the venerable file. 303 00:33:44,160 --> 00:33:53,520 Yeah. The problem with that stuff is the capture. It's not to detect the login field because 304 00:33:53,520 --> 00:33:59,600 the heuristic still succeeds. There's a username and a password. The difficulty is the capture. 305 00:33:59,600 --> 00:34:15,180 We have some capture solving approaches. I think one guy hacked the Google capture, the Google audio capture, a couple of weeks ago, which was pretty cool. But the problem about that is not about detecting the login form but about breaking the capture. 306 00:34:15,180 --> 00:34:20,260 capture. And I have an approach for that as well. I'm going to talk about that a little 307 00:34:20,260 --> 00:34:29,240 bit later. But, yeah, great question as well. By the way, the Google capture can be simply 308 00:34:29,240 --> 00:34:39,140 bypassed by ignoring it. I'm going to demonstrate that in a couple of seconds. So, yeah, the 309 00:34:39,140 --> 00:34:47,040 scanner found the, wait a second, phoo.php and, you know, posted some kind of a unique 310 00:34:47,040 --> 00:34:53,520 XSS string to, you know, detect a reflective XSS. Really boring. As I said, this talk is not 311 00:34:53,520 --> 00:35:00,600 about exploiting vulnerabilities. I could have written some more cool demos, you know, OS 312 00:35:01,380 --> 00:35:08,260 commanding vulnerability and pushed in a reverse shell there and exploit the kernel and I 313 00:35:08,260 --> 00:35:08,540 don't know. 314 00:35:09,140 --> 00:35:14,700 But this talk is really not about exploiting vulnerabilities but about getting to the point 315 00:35:14,700 --> 00:35:20,920 where you can exploit the vulnerability. Because it is really simple to exploit the kernel 316 00:35:20,920 --> 00:35:27,140 and then install a rootkit in there once you're in. But the difficult part is to break the 317 00:35:27,140 --> 00:35:33,900 defense and to build the heuristic and once that has succeeded and when you can start 318 00:35:33,900 --> 00:35:39,120 to fire your hundreds of thousands of people, you can actually do a lot of things. And 319 00:35:39,140 --> 00:35:45,440 these have HTTP requests in there to, you know, exploit the vulnerability. 99% of the work is done. 320 00:35:45,680 --> 00:35:53,460 Exploiting the vulnerability is really easy. Working through all that JavaScript stuff at sites 321 00:35:53,460 --> 00:36:02,360 like Facebook or like E-commerce systems, that's the really difficult part. So, yeah, that's 322 00:36:02,360 --> 00:36:08,700 why I chose a really stupid example. I have a better example as well, a local file inclusion and a 323 00:36:11,120 --> 00:36:20,400 some stuff. I can't show all of that. But as I said, this is about discovery. And, yeah, 324 00:36:20,560 --> 00:36:29,380 so if somebody knows a cool online scanner benchmarking site, I'll show some demos there 325 00:36:29,380 --> 00:36:41,780 as well. But, yeah. So that's how it works. Okay. Good. So back to the slides for now. 326 00:36:44,140 --> 00:36:49,240 This is going to be about software architecture and about breaking CAPTCHAs and about doing 327 00:36:49,240 --> 00:36:56,500 the ‑‑ yeah, telling registration forms apart from log‑in forms and why that works. 328 00:36:57,320 --> 00:36:58,040 And ‑‑ 329 00:36:58,040 --> 00:37:07,460 And so this is not going to be about high‑level stuff anymore. So I'm actually going to show 330 00:37:07,460 --> 00:37:13,440 a lot of code now. So if you don't want to see a lot of code, there are more high‑level 331 00:37:13,440 --> 00:37:26,540 talks like the connect talk, for example. Okay. So the ‑‑ actually, the architecture 332 00:37:26,540 --> 00:37:27,540 of web scanners ‑‑ 333 00:37:27,540 --> 00:37:28,020 Yeah. 334 00:37:28,020 --> 00:37:33,740 ‑‑ is actually always the same. It's all about a core element. As I said, 335 00:37:33,780 --> 00:37:41,220 mostly the HTTP library. And HTML parser. And there are a lot of plug‑ins. And the 336 00:37:41,220 --> 00:37:46,380 plug‑ins can be files. They can be stored in a database. Or they can be simply an array 337 00:37:46,380 --> 00:37:52,040 or a hash map. I don't know. And in those plug‑ins, I'll show mine, my plug‑ins, 338 00:37:53,760 --> 00:37:58,000 for example, the injector plug‑ins. You know, they describe local findings. They describe 339 00:37:58,000 --> 00:38:03,060 exclusion vulnerabilities. OS commanding stuff. File upload. SQL. The SQL plug‑in 340 00:38:03,060 --> 00:38:12,420 looks like that. There are some payloads, and some ways to modify those 341 00:38:12,420 --> 00:38:17,520 payloads, and different techniques to verify a vulnerability. 342 00:38:19,280 --> 00:38:24,180 And this plug‑in, as you can see, is really, really simple. That's simply a lot of arrays 343 00:38:24,180 --> 00:38:24,900 in it. That's it. 344 00:38:25,220 --> 00:38:25,840 And ‑‑ 345 00:38:26,720 --> 00:38:27,600 Great. Thank you. Thank you. Sorry about the interruption. Sorry about the interruption. 346 00:38:28,000 --> 00:38:34,200 probably cool to mention about the SQL plug‑in are the different payloads because they are 347 00:38:34,200 --> 00:38:41,200 not that usual. For example, I mean, we all know the single quote payload. If we start 348 00:38:41,200 --> 00:38:46,220 penetration testing the website, we throw some single quotes in there and look what 349 00:38:46,220 --> 00:38:52,640 happens. That's how it starts. But there are a lot more things you can do to actually 350 00:38:52,640 --> 00:39:01,900 fingerprint the architecture behind the website. For example, if the website wants you to enter 351 00:39:01,900 --> 00:39:11,080 an integer, you can throw a zero in there, and it it acts normal, you can throw a minus zero 352 00:39:11,080 --> 00:39:19,240 in there. And so you can throw negative integers in there, really large integers. You can 353 00:39:19,240 --> 00:39:22,620 throw 10 megabits of strings in there and look what happens, and that's the way I do it. 354 00:39:22,620 --> 00:39:29,000 And this is exactly what this SQL plug‑in does, not for just fuzzing and generating 355 00:39:29,000 --> 00:39:33,500 error messages, but to fingerprint the SQL server behind the website. 356 00:39:33,880 --> 00:39:38,320 Because I recognized that the SQL servers break in different ways. 357 00:39:38,960 --> 00:39:50,100 For example, if you throw a hex 255, backslash XFF in there, MySQL mostly says something 358 00:39:50,100 --> 00:39:59,620 like, yeah, that's not encodable by Unicode something foo, and this SQL statement fails. 359 00:40:00,020 --> 00:40:08,520 So if you throw a backslash XFF in a website and the website responds with nothing, you 360 00:40:08,520 --> 00:40:11,040 can be pretty sure that that's a MySQL server. 361 00:40:12,200 --> 00:40:18,540 And yeah, so I wrote the documentation for the payloads and the reasons for them and 362 00:40:18,540 --> 00:40:19,280 how to fingerprint them. 363 00:40:19,380 --> 00:40:20,080 But yeah. 364 00:40:20,080 --> 00:40:26,840 You know, it's really nice to see that there's a lot of fingerprinting work that can be done 365 00:40:26,840 --> 00:40:28,580 with different payloads. 366 00:40:29,180 --> 00:40:31,960 However, I was talking about the architecture of the scanner. 367 00:40:32,400 --> 00:40:34,660 And as I said, there's a core. 368 00:40:34,920 --> 00:40:40,180 There are different plug‑ins for injections, for different types of applications, WordPress, 369 00:40:40,440 --> 00:40:41,220 Drupal, I don't know. 370 00:40:45,520 --> 00:40:46,380 Wait a second. 371 00:40:47,680 --> 00:40:48,160 Yeah. 372 00:40:48,320 --> 00:40:49,140 There are some web shells. 373 00:40:49,140 --> 00:40:55,020 There are some web shells to prove the exploit in the end for different languages, Perl, 374 00:40:55,140 --> 00:40:56,120 Python, and so on. 375 00:40:58,560 --> 00:41:03,600 And more important probably is the core element of the scanner. 376 00:41:04,600 --> 00:41:07,400 And the browser object in it. 377 00:41:09,080 --> 00:41:13,160 Which is simply based on PySight. 378 00:41:13,600 --> 00:41:19,120 PySight is a really cool framework that ‑‑ how much time do I have? 379 00:41:19,560 --> 00:41:20,000 Yeah. 380 00:41:22,560 --> 00:41:28,040 PySight is a really cool framework to use QT libraries from Python. 381 00:41:28,660 --> 00:41:30,700 And they did a great job doing that. 382 00:41:30,920 --> 00:41:33,380 And there's actually an alternative for that. 383 00:41:33,580 --> 00:41:34,940 It's called PyQT4. 384 00:41:35,600 --> 00:41:37,460 But PySight is much more stable. 385 00:41:37,640 --> 00:41:40,240 But as you have seen a couple of minutes ago, not that stable. 386 00:41:40,460 --> 00:41:42,540 It's still a couple of times. 387 00:41:44,080 --> 00:41:44,920 I don't know why. 388 00:41:45,220 --> 00:41:48,060 I tried to s trace it and to core dump it. 389 00:41:48,220 --> 00:41:49,120 But it's ‑‑ yeah. 390 00:41:49,140 --> 00:41:56,700 Really some complicated stuff to make C++ and Python work together well on the web side. 391 00:41:57,740 --> 00:41:58,840 So yeah. 392 00:42:01,400 --> 00:42:06,140 So there has actually been done some work for that stuff before. 393 00:42:06,360 --> 00:42:08,180 It's called a project called Spinner. 394 00:42:08,440 --> 00:42:12,000 They used that PyQT4 framework. 395 00:42:12,520 --> 00:42:15,800 And they built a web browser in Python. 396 00:42:15,980 --> 00:42:18,340 And a stateful web browser. 397 00:42:18,340 --> 00:42:22,220 And they really tried to adopt a lot of these features. 398 00:42:22,440 --> 00:42:25,740 For example, the snapshot feature to create nice screenshots. 399 00:42:27,940 --> 00:42:30,400 And to use proxies and all that stuff. 400 00:42:30,780 --> 00:42:35,240 But the really important elements that they changed are the patches to WebKit itself. 401 00:42:36,300 --> 00:42:38,960 To the C++ code of QWebKit. 402 00:42:39,440 --> 00:42:46,940 So a really difficult element of web scanning is JavaScript. 403 00:42:47,340 --> 00:42:48,320 And not just to access. 404 00:42:48,320 --> 00:42:49,000 To execute the JavaScript. 405 00:42:49,100 --> 00:42:51,620 But there are events in JavaScript. 406 00:42:51,960 --> 00:42:55,280 For example, you know them from all kinds of apps. 407 00:42:55,540 --> 00:42:56,380 On mouse over. 408 00:42:56,880 --> 00:42:57,800 On key press. 409 00:42:58,100 --> 00:42:58,540 On focus. 410 00:42:59,240 --> 00:43:00,340 And I don't know. 411 00:43:00,580 --> 00:43:08,780 And if you want to crawl and spider all the possible locations of a web site, you have 412 00:43:08,780 --> 00:43:10,780 to execute all these events. 413 00:43:11,340 --> 00:43:14,280 And I tried to do that from Python. 414 00:43:14,600 --> 00:43:15,940 And I failed. 415 00:43:15,940 --> 00:43:25,460 So I patched WebKit and created a function in WebKit that would fire all these, you know, 416 00:43:25,540 --> 00:43:26,640 event listeners for me. 417 00:43:26,740 --> 00:43:37,440 Because I looked for a function that not just let me trigger an event listener on a web 418 00:43:37,440 --> 00:43:37,680 element. 419 00:43:37,820 --> 00:43:41,400 But list me all the event listeners that are listening on a web element. 420 00:43:41,580 --> 00:43:42,980 And I learned that there is none. 421 00:43:43,460 --> 00:43:44,100 I mean. 422 00:43:44,780 --> 00:43:45,920 There was a specific function. 423 00:43:45,940 --> 00:43:53,360 for it a year ago or so, but they never really implemented it. I think in Netscape 6 point 424 00:43:53,360 --> 00:44:02,460 something is a function for that. Yeah. So it's actually a really cool fact that we're 425 00:44:02,460 --> 00:44:08,200 not forced to use an original web browser engine in our scanner, but we can use our 426 00:44:08,200 --> 00:44:16,320 own one, and our JavaScript engine does not really have to do everything that the JavaScript 427 00:44:16,720 --> 00:44:24,000 of the, you know, the site that we are scanning wants us to do. It can also pull some callbacks 428 00:44:24,000 --> 00:44:27,880 in our scanner code. So it's really cool to have that kind of access. 429 00:44:31,480 --> 00:44:38,180 And another nice technical thing to mention is the fuzzable object. This is something 430 00:44:38,200 --> 00:44:46,240 that the W3F author, I mean, the idea is from the W3F, obviously, and I think it's a really 431 00:44:46,240 --> 00:44:54,700 cool idea. So what those guys did is they don't create URLs and forms in specific ways, but 432 00:44:54,700 --> 00:45:02,000 they create objects, and they fuzz those objects, and that's really more stable than just 433 00:45:02,000 --> 00:45:07,960 replacing different parts of strings, and, you know, it's really nice to have that. It's 434 00:45:07,960 --> 00:45:08,180 really nice. 435 00:45:08,200 --> 00:45:12,840 It's really nice to save fuzzable objects, because when your scanner found a vulnerability, 436 00:45:13,260 --> 00:45:18,000 you can simply save that fuzzable object at the state of the fuzzable object, and you 437 00:45:18,000 --> 00:45:24,080 have an exploit ready to use, ready to release. Because, you know, when you found a zero-day 438 00:45:24,080 --> 00:45:29,900 exploit in WordPress for OS commanding with that scanner, or a scanner based on that structure, 439 00:45:30,140 --> 00:45:37,320 you can simply dump the fuzzable object and release it somewhere, and it's going to be 440 00:45:37,320 --> 00:45:38,180 really easy for you to use. 441 00:45:38,180 --> 00:45:50,500 Okay. Fine. So I think there are some more slides left. This one is about further 442 00:45:50,500 --> 00:46:00,600 research and other improvements to the actual concept of not just building a TCP socket, 443 00:46:01,520 --> 00:46:07,800 throwing a HTTP request in there, getting a response and parsing the HTML, which obviously 444 00:46:07,800 --> 00:46:17,080 doesn't work in today's web anymore. But, you know, taking a browser engine and modifying 445 00:46:17,080 --> 00:46:23,040 it and actually starting to scan the web, not just fuzzing HTTP, because in the meantime, 446 00:46:23,300 --> 00:46:31,920 after the last ten years, we know HTTP well enough. And we don't need to do all that stuff 447 00:46:31,920 --> 00:46:37,780 just to fuzz HTTP. So, yeah. So the further research that I will do, I will be doing, I 448 00:46:37,800 --> 00:46:45,000 think, in the future. So, the first thing I will do, and that makes sense, is to improve 449 00:46:45,000 --> 00:46:51,740 the binding between browser engines like Gecko, WebKit, or I'm not sure if it makes sense 450 00:46:51,740 --> 00:46:57,660 to use the Internet Explorer, but if you want, if someone wants to use it, that makes sense 451 00:46:57,660 --> 00:47:07,780 as well. Maybe? Not? So the other thing is WebKit, of course, is a very, very powerful 452 00:47:07,800 --> 00:47:13,440 project. Maybe it makes sense to replace WebKit and that approach by Gecko, because 453 00:47:14,700 --> 00:47:20,780 actually Gecko or Firefox, I mean, Gecko is the run engine of Firefox, for those who 454 00:47:20,780 --> 00:47:26,420 are not that familiar with the web browser architecture stuff. And Firefox and Gecko 455 00:47:26,420 --> 00:47:36,880 are in the end the more high quality projects. Because for those of you who are into exploits 456 00:47:36,880 --> 00:47:44,780 and browser exploits and browser vulnerabilities, you know that there is a remarkable amount 457 00:47:44,780 --> 00:47:52,120 of WebKit exploits released in short periods of times. And I'm not sure when the last 458 00:47:52,120 --> 00:47:58,700 Gecko exploit was actually released or when the last Gecko vulnerability was reported, 459 00:47:58,880 --> 00:48:05,260 but, you know, there are not a lot of them out there. At least not public ones. So it's 460 00:48:05,260 --> 00:48:05,960 actually a good sign. 461 00:48:07,620 --> 00:48:15,960 Yeah. Another idea is are you guys familiar with the Wolfram alpha.com engine? Some of 462 00:48:15,960 --> 00:48:27,820 you? It's just a mathematical approach to analyze, to calculate the web. And I thought 463 00:48:27,820 --> 00:48:34,540 it may be a good approach to analyze and calculate error messages in the web. Because, 464 00:48:34,600 --> 00:48:36,860 for example, as we have seen, when a logger, when a logger, when a logger, when a logger, 465 00:48:36,860 --> 00:48:43,900 when a logger fails, or when the scanner's heuristic failed and may happen, I don't doubt 466 00:48:43,900 --> 00:48:53,620 that, and the Web site answers with something like, hey, you need to enter the verification 467 00:48:53,620 --> 00:49:00,140 password for your registration. And the scanner actually wants to trigger a web login. The 468 00:49:00,140 --> 00:49:05,340 scanner can parse that error message, extract the important words, and learn from the error 469 00:49:05,340 --> 00:49:13,180 message. So the next time you call the login function, the scanner will know not that it 470 00:49:13,180 --> 00:49:18,660 should not use that form, but the other form. Because, you know, the error message said that 471 00:49:18,660 --> 00:49:35,320 it was a register sign up form. Yeah. So the last and probably most weird thing that 472 00:49:35,340 --> 00:49:43,700 has to be fixed is the requirement to have a X server slash a frame buffer. I used 473 00:49:43,700 --> 00:49:52,420 XVFP. Yeah. There's a requirement to have such a project installed and to actually run the 474 00:49:52,420 --> 00:49:58,140 scanner that I'm going to release. Because, you know, WebKit actually wants to render the 475 00:49:58,140 --> 00:50:05,320 website. And even if we don't want to see it, except when we want to have a screenshot, we 476 00:50:05,340 --> 00:50:13,400 cannot. So a screenshot needs a X server frame buffer to draw the website. And I'm still not 477 00:50:13,400 --> 00:50:23,640 sure if it is necessary or not but it's not, you know, it's not a good thing to have. The need 478 00:50:23,640 --> 00:50:31,000 for a graphical environment on a command line base, it's just awkward. So, yeah. The content 479 00:50:31,000 --> 00:50:35,320 beyond this talk is going to be a framework for WebScan and the framework will be of the 480 00:50:35,340 --> 00:50:41,800 scanning. It has a browser engine included. It has, I don't know, 2,000 different plug-ins 481 00:50:41,800 --> 00:50:47,460 for different vulnerabilities and old WordPress exploits and, you know, Joomla and Drupal 482 00:50:47,460 --> 00:50:53,000 and all that stuff. There's going to be a mathematical engine to do some of the error 483 00:50:53,000 --> 00:50:58,260 message parsing. There's going to be a Google translate engine to translate every website 484 00:50:58,260 --> 00:51:06,100 to English. Even if the English is, you know, wrong and strange, it is still enough for the 485 00:51:06,100 --> 00:51:14,460 language parsing engine to analyze it. And, yeah, the WebKit patches are included as well. 486 00:51:14,800 --> 00:51:22,780 The second component is the scanner itself as a proof of concept. It's not as sophisticated 487 00:51:23,100 --> 00:51:27,720 as other scanners, but it's enough for a proof of concept. 488 00:51:27,720 --> 00:51:35,420 And I actually started to write a nasal script to include that into Nessus so that Nessus 489 00:51:36,420 --> 00:51:43,140 will be able to do some effective crawling in the future, more effective, because right 490 00:51:43,140 --> 00:51:57,140 now, as I said, it's just HTML. And, yeah, so, yeah, so that's basically it. Yeah. 491 00:51:57,720 --> 00:51:58,840 Thank you.