1 00:00:00,000 --> 00:00:05,940 Thank you. My name is David Byrne. I'm a security consultant with Trustwave. We're a security and compliance consulting firm. 2 00:00:06,240 --> 00:00:12,240 We also have a full offering of managed security services. I'm in the app pen testing group. I spend most of my days attacking websites, 3 00:00:12,560 --> 00:00:19,960 but our group also does other types of app pen tests. We do security code reviews and training for developers on secure coding techniques. 4 00:00:20,600 --> 00:00:23,980 Before Trustwave, I was the security architect at Dish Network, which is how I know Eric. 5 00:00:24,940 --> 00:00:30,800 Hi. My name is Eric Dupre. I am a member of the IT security team at Dish Network. 6 00:00:31,460 --> 00:00:35,980 A significant portion of my responsibilities at Dish Network involve web application security, 7 00:00:36,580 --> 00:00:39,220 including pen testing of internally developed applications. 8 00:00:40,220 --> 00:00:46,040 I'm also the co-chapter leader of the Denver chapter of the Open Web Application Security Project, or OWASP. 9 00:00:48,820 --> 00:00:53,500 All right. So I'm guessing most of you know that Grindle is an open source web application security scanner, 10 00:00:53,520 --> 00:00:53,960 which is why you're here. 11 00:00:55,320 --> 00:00:59,500 I've been writing it over the last year. Earlier this year, Eric joined and started helping with testing, 12 00:00:59,700 --> 00:01:05,880 porting it to other platforms, and made a really nice live boot CD that is the basis for our demonstration later in the presentation. 13 00:01:08,240 --> 00:01:10,520 Commercial app scanners have been available for quite a while. 14 00:01:10,640 --> 00:01:14,040 They're pretty well established in the market, brands that I'm sure most of you are familiar with. 15 00:01:14,320 --> 00:01:19,840 But the selection of open source automated tools has been a lot more limited, which was my main motivation in writing Grindle. 16 00:01:20,940 --> 00:01:22,700 There are several goals that I had from the beginning. 17 00:01:22,940 --> 00:01:23,960 I wanted to be more open source. 18 00:01:23,960 --> 00:01:29,880 I'm a multi-platform, so I wrote the tool in Java, which obviously is available on just about every platform that's out there. 19 00:01:30,300 --> 00:01:35,400 But I wanted to avoid this slow, clunky look and feel that you see with a lot of multi-platform GUIs. 20 00:01:35,680 --> 00:01:43,200 So I used the standard widget toolkit, which allows a single Java code base to make native GUI calls across multiple platforms. 21 00:01:43,520 --> 00:01:48,660 So for example, this is what Grindle looks like on Windows Vista, on an XP, on a Macintosh, 22 00:01:48,720 --> 00:01:50,520 and in a little bit you'll see what it looks like on Linux. 23 00:01:52,700 --> 00:01:53,740 It's kind of a pet peeve. 24 00:01:53,960 --> 00:02:00,540 I don't mind when I go to download a tool and then I have to download a secondary library and then maybe go to another website and download some other tool that it makes calls to. 25 00:02:00,900 --> 00:02:04,580 So I wanted to make sure that Grindle was very simple to install. 26 00:02:04,900 --> 00:02:10,300 It's just a single distribution or single download, no install required really. 27 00:02:10,420 --> 00:02:14,520 The only requirement is Java 5, which has been out for four years next month. 28 00:02:14,700 --> 00:02:16,520 I think it's safe to assume most of you have it. 29 00:02:16,640 --> 00:02:19,380 If for some bizarre reason you're still running Java 4, it's time to upgrade. 30 00:02:21,660 --> 00:02:23,680 I also wanted a tool that would be useful. 31 00:02:23,680 --> 00:02:32,800 It's useful to a wide audience, anyone ranging from an IT security manager who might have a high-level understanding of app security but really doesn't need to understand how to test for specific vulnerabilities, 32 00:02:33,180 --> 00:02:41,560 but then also something that was useful to someone like myself, a professional pen tester who's fully capable of performing manual tests but can benefit from some of the automation, 33 00:02:41,820 --> 00:02:51,380 especially areas regarding application mapping and information leakage, which can be very time-intensive to test for on a manual basis but still are very accurate to test for automated. 34 00:02:53,140 --> 00:02:53,660 Finally, I wanted to make sure that Grindle was safe to use. 35 00:02:53,680 --> 00:02:57,360 Finally, Grindle is a vulnerability discovery tool, not an exploitation framework. 36 00:02:58,080 --> 00:03:03,900 There are some tools already out there that do a good job at exploiting specific classes of web app vulnerabilities, 37 00:03:04,120 --> 00:03:06,880 but to write a generalized platform would be an enormous undertaking. 38 00:03:07,140 --> 00:03:08,460 That's just not what Grindle is. 39 00:03:10,100 --> 00:03:13,740 Before I talk much about the features of Grindle, I want to discuss quality a little bit. 40 00:03:14,440 --> 00:03:21,000 When I first started working on Grindle, my dream was that it would be so beautifully perfect in how it discovered vulnerabilities 41 00:03:21,000 --> 00:03:22,500 that instead of releasing it publicly, 42 00:03:22,500 --> 00:03:25,900 I was going to go out and get half a dozen jobs doing manual pen tests, 43 00:03:26,080 --> 00:03:30,040 but instead spend all day running automated scans and just raking in the money. 44 00:03:30,820 --> 00:03:32,620 Oddly, it really hasn't worked out that way yet. 45 00:03:32,880 --> 00:03:40,700 I still think that Grindle is a good tool, but it's not the same level of quality as what you'd see on a commercial scanner. 46 00:03:40,880 --> 00:03:42,020 There are several reasons for this. 47 00:03:42,800 --> 00:03:47,100 The commercial tools have been available for a number of years, they have large development staffs, 48 00:03:47,100 --> 00:03:51,260 and I would imagine that they usually have multi-million dollar research and development budgets. 49 00:03:51,880 --> 00:03:52,480 Grindle, of course, is a good tool. 50 00:03:52,480 --> 00:03:54,480 has none of these things. Despite that, 51 00:03:54,500 --> 00:03:56,400 I still think that it's a viable open source alternative, 52 00:03:56,940 --> 00:03:57,260 and 53 00:03:58,740 --> 00:04:00,400 this is something I really struggled with when I was 54 00:04:00,400 --> 00:04:02,520 first writing it, because I know 55 00:04:02,520 --> 00:04:04,420 that there are things, even in the current version, that I can 56 00:04:04,420 --> 00:04:06,340 improve on, and there are things that I want to add 57 00:04:06,340 --> 00:04:08,400 to it, and that will happen in time, but 58 00:04:08,400 --> 00:04:10,440 I came to the conclusion that eventually I needed to release 59 00:04:10,440 --> 00:04:12,320 it, because the only way it's going to continue to 60 00:04:12,320 --> 00:04:14,540 improve is if it gets exposure 61 00:04:14,540 --> 00:04:16,300 to a wide variety of websites, both 62 00:04:16,300 --> 00:04:18,420 secure and insecure. And the only 63 00:04:18,420 --> 00:04:20,000 way that's going to happen is if it's released publicly. 64 00:04:20,260 --> 00:04:22,360 And the same thing is true for commercial tools, too. The more 65 00:04:22,360 --> 00:04:24,200 they're used, the more exposure they get, the better 66 00:04:24,200 --> 00:04:24,980 the tool can become. 67 00:04:29,380 --> 00:04:29,820 So 68 00:04:32,340 --> 00:04:32,780 there's 69 00:04:32,780 --> 00:04:34,300 a number of ways that people can help with 70 00:04:34,300 --> 00:04:36,360 Grindle if you're interested. If someone wants to contribute 71 00:04:36,360 --> 00:04:38,340 code, that would be phenomenal. I'd be ecstatic, 72 00:04:38,460 --> 00:04:39,780 but realistically, I know that 73 00:04:40,240 --> 00:04:42,280 that's a pretty significant investment of time that most 74 00:04:42,280 --> 00:04:44,360 people can't make. Simply providing feedback 75 00:04:44,360 --> 00:04:46,080 on things like bugs, 76 00:04:46,240 --> 00:04:47,680 false positives, false negatives, 77 00:04:48,400 --> 00:04:50,140 ideas for new features is also 78 00:04:50,140 --> 00:04:51,040 greatly appreciated. 79 00:04:52,220 --> 00:04:53,260 Keep in mind that 80 00:04:53,260 --> 00:04:54,600 I don't get paid anything for writing Grindle, 81 00:04:54,660 --> 00:04:57,180 and I have a real job and a family 82 00:04:57,180 --> 00:04:59,300 that needs to take priority, so I can't always respond 83 00:04:59,300 --> 00:05:01,100 quickly to emails, but I'll certainly try 84 00:05:01,100 --> 00:05:03,160 whenever possible. Another 85 00:05:03,160 --> 00:05:04,960 thing is that if you're using Grindle to scan 86 00:05:04,960 --> 00:05:07,100 a commercial software package 87 00:05:07,100 --> 00:05:07,620 or 88 00:05:09,000 --> 00:05:11,020 to test an open source tool, pretty much 89 00:05:11,020 --> 00:05:12,880 any, if you're scanning any kind of application 90 00:05:12,880 --> 00:05:15,180 that's publicly available, and you find a vulnerability, 91 00:05:15,420 --> 00:05:17,140 let me know. I'm kind of interested in 92 00:05:17,140 --> 00:05:19,200 collecting vulnerabilities that 93 00:05:19,200 --> 00:05:20,440 have been discovered by the tool. 94 00:05:22,400 --> 00:05:23,120 One of the 95 00:05:23,120 --> 00:05:25,120 advantages of making Grindle open source is that 96 00:05:25,120 --> 00:05:27,120 there's a lot of libraries that become available 97 00:05:27,120 --> 00:05:29,000 that for a commercial product 98 00:05:29,000 --> 00:05:31,000 would have to be either written from scratch or 99 00:05:31,000 --> 00:05:32,220 purchased as some part of a toolkit. 100 00:05:32,780 --> 00:05:35,100 Just to mention a few by name that were 101 00:05:35,100 --> 00:05:37,120 particularly helpful, the Apache 102 00:05:37,120 --> 00:05:38,900 HTTP components library is, 103 00:05:38,940 --> 00:05:41,000 in my opinion, the best Java HTTP 104 00:05:41,000 --> 00:05:42,040 library out there. 105 00:05:42,960 --> 00:05:45,000 Lobo is an all-Java web browser. 106 00:05:45,720 --> 00:05:47,100 Grindle doesn't use Lobo, 107 00:05:47,100 --> 00:05:49,360 but a partner project 108 00:05:49,360 --> 00:05:50,740 called Cobra is an HTML 109 00:05:51,320 --> 00:05:52,960 parsing engine and document object 110 00:05:52,960 --> 00:05:53,740 model implementation. 111 00:05:54,960 --> 00:05:57,220 Grindle uses a heavily modified version of Cobra, 112 00:05:57,360 --> 00:05:59,000 which is useful for 113 00:05:59,000 --> 00:06:00,800 things like spidering, 114 00:06:00,920 --> 00:06:03,040 testing cross-site scripting, pretty much 115 00:06:03,040 --> 00:06:05,080 any time when there's a need to model 116 00:06:05,080 --> 00:06:06,960 real-world browser behavior. 117 00:06:08,260 --> 00:06:09,380 Along the same lines, 118 00:06:09,480 --> 00:06:11,020 Mozilla Rhino is the all-Java 119 00:06:11,020 --> 00:06:12,880 version of the Firefox JavaScript engine. 120 00:06:13,360 --> 00:06:15,100 Obviously that's used for testing cross-site 121 00:06:15,100 --> 00:06:16,860 scripting as well. And then Nikto, 122 00:06:17,100 --> 00:06:19,040 I'm guessing most of you are already familiar with 123 00:06:19,040 --> 00:06:20,960 Nikto. If you're not, it's a, 124 00:06:21,040 --> 00:06:22,340 a tool that's been around for a while. It's based 125 00:06:22,340 --> 00:06:24,480 on an even older tool called Whisker. And it's 126 00:06:24,480 --> 00:06:28,900 basically designed to identify known web vulnerabilities. So, for example, 127 00:06:29,040 --> 00:06:31,200 is the version of Apache out of date? Or are 128 00:06:31,200 --> 00:06:33,120 you running a version of Outlook Web Access 129 00:06:33,120 --> 00:06:35,020 that's known to be vulnerable to cross-site scripting? 130 00:06:35,260 --> 00:06:36,740 It's a collection of almost two and a half 131 00:06:36,740 --> 00:06:37,260 thousand tests. 132 00:06:39,460 --> 00:06:42,880 Now, Nikto itself is open source, but the database, 133 00:06:43,020 --> 00:06:45,000 even though it's plain text, the database of tests 134 00:06:45,000 --> 00:06:48,240 is not. However, the creator of Nikto, Sulo, did 135 00:06:48,240 --> 00:06:50,280 give permission for it to be used in Grindle. 136 00:06:51,040 --> 00:06:52,740 And there are some, actually some advantages to 137 00:06:52,740 --> 00:06:54,960 using Grindle to run Nikto tests. 138 00:06:55,400 --> 00:06:57,260 For those of you that use Nikto frequently, you'll 139 00:06:57,260 --> 00:06:58,680 know what I, I mean when I say that it's prone 140 00:06:58,680 --> 00:07:01,460 to false positives. That's almost always because a 141 00:07:01,460 --> 00:07:03,600 web server responds with something other than a 142 00:07:03,600 --> 00:07:06,540 404 message for a file not found condition. Could 143 00:07:06,540 --> 00:07:09,740 be with a 200 or a redirect. And Nikto tries 144 00:07:09,740 --> 00:07:12,320 to handle that, but it's not perfect. Grindle's not 145 00:07:12,320 --> 00:07:14,740 perfect either, obviously, but it's logical file not 146 00:07:14,740 --> 00:07:18,600 found tracking mechanisms are much more sophisticated, which 147 00:07:18,600 --> 00:07:20,960 significantly reduces the false positive rate. 148 00:07:24,100 --> 00:07:25,760 There's a lot of features of Grindle that we're 149 00:07:25,760 --> 00:07:27,720 not gonna have time to discuss today. And even 150 00:07:27,720 --> 00:07:29,340 if we did, it would be kind of boring. So 151 00:07:29,340 --> 00:07:31,180 I just want to hit on the, the main features 152 00:07:31,180 --> 00:07:34,540 that I, hopefully will whet your appetites and make 153 00:07:34,540 --> 00:07:36,280 you interested enough to go and download it, give 154 00:07:36,280 --> 00:07:37,680 you an idea of the type of things it can 155 00:07:37,680 --> 00:07:38,400 be capable of. 156 00:07:40,100 --> 00:07:43,060 In addition to the automated testing modules, which I'll 157 00:07:43,060 --> 00:07:44,980 be discussing in just a minute, there's an internal 158 00:07:44,980 --> 00:07:49,000 web proxies. And that serves two purposes. One is that 159 00:07:49,000 --> 00:07:51,020 it allows a user to guide the web for the client. 160 00:07:51,020 --> 00:07:56,540 and automated scan so that as the application is interacted with or as the website's being 161 00:07:56,540 --> 00:08:00,620 browsed, Grindle will discover new components and start scanning them for vulnerabilities. 162 00:08:01,060 --> 00:08:06,860 The second purpose is to act as an intercepting testing proxy, like a WebScarb or Burp or 163 00:08:06,860 --> 00:08:13,040 Paros. Eric will be demonstrating those features along with the request fuzzer, manual requests, 164 00:08:13,240 --> 00:08:15,980 and also talk a little bit more about the automatic file not found profiles. 165 00:08:17,580 --> 00:08:21,340 Upstream proxy servers are also supported. Authentication isn't supported yet due to 166 00:08:21,340 --> 00:08:23,900 a bug in HTTP components, but that'll be fixed in the next version. 167 00:08:26,180 --> 00:08:30,600 The number of HTTP requests or connections can be throttled via a few different settings. 168 00:08:30,860 --> 00:08:33,660 That's obviously pretty important whenever you're scanning a production environment, 169 00:08:34,520 --> 00:08:40,960 just to be sensitive to the needs of prod. Now, any kind of reasonably well-written 170 00:08:40,960 --> 00:08:45,800 application and well-provisioned environment should be able to easily handle anything that 171 00:08:45,800 --> 00:08:45,960 is sensitive to the needs of prod. 172 00:08:45,980 --> 00:08:51,060 There's no single version of, or single instance of Java or Grindle can throw at it, but speaking 173 00:08:51,060 --> 00:08:54,360 from experience, trust me when I say that if you're running a scan and anything happens 174 00:08:54,360 --> 00:08:59,020 on that web server, you're going to be blamed for it. So by throttling the number of requests 175 00:08:59,020 --> 00:09:02,860 and connections, hopefully you can divert blame to where it belongs, which is usually 176 00:09:02,860 --> 00:09:03,680 with the operation groups. 177 00:09:06,180 --> 00:09:11,760 HTML form-based authentication is supported, which allows for a few different things. One 178 00:09:11,760 --> 00:09:15,960 is that the spider can start exploring areas of an application that are not necessarily 179 00:09:15,960 --> 00:09:19,820 authentication that are only available via authentication. Also, there's a authentication 180 00:09:19,820 --> 00:09:24,300 enforcement test module, and in the next version there will be an authorization enforcement 181 00:09:24,300 --> 00:09:25,120 test module. 182 00:09:26,060 --> 00:09:30,000 There's a lot of ways that a automated scan can be tweaked and tuned in order to improve 183 00:09:30,000 --> 00:09:35,880 performance or the accuracy of the scan, and the, you don't really have to do that. 184 00:09:36,240 --> 00:09:41,900 If you want to just do, you know, a quick default scan, but the more familiar you are 185 00:09:41,900 --> 00:09:45,720 with the targeted application and the more you're familiar you are with Grindle and with 186 00:09:45,720 --> 00:09:49,480 web application security in general, the more you're accurate and the better results 187 00:09:49,480 --> 00:09:52,120 you're going to get. And that's true of any tool. It's just, you know, the more knowledge 188 00:09:52,120 --> 00:09:53,560 you have, the better you're going to be able to use it. 189 00:09:54,200 --> 00:09:59,300 So a few examples of some of the settings include the ability to block specific query 190 00:09:59,300 --> 00:10:03,580 parameters for any kind of testing. You can also mark a specific query parameter for, 191 00:10:04,040 --> 00:10:09,440 as being irrelevant from a spidering point of view. You can create URL whitelists and 192 00:10:09,440 --> 00:10:13,920 blacklists based on regular expressions, which helps prevent the scan from leaking out into 193 00:10:13,920 --> 00:10:15,700 other websites or into, you know, web sites. So you can do that. You can do that. You can 194 00:10:15,700 --> 00:10:18,120 do parts of an application that should be off limits. 195 00:10:18,640 --> 00:10:25,200 And you can also create, or excuse me, identify known session ID names, which obviously helps 196 00:10:25,200 --> 00:10:30,100 with the session management testing. So again, this isn't a complete list of all the test 197 00:10:30,100 --> 00:10:33,220 modules that Grindle has, but it's just kind of the highlights, things that I think will, 198 00:10:33,280 --> 00:10:38,360 are a little more interesting. There are several spidering modules. The HTML tag requester 199 00:10:38,360 --> 00:10:44,520 is traditional spider, basically. It will look for tags with a source or href attribute value. 200 00:10:45,700 --> 00:10:51,740 Tags are tested, can be, is configurable by the user. And then the URL that it points 201 00:10:51,740 --> 00:10:52,360 at is requested. 202 00:10:52,720 --> 00:10:58,440 Now, there's a certain amount of risk associated with this. The RFC 2616, if you want to look 203 00:10:58,440 --> 00:11:03,180 it up, explicitly states that a get method, which is what's used to request source or 204 00:11:03,180 --> 00:11:07,620 href attributes, should only be used to request data. It should never modify data back on 205 00:11:07,620 --> 00:11:14,880 the server. Despite that, it's not uncommon to find web apps that will use a get to modify 206 00:11:15,700 --> 00:11:19,320 data. Google found this out the hard way when they released their desktop caching engine 207 00:11:19,320 --> 00:11:24,520 a few years ago. And fairly quickly, they started receiving complaints because the prefetching 208 00:11:24,520 --> 00:11:29,180 logic of the caching engine was going out and requesting URLs of applications that users 209 00:11:29,180 --> 00:11:32,740 were logged into, and it was modifying data, or, you know, in some cases, even deleting 210 00:11:32,740 --> 00:11:34,260 data on those apps. 211 00:11:35,760 --> 00:11:41,140 Last year, I was speaking with a, someone that works on one of the, the best known 212 00:11:41,140 --> 00:11:45,580 commercial app scanning tools, and I asked him how they handled this. And at the time, 213 00:11:45,700 --> 00:11:48,860 I didn't really mention that I was working on an open source scanner, which I feel a 214 00:11:48,860 --> 00:11:52,500 little bad about now, but it's the type of information that I'm pretty sure they would 215 00:11:52,500 --> 00:11:56,880 openly give to any potential customer. His answer was basically a very polite too bad. 216 00:11:57,120 --> 00:12:02,140 And I agree with him. He had several points. One was that it's impossible to anticipate 217 00:12:02,140 --> 00:12:06,560 every kind of bad application design for an automated tool. There's just too many ways 218 00:12:06,560 --> 00:12:12,320 that you can screw something up. And if you're scanning a application that's really fragile 219 00:12:12,320 --> 00:12:15,600 and poorly designed, there's no way that you should be doing it in a production environment. 220 00:12:15,700 --> 00:12:19,140 And if you're doing it in tests, then you should be able to recover fairly easily from 221 00:12:19,140 --> 00:12:20,220 any kind of problem like this. 222 00:12:21,720 --> 00:12:26,340 And if, if you come across something like this after an automated scan, then you're 223 00:12:26,340 --> 00:12:29,180 gonna know the application is poorly designed. We need to go back and change this. 224 00:12:29,900 --> 00:12:34,340 Something that he didn't mention is that, at least in my opinion, a developer who's 225 00:12:34,340 --> 00:12:38,640 gonna make this kind of mistake using a get to modify data is extremely unlikely to protect 226 00:12:38,640 --> 00:12:42,440 the same query against cross-site request forgery, which is a much, much bigger issue 227 00:12:42,440 --> 00:12:45,680 than simply modifying some data on a, on a, on a, on a, on a, on a, on a, on a, on a, on 228 00:12:45,680 --> 00:12:47,300 a web server via automated scan. 229 00:12:48,500 --> 00:12:53,680 So there's a couple ways that this can be avoided. One is that you can use a URL blacklist 230 00:12:53,680 --> 00:12:59,280 to prevent the scan from visiting parts of a, of a website that are, that are problematic. 231 00:12:59,540 --> 00:13:04,040 But that requires a fairly in-depth knowledge of the application and can be time consuming. 232 00:13:04,340 --> 00:13:08,400 A better option is just to ditch the spider completely and use the internal proxy server 233 00:13:08,400 --> 00:13:11,680 to guide the scan, so that when you get to a page that says something like, click here 234 00:13:11,680 --> 00:13:15,660 to delete the database, don't click there. And Grindle's only going to test areas, you 235 00:13:15,680 --> 00:13:18,040 know, areas of the application that you're actively requesting. It's not going to go 236 00:13:18,040 --> 00:13:22,900 out and, and start testing just URLs that are, are only in an HTML response, unless you enable 237 00:13:22,900 --> 00:13:23,240 the spider. 238 00:13:24,520 --> 00:13:28,760 The form baseline module will basically try to guess at how an HTML form should be filled 239 00:13:28,760 --> 00:13:32,660 out and then submit it to the server. There's actually even more risk associated with this 240 00:13:32,660 --> 00:13:38,340 one because a form can generate a post message. And posts can legitimately modify data on 241 00:13:38,340 --> 00:13:42,900 a server. However, the module allows you to select which methods are used, and so, 242 00:13:43,000 --> 00:13:45,000 you know, if you want to play it safe, just don't enable post. 243 00:13:46,380 --> 00:13:51,000 Search Engine Recon can be pretty useful. It's not uncommon when I'm performing a pen 244 00:13:51,000 --> 00:13:55,740 test to, an, an authenticated pen test, to come up against a website where I'm basically 245 00:13:55,740 --> 00:13:59,620 just seeing the login page and maybe some help pages or something like that. Very, basically 246 00:13:59,620 --> 00:14:00,700 very little to, to test. 247 00:14:01,200 --> 00:14:06,100 But when I go to a search engine, I find that some other website has linked to content 248 00:14:06,100 --> 00:14:10,380 on the site that I'm testing. A search engine has picked that up and then indexed it, which, 249 00:14:10,500 --> 00:14:12,800 you know, obviously allows it to be tested. 250 00:14:13,620 --> 00:14:14,980 This search, test module, I'm going to go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and 251 00:14:14,980 --> 00:14:44,960 go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead and go ahead 252 00:14:44,960 --> 00:14:46,840 enable it if you know you have time to wait. 253 00:14:48,460 --> 00:14:52,460 So the lesson is don't just randomly start clicking on things. Make sure you understand 254 00:14:52,460 --> 00:14:55,660 what the impact is of the modules that you're running. 255 00:14:56,500 --> 00:14:59,860 Usually I'll only enable something in our file enumeration if I'm having a lot of problems 256 00:14:59,860 --> 00:15:04,560 finding content on a website, or if maybe I have a lot of time left on an engagement 257 00:15:04,560 --> 00:15:09,080 and I want to go back and just double check that there's nothing hidden or unusual that 258 00:15:09,080 --> 00:15:09,620 I could have found. 259 00:15:11,720 --> 00:15:15,360 There's a number of session management test modules. One of them will test the session 260 00:15:15,360 --> 00:15:21,060 ID strength, so it will look for repeated session ID values coming back from the server 261 00:15:21,060 --> 00:15:27,000 either in the cookie value or in a query parameter value. It will also check the level of entropy 262 00:15:27,000 --> 00:15:31,280 or randomness between values that come from the server and obviously report on it if there's 263 00:15:31,280 --> 00:15:32,060 an insufficient amount. 264 00:15:32,980 --> 00:15:36,960 Session IDs should never be stored in a URL for a number of reasons, so there's a module 265 00:15:36,960 --> 00:15:38,760 that will test for that and report it. 266 00:15:39,800 --> 00:15:45,360 Session fixation is a vulnerability that allows an attacker to trick a user into using 267 00:15:45,360 --> 00:15:49,320 a session ID that's known to the attacker. There's a number of ways this can happen. 268 00:15:49,540 --> 00:15:51,420 There's a module that will test for the common ones. 269 00:15:52,720 --> 00:15:56,840 The authentication enforcement module I mentioned briefly earlier, it's marked as experimental 270 00:15:56,840 --> 00:16:00,020 because it's not as accurate as I would like to see it. 271 00:16:00,540 --> 00:16:05,940 Basically it will look for transactions that are sent, requests that are sent authenticated, 272 00:16:06,060 --> 00:16:07,780 and that... 273 00:16:07,780 --> 00:16:08,740 A similar request will be sent to the server. 274 00:16:08,740 --> 00:16:09,800 The request was never sent unauthenticated. 275 00:16:11,400 --> 00:16:15,800 The session IDs are stripped out either from the cookies or from a query parameter, and 276 00:16:15,800 --> 00:16:16,560 the request is resent. 277 00:16:17,000 --> 00:16:20,840 And if the two responses appear to be the same, then it's assumed that authentication 278 00:16:20,840 --> 00:16:22,020 bypass is possible. 279 00:16:22,180 --> 00:16:26,060 Now, that's not always a problem. It could be just a cascading style sheet or something 280 00:16:26,060 --> 00:16:30,640 like that, but it's, you know, there's always a possibility that sensitive information is 281 00:16:30,640 --> 00:16:34,400 leaked even in obscure formats, so it's something that needs to be manually checked in order 282 00:16:34,400 --> 00:16:38,440 to confirm whether it's important or not. 283 00:16:39,780 --> 00:16:44,920 There are two cross-site scripting modules. One of them is for testing query parameters, 284 00:16:45,080 --> 00:16:48,720 which is where you usually see cross-site scripting. Another is for testing file names. 285 00:16:53,200 --> 00:16:59,000 Some web platforms, WebLogic in particular had a problem with this for a while, will 286 00:16:59,000 --> 00:17:03,620 repeat the file name verbatim inside of a file not found message, and if the file name 287 00:17:03,620 --> 00:17:06,140 contains JavaScript, then it's executed by the browser. 288 00:17:07,120 --> 00:17:08,420 Both of the modules use the same code, but in a different way. Both of the modules use 289 00:17:08,440 --> 00:17:11,280 essentially the same technique for testing cross-site scripting. 290 00:17:12,800 --> 00:17:17,960 The, it will see the input mechanism, whether it's a file name or a input parameter, with 291 00:17:17,960 --> 00:17:22,320 a random token. And if the token is observed in the response from the server, then the 292 00:17:22,320 --> 00:17:29,500 context is identified. It could be an HTTP header value. It could be an HTML tag attribute 293 00:17:29,500 --> 00:17:33,780 value or tag attribute name. It could be inside of an HTML comment block. There's over 294 00:17:33,780 --> 00:17:35,740 a dozen different contexts in all that can be identified. 295 00:17:35,980 --> 00:17:38,420 Now, technically, this isn't part of the cross-site scripting module. It's just a 296 00:17:38,420 --> 00:17:43,800 tool. It's underlying functionality. Once a context is, an output context is identified, 297 00:17:43,880 --> 00:17:47,940 it's tagged as an input-output flow. That can be tested for a number of different modules. 298 00:17:48,260 --> 00:17:49,900 For example, carriage return line feed injection. 299 00:17:51,460 --> 00:17:56,020 By knowing what the output context is, the cross-site scripting module knows how to escape 300 00:17:56,020 --> 00:18:01,040 from it. So, for example, if it's in a text area block, it knows that before, that any 301 00:18:01,040 --> 00:18:04,500 attacks need to be preceded by a closed text area tag. 302 00:18:06,120 --> 00:18:08,400 There are a number of formats that a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, 303 00:18:08,400 --> 00:18:10,380 a, all of that is sent. Oh, sorry. Backing up real quick. Before an actual 304 00:18:10,380 --> 00:18:14,760 attack is sent, that a series of requests containing characters that are commonly used 305 00:18:14,760 --> 00:18:18,900 in cross-site scripting attacks but may, that may be filtered are sent. So for example, 306 00:18:18,960 --> 00:18:23,000 greater than, less than, semi, single-quote, double-quote and so on. 307 00:18:23,240 --> 00:18:27,220 Any attacks that contain filtered characters are obviously not sent, which significantly 308 00:18:27,220 --> 00:18:32,780 improves the testing efficiency. There are a number of formats that attacks 309 00:18:32,780 --> 00:18:33,640 can be sent in. 310 00:18:33,880 --> 00:18:38,280 Basically there's just ways to try and evade cross-site scripting filters. It could 311 00:18:38,400 --> 00:18:43,460 be unusual ways of inserting executable content into a document. It could be different encoding 312 00:18:43,460 --> 00:18:49,380 formats that might bypass the filters. When a response is received, the HTML is parsed 313 00:18:49,380 --> 00:18:54,660 into the document object model, and every piece of executable content is run. So, for 314 00:18:54,660 --> 00:18:59,400 example, event handlers, on click, on load, on error, are all executed. Script blocks 315 00:18:59,400 --> 00:18:59,960 are executed. 316 00:19:01,880 --> 00:19:06,200 Some simple, and I would say rather naive, cross-site scripting filters will look for 317 00:19:06,200 --> 00:19:12,360 specific text strings, such as methods or functions like alert, or maybe document.cookie, 318 00:19:12,900 --> 00:19:17,080 to filter on. Now, that's a really bad way of protecting you against cross-site scripting. 319 00:19:17,340 --> 00:19:21,820 An experienced penetration tester is going to be able to quickly recognize that it was, 320 00:19:21,920 --> 00:19:26,940 the attack failed simply because of a rather simple filter. It's a little more difficult 321 00:19:26,940 --> 00:19:33,900 for an automated tool, so Grindle uses a fake method called testXSS, which is an extension 322 00:19:33,900 --> 00:19:35,820 to the document object model that it uses. 323 00:19:35,820 --> 00:19:41,120 Whenever testXSS is called, the test modules know that the cross-site scripting attack 324 00:19:41,120 --> 00:19:48,740 was successful. There's a similar mechanism that's used for intercepting external script 325 00:19:48,740 --> 00:19:53,540 file references using a script tag and a source attribute. So using that technique, 326 00:19:53,560 --> 00:19:57,360 as opposed to something like regular expressions, can significantly improve the accuracy of it, 327 00:19:57,420 --> 00:20:02,460 because it's, since it's acting as a browser, it's very low possibility for false positives. 328 00:20:04,540 --> 00:20:08,880 There are two SQL injection modules. One of them is error-based, the simplest way of 329 00:20:08,880 --> 00:20:13,320 testing for SQL injection. Throw a single quote onto the end of an input parameter and 330 00:20:13,320 --> 00:20:17,740 look for an error message in the response. It doesn't necessarily, it doesn't always 331 00:20:17,740 --> 00:20:22,240 mean that there is SQL injection possible, but nine times out of 10, there will be. And 332 00:20:22,240 --> 00:20:25,700 at the very least, there's some sort of information leakage from the error message. 333 00:20:26,420 --> 00:20:32,440 Grindle has a collection of regular expressions that match patterns of, of, of, of, of, of, 334 00:20:32,460 --> 00:20:38,240 Error messages from all the common databases, even DB2 and Access are in there, and also 335 00:20:38,240 --> 00:20:40,360 database drivers like JDBC or OLEDB. 336 00:20:42,020 --> 00:20:48,340 The SQL tautologies module is marked as experimental, again, because the accuracy isn't quite what 337 00:20:48,340 --> 00:20:49,040 I would like it to be. 338 00:20:49,640 --> 00:20:53,480 Testing for SQL injection using tautologies is well beyond the scope of this presentation. 339 00:20:53,900 --> 00:20:57,940 But basically, from an automated point of view, you have to answer the question, does 340 00:20:57,940 --> 00:21:00,700 response A look more like response B or response C? 341 00:21:01,840 --> 00:21:03,620 Something that's very easy for a human to do. 342 00:21:03,920 --> 00:21:06,040 Humans are going to be able to read the text and understand it. 343 00:21:06,420 --> 00:21:11,180 A human will be able to pick up on subtle visual cues that would be difficult for a 344 00:21:11,180 --> 00:21:12,040 program to identify. 345 00:21:14,020 --> 00:21:17,840 So there are some techniques that I'm working on that will significantly improve this in 346 00:21:17,840 --> 00:21:20,400 terms of being able to score the difference between two different responses. 347 00:21:20,660 --> 00:21:24,020 And I'm optimistic that by the next release of Grindelist, we'll be out of the experimental 348 00:21:24,020 --> 00:21:24,300 phase. 349 00:21:24,580 --> 00:21:25,680 And it still works. 350 00:21:25,720 --> 00:21:28,420 Just because it's marked as experimental doesn't mean that it's broken. 351 00:21:28,520 --> 00:21:30,660 It just means that I know there are... 352 00:21:30,660 --> 00:21:34,620 There are significant changes that will be made, or at least important changes made in 353 00:21:34,620 --> 00:21:35,100 the next version. 354 00:21:36,040 --> 00:21:38,140 A number of miscellaneous text. 355 00:21:38,600 --> 00:21:42,300 Carriage return line feed injection is very similar to cross-site scripting, except that 356 00:21:42,300 --> 00:21:46,820 instead of injecting into the HTML body, you're injecting into the HTTP response headers. 357 00:21:48,380 --> 00:21:53,220 Cross-site request forgery is pretty difficult to test for on an automated basis, mostly 358 00:21:53,220 --> 00:21:54,580 because it usually doesn't matter. 359 00:21:54,820 --> 00:21:58,700 For example, the Google search engine is vulnerable to cross-site request forgery, but nobody 360 00:21:58,700 --> 00:22:00,540 cares, except from a forensics point of view. 361 00:22:00,540 --> 00:22:04,540 There are a few things that I'm going to be tweaking on this module to make it more 362 00:22:04,540 --> 00:22:04,860 accurate. 363 00:22:04,980 --> 00:22:10,580 But in the end, it's going to require manual investigation to determine, is this form 364 00:22:10,580 --> 00:22:15,080 truly important enough to need protection from cross-site request forgery? 365 00:22:16,640 --> 00:22:21,520 The directory traversal module is very similar in its approach to identifying vulnerabilities 366 00:22:21,520 --> 00:22:23,040 as the SQL tautology module. 367 00:22:23,340 --> 00:22:26,580 And so I expect that both of them will leave the experimental status about the same time. 368 00:22:27,680 --> 00:22:29,380 Generic fuzzing module can be pretty useful. 369 00:22:29,380 --> 00:22:33,640 It takes a while to run, but it's not like you have to sit there and watch it the whole 370 00:22:33,640 --> 00:22:33,860 time. 371 00:22:34,440 --> 00:22:40,920 It takes a set of predefined strings that either could be default or user defined, 372 00:22:41,180 --> 00:22:46,260 and appends them to the end of every input parameter that's observed by the scan. 373 00:22:47,320 --> 00:22:51,560 The response is checked to see if it's a 500 response code, which indicates there was 374 00:22:51,560 --> 00:22:52,600 some kind of problem on the server. 375 00:22:52,820 --> 00:22:55,540 In this context, it usually means that there was a problem with input validation. 376 00:22:56,100 --> 00:22:58,780 It also checks the response for platform error messages. 377 00:22:58,780 --> 00:23:03,480 That includes the database error message patterns that I mentioned earlier. 378 00:23:03,760 --> 00:23:08,520 But also Grendel has a collection of patterns that match common web platforms like .NETs, 379 00:23:08,520 --> 00:23:10,760 PHP, ColdFusion, and so on. 380 00:23:13,040 --> 00:23:16,080 The platform, there's a number of information leakage modules. 381 00:23:16,280 --> 00:23:19,360 Just a few of them include the platform error messages module. 382 00:23:20,480 --> 00:23:27,480 Basically uses the same collection of patterns that I just mentioned, and, except it passively 383 00:23:27,480 --> 00:23:28,760 applies them to each error message. 384 00:23:28,760 --> 00:23:35,300 transaction. The advantage is that when you're able to identify an error message state like this, 385 00:23:35,360 --> 00:23:40,400 sometimes it can reveal a vulnerability, but at the very least it will help to identify the 386 00:23:40,400 --> 00:23:45,020 inner functionings of a certain part of the application. And sometimes those error messages 387 00:23:45,020 --> 00:23:51,100 can be inside of HTML comments, which obviously is very time-consuming to look at every single 388 00:23:52,800 --> 00:24:00,640 comment on a manual basis. The robots.txt module is, well, robots.txt is intended to guide a search 389 00:24:00,640 --> 00:24:06,100 engine as to where content should and should not be indexed. Some people mistakenly use it as a 390 00:24:06,100 --> 00:24:11,220 security control to try and hide areas of a website, say like an admin interface. It's a bad 391 00:24:11,220 --> 00:24:15,760 idea, though, because it actually reveals the existence of that interface. The comment lister 392 00:24:15,760 --> 00:24:20,000 just lists out the HTML and JavaScript comments that are identified. Every once in a while you 393 00:24:20,000 --> 00:24:21,020 find something useful in them. 394 00:24:21,100 --> 00:24:26,480 For example, once I found some database credentials that had been put in there during the development 395 00:24:26,480 --> 00:24:32,260 phase but never removed when it went to prod. A couple of web server configuration tests. 396 00:24:32,620 --> 00:24:37,860 Cross-site tracing is possible when the trace or track methods are enabled, which they usually are 397 00:24:37,860 --> 00:24:43,980 by default. Proxy detection. Sometimes a web server can be misconfigured to act as a proxy server, 398 00:24:44,100 --> 00:24:50,180 especially with mod proxy on Apache. And if that is present in a perimeter environment, it can be 399 00:24:50,180 --> 00:24:51,080 particularly dangerous. 400 00:24:58,980 --> 00:25:04,380 There's a number of application mapping functionality. And again, this is mostly useful for a penetration 401 00:25:04,380 --> 00:25:11,120 tester, sort of as an automated form of reconnaissance. I already mentioned input-output flows regarding 402 00:25:11,120 --> 00:25:15,540 testing for cross-site scripting. There's a module that will list every input-output 403 00:25:15,540 --> 00:25:20,720 flow that's detected, regardless of whether a vulnerability is associated with it. And that allows an 404 00:25:20,720 --> 00:25:25,680 tester to go back and manually check each of those flows for vulnerabilities like cross-site 405 00:25:25,680 --> 00:25:30,120 scripting or carriage return line feed injection. There's a module that will make an offline 406 00:25:30,740 --> 00:25:35,980 website mirror, which is useful for manual investigation. And I already mentioned NICTO. 407 00:25:36,600 --> 00:25:41,380 So with that, Eric's going to give a demonstration of the tool. 408 00:25:51,440 --> 00:25:53,360 Eric Boehmer, Digital Services Manager at NICTO, is the head of CCT's 409 00:25:53,360 --> 00:26:02,600 So first a few notes about the demonstration environment. It's a Slack 6 based live CD, and the server target for 410 00:26:02,600 --> 00:26:11,360 our scans is a typical LAMP stack, Linux, Apache, MySQL, PHP. On top of that is running an older version of the Zen Cart open source 411 00:26:11,380 --> 00:26:18,880 source shopping cart application circa February 2004. There's a couple reasons we chose this 412 00:26:18,880 --> 00:26:24,420 particular application. One is that it contains a wide variety of known security vulnerabilities. 413 00:26:25,000 --> 00:26:31,400 And secondly, because while we considered using a design vulnerable application, like 414 00:26:31,400 --> 00:26:35,860 I personally think that the Foundstone Hack Me series is really great, we specifically 415 00:26:35,860 --> 00:26:41,500 chose instead to use a real world application. And Zen Cart is very commonly deployed on the 416 00:26:41,500 --> 00:26:47,280 internet, was back then, and is still today. So the client that we're going to be using 417 00:26:47,280 --> 00:26:53,160 to test the intercepting proxy, or to demonstrate it, is the Mozilla Firefox Web Browser 3.0. 418 00:26:54,420 --> 00:27:02,000 So let me go ahead and flip to my virtual machine. This is GrendelScan. And while we 419 00:27:02,000 --> 00:27:05,520 don't have any, in the interest of time, we're not going to go through a fully automated 420 00:27:05,520 --> 00:27:05,840 scan. 421 00:27:05,860 --> 00:27:11,800 I wanted to point out that it's very easy to do one. All that's necessary is to enter 422 00:27:11,800 --> 00:27:17,800 your base URL here, add it, and then go into the test module selection tab. There are some 423 00:27:17,800 --> 00:27:22,200 default tests enabled, but you can change them to whichever test you want to run, and 424 00:27:22,200 --> 00:27:26,480 you must enable at least one spider if you want to do a fully automated scan. And then 425 00:27:26,480 --> 00:27:27,520 just start the scan. 426 00:27:29,140 --> 00:27:35,020 So easy enough, but in my case I'm going to demonstrate the intercepting proxy and performing 427 00:27:35,020 --> 00:27:35,840 a guided scan. 428 00:27:35,840 --> 00:27:39,160 So I'm going to open up some settings that I previously configured. 429 00:27:46,240 --> 00:27:53,840 And first thing to note is that it's configured to bind to local host on TCP port 8008. I've 430 00:27:53,840 --> 00:27:55,400 configured my web browser for the same. 431 00:27:56,720 --> 00:28:04,400 In the test module configuration, I'm going to go ahead and configure SQL injection, error-based 432 00:28:05,840 --> 00:28:09,160 as well as the cross-site tracing module. 433 00:28:10,460 --> 00:28:12,280 And then I'm going to go ahead and start the scan. 434 00:28:14,020 --> 00:28:14,660 And yeah. 435 00:28:19,600 --> 00:28:21,340 So in the scan status window, 436 00:28:21,440 --> 00:28:22,660 the first thing you'll note is that 437 00:28:23,260 --> 00:28:26,040 it's performing some tests for logical 404 responses. 438 00:28:26,600 --> 00:28:29,040 And what this means is that Grendel is creating 439 00:28:29,040 --> 00:28:30,540 a number of requests to the server 440 00:28:30,540 --> 00:28:32,700 using randomly generated file names, 441 00:28:32,700 --> 00:28:36,360 and then a variety of platform-specific file extensions. 442 00:28:36,700 --> 00:28:38,340 And the reason it's doing this is to 443 00:28:38,860 --> 00:28:41,500 create known file-not-found conditions 444 00:28:41,500 --> 00:28:42,600 in each one of those platforms. 445 00:28:43,260 --> 00:28:45,300 And based on how the server responds 446 00:28:45,300 --> 00:28:46,940 to the file-not-found condition, 447 00:28:47,100 --> 00:28:50,160 whether the HTTP status code is 404 or something else, 448 00:28:50,440 --> 00:28:52,380 we'll use that to determine how we judge 449 00:28:52,380 --> 00:28:54,560 the other responses coming back from the server in the future. 450 00:28:56,740 --> 00:28:59,060 So what it's saying here is that the scan queues are empty, 451 00:28:59,220 --> 00:29:01,800 but more content can be supplied through the internal proxy. 452 00:29:02,200 --> 00:29:02,680 So what it's saying here is that 453 00:29:02,680 --> 00:29:04,000 so what I'm going to go ahead and do is 454 00:29:04,000 --> 00:29:05,500 flip over to my web browser here 455 00:29:07,560 --> 00:29:09,760 and open up ZenCart application. 456 00:29:11,160 --> 00:29:13,100 And now I'm using the internal proxy. 457 00:29:13,320 --> 00:29:15,740 And you'll notice that there are some hidden fields shown here. 458 00:29:16,160 --> 00:29:17,040 Normally they're hidden. 459 00:29:17,140 --> 00:29:19,760 Now they're converted by the proxy dynamically to text fields. 460 00:29:19,840 --> 00:29:20,540 That's a setting. 461 00:29:20,960 --> 00:29:23,980 And I'm going to select one of these products. 462 00:29:24,400 --> 00:29:26,060 I can browse through the application normally. 463 00:29:26,160 --> 00:29:27,040 When I make a request, 464 00:29:27,480 --> 00:29:30,060 that request is then submitted through the proxy. 465 00:29:30,160 --> 00:29:32,500 The proxy will automatically test it. 466 00:29:32,680 --> 00:29:33,620 For vulnerabilities, 467 00:29:33,760 --> 00:29:36,100 according to the module parameters I've configured. 468 00:29:36,420 --> 00:29:38,680 And in this case you can see it's already discovered 469 00:29:38,680 --> 00:29:40,480 a possible SQL injection vulnerability 470 00:29:40,480 --> 00:29:41,660 in the page I requested. 471 00:29:44,080 --> 00:29:46,160 So we can view the details of these transactions. 472 00:29:46,620 --> 00:29:48,700 I'm going to go into the transactions tab for that. 473 00:29:48,900 --> 00:29:50,740 And I'm going to change the view settings 474 00:29:52,300 --> 00:29:54,020 to show all the transactions, 475 00:29:54,640 --> 00:29:56,780 except the 404 detection ones. 476 00:29:59,580 --> 00:30:01,400 And let's list all those other transactions. 477 00:30:01,400 --> 00:30:02,640 I'm going to go ahead and go into the 478 00:30:02,640 --> 00:30:04,460 details of this one, 296. 479 00:30:05,220 --> 00:30:06,640 Which is my product request. 480 00:30:07,540 --> 00:30:09,280 And this is the transaction viewer. 481 00:30:11,180 --> 00:30:11,840 Excuse me. 482 00:30:12,020 --> 00:30:15,160 And the request and response are shown here. 483 00:30:16,180 --> 00:30:19,020 You can view either in parsed or in raw mode. 484 00:30:20,640 --> 00:30:23,300 And the request or response bodies, 485 00:30:24,050 --> 00:30:25,880 you can view in rendered HTML, 486 00:30:26,240 --> 00:30:27,400 or in text, 487 00:30:27,520 --> 00:30:29,040 or in an internal hex viewer. 488 00:30:33,280 --> 00:30:38,880 So, I'm going to go back to the transaction, and this time I want to right-click on the 489 00:30:38,880 --> 00:30:43,180 transaction, and I've got some options. I want to send it to the manual requester. So 490 00:30:43,180 --> 00:30:48,200 I'm going to say send a manual request, and immediately the dialog pops up. This is basically 491 00:30:48,200 --> 00:30:52,460 the same view, except now I can edit any of these items in the request. 492 00:30:55,440 --> 00:31:00,840 And then I can hit execute to then send, once I've got it the way I like it, I can hit execute 493 00:31:00,840 --> 00:31:07,100 to send it to the server. And then I can view the response here. 494 00:31:10,980 --> 00:31:17,920 So the proxy settings tab, pretty simple. It configures the behavior of the proxy. There's 495 00:31:17,920 --> 00:31:24,360 the HTML form fields I mentioned, reveal hidden fields. And internal proxy settings, I can 496 00:31:24,360 --> 00:31:28,640 change the bind address, or the bind port, or the number of threads, and I can stop and 497 00:31:28,640 --> 00:31:30,500 I can restart the proxy in this interface. 498 00:31:33,260 --> 00:31:37,720 The interception settings. So, as David mentioned, where an inter, a 499 00:31:37,720 --> 00:31:42,860 grandal scan is an intercepting proxy. So I can enable a request interception here. 500 00:31:43,480 --> 00:31:48,380 And this is a regular expression based rule set to determine whether or not I intercept 501 00:31:48,380 --> 00:31:52,780 a certain request. So, there's an element of the request listed here under component. 502 00:31:53,420 --> 00:32:00,260 And then the value. And then, this is the regular expression part. And then whether 503 00:32:00,260 --> 00:32:03,560 I intercept or don't intercept the request, based on that match. 504 00:32:04,000 --> 00:32:09,840 So what, what happens here is it's logically ended together. Any, any request where all 505 00:32:09,840 --> 00:32:15,420 of the intercept rules match, and no, all of the intercept rules and none of the don't 506 00:32:15,420 --> 00:32:20,660 intercept rules match, will be intercepted. So just to demonstrate, I'm gonna go back 507 00:32:20,660 --> 00:32:29,120 to the web browser. And I'm just going to request another item here. And you'll notice 508 00:32:29,120 --> 00:32:29,400 that 509 00:32:30,780 --> 00:32:37,120 now it's popped up a request intercept dialog. And again here I can edit any of these, anything 510 00:32:37,120 --> 00:32:44,620 here in the either parsed or raw mode. And then I can accept the changes, and it'll 511 00:32:44,620 --> 00:32:45,620 submit that to the web server. 512 00:32:49,420 --> 00:32:54,920 So going back to the transactions tab, I want to demonstrate the, the manual fuzzer feature 513 00:32:54,920 --> 00:32:59,480 here. So I'm gonna right click on this transaction again and send it, this time I'll set it to 514 00:32:59,480 --> 00:33:06,380 be used as a fuzz template. And, in the fuzz template, this is the, the base 515 00:33:06,380 --> 00:33:10,760 for the request that I'm going to send as my, in my fuzzer. I want to change the product 516 00:33:10,760 --> 00:33:14,840 id in this case. I want a fuzz product id, so instead of 106 I want to use a bunch of 517 00:33:14,840 --> 00:33:21,360 different other values here. So I'm going to replace the value with a token which is 518 00:33:21,360 --> 00:33:29,420 fuzz with two percent signs on either side. Like that, if you can see it. And that's where 519 00:33:29,420 --> 00:33:29,460 I'm going to send the request. And what I'm gonna do is I'm gonna go back to this first 520 00:33:29,460 --> 00:33:30,800 This is called the insertion point. 521 00:33:30,940 --> 00:33:33,140 This is where my fuzz value is going to be inserted. 522 00:33:34,660 --> 00:33:35,860 So hit OK. 523 00:33:37,500 --> 00:33:39,680 And then I'm going to define a fuzz vector. 524 00:33:40,420 --> 00:33:42,620 In this case, these are numbers, so I 525 00:33:42,620 --> 00:33:43,520 want to use a numeric sequence. 526 00:33:46,100 --> 00:33:51,780 Begin with 1, go to 100, increment 1, ascending. 527 00:33:54,580 --> 00:33:57,140 So fuzz criteria is the next part. 528 00:34:00,980 --> 00:34:03,860 Here, I've got it set to check against the platform error 529 00:34:03,860 --> 00:34:06,200 messages that David mentioned earlier, which can be useful. 530 00:34:07,360 --> 00:34:09,240 This will define this rule here. 531 00:34:09,340 --> 00:34:12,340 The response code is one of the elements I can choose. 532 00:34:12,640 --> 00:34:14,900 But basically, if this component matches, 533 00:34:15,420 --> 00:34:19,040 I'm going to display, or optionally, it doesn't match. 534 00:34:19,420 --> 00:34:21,620 If this rule matches, I'm going to display 535 00:34:21,780 --> 00:34:23,200 it in the table listed below. 536 00:34:23,400 --> 00:34:26,340 So in this case, I wanted to say where the response code 537 00:34:26,340 --> 00:34:27,700 to my request is 200. 538 00:34:29,000 --> 00:34:30,260 We'll define it as a match. 539 00:34:30,480 --> 00:34:31,780 And so I'll go ahead and add that, 540 00:34:35,120 --> 00:34:36,640 and then start the fuzzer. 541 00:34:38,380 --> 00:34:40,620 And you'll notice that it's making requests of the web 542 00:34:40,620 --> 00:34:45,060 server with products ID from 1 and incrementing all the way up 543 00:34:45,060 --> 00:34:45,400 to 100. 544 00:34:46,220 --> 00:34:49,780 All of these have an HTTP response code of 200. 545 00:34:50,820 --> 00:34:51,220 So. 546 00:34:51,220 --> 00:34:53,460 So I can view the details of any of these transactions 547 00:34:54,080 --> 00:34:56,420 the same as I could before in the transaction viewer. 548 00:34:56,820 --> 00:34:57,980 So I'm just going to double click. 549 00:34:59,040 --> 00:35:01,580 And you can see there's my response. 550 00:35:02,860 --> 00:35:04,620 And there's the product that happens 551 00:35:04,620 --> 00:35:07,500 to match this particular product ID of 9. 552 00:35:13,260 --> 00:35:14,920 So now that I've gone through the interface, 553 00:35:15,260 --> 00:35:20,660 I want to show you a report that we've previously, 554 00:35:20,660 --> 00:35:23,440 previously run, a more complete scan. 555 00:35:27,700 --> 00:35:29,040 And here are some vulnerabilities 556 00:35:29,040 --> 00:35:32,580 that the scan was able to detect in the application. 557 00:35:33,720 --> 00:35:36,280 This one, for instance, is carriage return line feed 558 00:35:36,280 --> 00:35:36,560 injection. 559 00:35:37,500 --> 00:35:40,320 In any of the findings, we go into the severity 560 00:35:40,320 --> 00:35:43,400 of the finding, URL where it was discovered, 561 00:35:44,180 --> 00:35:45,800 a description of the vulnerability. 562 00:35:47,240 --> 00:35:50,380 In this case, so this is carriage return line feed 563 00:35:50,380 --> 00:35:50,500 injection. 564 00:35:51,200 --> 00:35:55,920 We've injected %0D, %0A, which is a carriage return and then 565 00:35:55,920 --> 00:35:58,300 a line feed, at the end of a parameter. 566 00:35:59,400 --> 00:36:02,520 And then a header of our choice that we 567 00:36:02,520 --> 00:36:03,420 want to appear in the output. 568 00:36:04,500 --> 00:36:05,980 If that was successful, then we've 569 00:36:05,980 --> 00:36:07,560 got successful carriage return line feed injection. 570 00:36:08,020 --> 00:36:09,780 So it looks like we found it here. 571 00:36:10,120 --> 00:36:11,620 We've got our carriage return line feed. 572 00:36:11,660 --> 00:36:14,200 Let me look at the transaction use just 573 00:36:14,200 --> 00:36:15,700 to verify that that's real. 574 00:36:16,400 --> 00:36:19,000 And indeed, there's our carriage return in our line feed. 575 00:36:19,000 --> 00:36:21,800 And you can see that the new header of our choice 576 00:36:21,800 --> 00:36:23,080 was inserted in the response. 577 00:36:26,480 --> 00:36:30,240 So we've also got a recommendation for mediation. 578 00:36:30,400 --> 00:36:31,500 So how would you fix that? 579 00:36:33,620 --> 00:36:37,480 Another example here is SQL injection. 580 00:36:38,880 --> 00:36:40,440 So obviously, pretty high severity. 581 00:36:40,760 --> 00:36:44,640 And as a lot of you know, we just put a single quote in. 582 00:36:47,020 --> 00:36:48,520 And we're going to do that. 583 00:36:48,600 --> 00:36:48,980 And we're going to do that. 584 00:36:48,980 --> 00:36:52,460 The details of this request, you can see, 585 00:36:52,900 --> 00:36:54,440 here's our single quote, %27. 586 00:36:55,360 --> 00:36:58,160 And then in the response, I'm going to go to the end of it, 587 00:37:00,600 --> 00:37:03,460 we can see, here's the MySQL error. 588 00:37:04,180 --> 00:37:07,800 And this is definitely vulnerable to SQL injection. 589 00:37:11,200 --> 00:37:17,680 So again, impact, recommendation, and a reference 590 00:37:17,680 --> 00:37:19,500 for finding out more about this kind of vulnerability. 591 00:37:30,520 --> 00:37:35,020 So when comparing an automated web scanner 592 00:37:35,020 --> 00:37:38,560 with a manual penetration test, automated web scanners actually 593 00:37:38,560 --> 00:37:39,820 do have some advantages here. 594 00:37:40,660 --> 00:37:43,200 The first is that the training requirements 595 00:37:43,200 --> 00:37:44,540 are pretty minimal. 596 00:37:44,740 --> 00:37:47,300 It doesn't require a lot of applications, securities, 597 00:37:47,680 --> 00:37:50,480 and specific knowledge to start a test. 598 00:37:50,960 --> 00:37:53,660 Also, the number of man hours, pretty few. 599 00:37:54,320 --> 00:37:56,920 Even if a test takes several hours to complete, 600 00:37:57,040 --> 00:37:58,520 or a scan takes several hours to complete, 601 00:37:58,860 --> 00:38:00,300 the scan can be started. 602 00:38:00,580 --> 00:38:02,940 And you can walk away and come back, usually, 603 00:38:03,020 --> 00:38:03,700 to a finished report. 604 00:38:06,940 --> 00:38:10,260 The upfront cost is typically significantly lower 605 00:38:11,080 --> 00:38:12,720 with an automated web scanner. 606 00:38:13,340 --> 00:38:15,020 Well, not necessarily significantly lower, 607 00:38:15,120 --> 00:38:17,660 but somewhat lower, especially the incremental cost is what I'm going to talk about here. 608 00:38:17,660 --> 00:38:18,100 I'm getting at. 609 00:38:18,380 --> 00:38:21,480 Frequently, the license, you might 610 00:38:21,480 --> 00:38:23,720 be able to buy a one-seat license, which you can use 611 00:38:23,720 --> 00:38:25,140 in multiple applications, as opposed 612 00:38:25,140 --> 00:38:27,140 to a penetration test, which is targeted 613 00:38:27,140 --> 00:38:28,220 at an individual application. 614 00:38:30,960 --> 00:38:34,520 So I mentioned some advantages. 615 00:38:34,860 --> 00:38:37,000 You'll note that one advantage I did not list in favor 616 00:38:37,000 --> 00:38:39,340 of automated scanners is accuracy. 617 00:38:40,140 --> 00:38:41,960 And there's a good reason for that. 618 00:38:42,800 --> 00:38:46,660 There's a pretty significant class of vulnerabilities 619 00:38:46,660 --> 00:38:47,640 that automated web scanners have. 620 00:38:47,640 --> 00:38:51,980 And the first of which are logic flaws. 621 00:38:52,860 --> 00:38:55,180 So one example that's been known for a while 622 00:38:55,680 --> 00:39:01,660 is if your shopping cart accepts negative quantities of a product 623 00:39:01,660 --> 00:39:02,740 to be put into your cart. 624 00:39:04,320 --> 00:39:06,840 And say, for example, I can put negative 8 625 00:39:06,840 --> 00:39:10,060 of a certain item into my cart that costs $100 each. 626 00:39:10,440 --> 00:39:13,720 I could get negative $800, or essentially an $800 credit, 627 00:39:13,920 --> 00:39:16,020 into my shopping cart before I check out. 628 00:39:17,940 --> 00:39:24,040 A web scanner is not going to be able to find this vulnerability, 629 00:39:24,400 --> 00:39:27,560 because it's not able to understand the logic involved, 630 00:39:27,760 --> 00:39:29,140 or what that number really even means. 631 00:39:29,860 --> 00:39:31,560 Another example is design flaws. 632 00:39:32,160 --> 00:39:36,540 So if you have a password recovery question, 633 00:39:36,640 --> 00:39:38,600 a secret question used to recover your password, 634 00:39:38,760 --> 00:39:41,760 and the question is, what was the make of your first car? 635 00:39:42,720 --> 00:39:44,780 Now, that's a really terrible question. 636 00:39:47,640 --> 00:39:49,920 The reason is because there's relatively few automakers. 637 00:39:50,180 --> 00:39:53,820 You can iterate through an entire list relatively quickly 638 00:39:54,340 --> 00:39:57,020 with relatively few requests and come up with the correct answer. 639 00:39:58,060 --> 00:40:00,640 Again, automated scanner is not going to be able to detect this. 640 00:40:00,740 --> 00:40:01,960 It doesn't understand the English language, 641 00:40:02,180 --> 00:40:04,880 isn't able to parse that kind of a question, or know it's bad. 642 00:40:06,100 --> 00:40:07,180 Abstract information leakage. 643 00:40:07,500 --> 00:40:12,160 So a year ago, the Macworld Expo had a good example of this, 644 00:40:12,280 --> 00:40:16,380 where on the registration page, there were coupon codes. 645 00:40:16,580 --> 00:40:17,620 And coupon codes were the ones that you had to use. 646 00:40:17,640 --> 00:40:21,520 And coupon codes were worth a discount to potentially several hundred dollars discount 647 00:40:22,080 --> 00:40:23,420 off of the price of admission. 648 00:40:24,080 --> 00:40:29,800 And so it happened that in the JavaScript source code to the web page, 649 00:40:30,040 --> 00:40:32,780 there was a number of MD5 hashes listed there. 650 00:40:32,980 --> 00:40:37,480 And these MD5 hashes were for valid coupon codes for client-side validation. 651 00:40:38,020 --> 00:40:42,680 And it was possible to brute force through the entire list and check against the MD5 652 00:40:42,680 --> 00:40:46,760 and find out which coupon codes were valid and then submit one. 653 00:40:46,760 --> 00:40:48,680 Obviously, a serious vulnerability. 654 00:40:50,100 --> 00:40:52,060 But scanners are not going to be able to detect this. 655 00:40:53,600 --> 00:40:54,480 So we've gone over. 656 00:40:54,580 --> 00:40:57,280 They really can't understand application logic or data, 657 00:40:57,340 --> 00:40:58,840 understand how your application is functioning. 658 00:40:59,980 --> 00:41:02,120 Whereas a human penetration tester is typically 659 00:41:02,120 --> 00:41:04,780 going to be able to figure that out and understand things 660 00:41:04,780 --> 00:41:05,960 that the scanner would not. 661 00:41:07,660 --> 00:41:12,020 Also, scanners generate typically far more traffic than a manual test. 662 00:41:12,340 --> 00:41:16,460 So if you're looking to conduct a test with stealth, automated scanners, 663 00:41:16,460 --> 00:41:17,620 probably not your best choice. 664 00:41:23,540 --> 00:41:26,820 I want to talk about this a little bit more, because as a pen tester, it's kind of a pet 665 00:41:26,820 --> 00:41:27,300 peeve of mine. 666 00:41:27,680 --> 00:41:31,840 It's easy to dismiss the kind of vulnerabilities that Eric was discussing as not very common 667 00:41:31,840 --> 00:41:35,420 or something that's relegated to code that was written in the 90s. 668 00:41:35,660 --> 00:41:36,420 That's not true. 669 00:41:39,940 --> 00:41:43,220 We're talking a couple days ago about web app firewalls. 670 00:41:43,260 --> 00:41:46,320 And a coworker of mine commented on how you can't filter out stupid. 671 00:41:46,760 --> 00:41:48,540 And you can't scan for stupid, either. 672 00:41:51,160 --> 00:41:54,800 This is an exploit from a pen test that I did earlier this year. 673 00:41:55,260 --> 00:41:56,860 Can you spot what I'm doing here? 674 00:41:58,320 --> 00:42:00,460 The default is free purchase equals no. 675 00:42:00,700 --> 00:42:03,420 And when you change it to yes, it does exactly what you think it would. 676 00:42:06,420 --> 00:42:09,500 In fairness, this is not an extremely complicated vulnerability. 677 00:42:09,740 --> 00:42:12,020 It's something that even a novice pen tester should be able to find. 678 00:42:12,220 --> 00:42:16,040 A better example comes from a test that a colleague of mine did last year. 679 00:42:16,600 --> 00:42:22,760 And what he found was that given an employee's name, he could go to different parts of an 680 00:42:22,760 --> 00:42:24,960 application and query information about that employee. 681 00:42:26,040 --> 00:42:30,240 Most of those queries, in order to get to the data, required some other kind of secondary 682 00:42:30,240 --> 00:42:32,140 information, like an employee ID number. 683 00:42:32,640 --> 00:42:37,320 But what the tester found was that all of that information was available from somewhere 684 00:42:37,320 --> 00:42:37,920 else in the app. 685 00:42:38,380 --> 00:42:43,100 So in the end, he was able to walk away with the employee's home address, the home phone 686 00:42:43,100 --> 00:42:45,800 number, social security number, employee ID number. 687 00:42:46,040 --> 00:42:46,980 And some other sensitive information. 688 00:42:47,700 --> 00:42:52,100 He shouldn't have been able to get access to any of that with the account that he had. 689 00:42:52,980 --> 00:42:54,640 And this wasn't because of SQL injection. 690 00:42:54,860 --> 00:42:56,160 It wasn't some kind of session hijack. 691 00:42:56,300 --> 00:43:01,040 It was a design flaw, because each query was designed ignoring the behavior in the rest 692 00:43:01,040 --> 00:43:01,620 of the application. 693 00:43:02,120 --> 00:43:04,020 And this type of vulnerability we see all the time. 694 00:43:04,080 --> 00:43:05,100 It's very common in applications. 695 00:43:06,740 --> 00:43:12,300 Usually in the context of compliance, I often hear discussions or read about whether or 696 00:43:12,300 --> 00:43:14,880 not an automated scan qualifies as a pen test. 697 00:43:14,880 --> 00:43:19,020 From a security point of view, the answer is absolutely not, and it's ridiculous to 698 00:43:19,020 --> 00:43:19,860 assert otherwise. 699 00:43:20,380 --> 00:43:24,640 We've already talked about entire classes of vulnerabilities that are theoretically impossible 700 00:43:24,640 --> 00:43:29,200 for an automated scan to discover until we have Hal-like intelligence in our software. 701 00:43:29,600 --> 00:43:35,220 But beyond that, there are a lot of vulnerabilities that, while I can imagine a way of writing 702 00:43:35,220 --> 00:43:37,760 a test module to find them, it's just not going to happen. 703 00:43:38,700 --> 00:43:44,660 Earlier this year, I was doing a test, and I noticed that when square brackets were a 704 00:43:44,660 --> 00:43:49,100 pended to a specific query parameter, the response from the server was subtly different. 705 00:43:49,440 --> 00:43:53,840 In doing a little bit of research and some more experimenting, I found out that the application 706 00:43:53,840 --> 00:43:57,840 was based on a somewhat obscure web platform written in Perl. 707 00:43:58,040 --> 00:44:03,020 And eventually, I was able to write an exploit that allowed arbitrary Perl code to be executed 708 00:44:03,020 --> 00:44:03,680 on the web server. 709 00:44:03,920 --> 00:44:05,300 That's a pretty significant finding. 710 00:44:05,640 --> 00:44:11,920 And again, I can imagine a way of writing a test module for it, but it's a fairly obscure 711 00:44:11,920 --> 00:44:12,420 platform. 712 00:44:12,420 --> 00:44:19,380 And even if you had the resources to write tests for every or even many different obscure 713 00:44:19,380 --> 00:44:23,040 software that's used out on the internet, you ended up with a tool that was so bloated 714 00:44:23,040 --> 00:44:24,920 and so slow, no one would want to use it. 715 00:44:26,000 --> 00:44:30,780 Just about every application that I test has something about it that makes it unique enough 716 00:44:30,780 --> 00:44:34,360 that some of its behavior would be missed by an automated scanner. 717 00:44:34,600 --> 00:44:38,400 Whether it's functionality that's somewhat non-standard and written specifically for 718 00:44:38,400 --> 00:44:42,300 the application, or it's using some piece of software that, you know, maybe people 719 00:44:42,300 --> 00:44:46,260 have heard of but isn't common enough to justify many, if any, test modules. 720 00:44:47,280 --> 00:44:53,020 The only time that you're going to get really good code coverage from an automated scanner 721 00:44:53,020 --> 00:44:59,440 is if the application is just plain vanilla, doesn't have anything that's very complicated, 722 00:44:59,660 --> 00:45:05,320 and is based on a very common and simple web platform like PHP or classic ASP. 723 00:45:05,920 --> 00:45:11,840 And that doesn't really even get into the accuracy aspect of scanners. 724 00:45:11,900 --> 00:45:12,280 It's just a little bit more complicated. 725 00:45:12,280 --> 00:45:15,240 And that's a lot of times when, when things like SQL injection and cross-site scripting 726 00:45:15,240 --> 00:45:17,340 are missed just because it's not a human. 727 00:45:18,860 --> 00:45:22,500 My wife used to be an interpreter and a translator, and she made a really good analogy comparing 728 00:45:23,140 --> 00:45:26,320 automated app scanners with automated translation software. 729 00:45:26,700 --> 00:45:31,260 I think we've probably all used Google or Babelfish to translate a website, and it does 730 00:45:31,260 --> 00:45:31,920 a decent job. 731 00:45:32,080 --> 00:45:33,620 You know, you can usually understand what it's getting at. 732 00:45:33,900 --> 00:45:37,780 But you never dream of using them or even a more expensive piece of commercial software 733 00:45:37,780 --> 00:45:41,780 for translating something that was complicated, like a piece of literature or something where 734 00:45:41,780 --> 00:45:45,400 the meaning was very sensitive, like a legal document or maybe even a car manual. 735 00:45:46,180 --> 00:45:50,480 Apparently sometimes you can't even rely on it to translate a single word. 736 00:45:50,700 --> 00:45:54,240 If you can't read this, it's a sign that says translate server error, when it should 737 00:45:54,240 --> 00:45:54,860 read restaurant. 738 00:45:59,440 --> 00:46:02,160 Even a Chinese to English dictionary would have gotten that one right. 739 00:46:06,520 --> 00:46:08,820 Now that you're laughing at my jokes, I'm losing my train of thought. 740 00:46:10,200 --> 00:46:11,760 So obviously I think that there is a lot of stuff that's going on. 741 00:46:11,780 --> 00:46:14,580 There's a legitimate use for automated scanners, otherwise I wouldn't have bothered writing 742 00:46:14,580 --> 00:46:14,980 Rindle. 743 00:46:15,220 --> 00:46:21,260 I think a good example is that, say, a corporate information directory, basically an internal 744 00:46:21,260 --> 00:46:21,800 phone book. 745 00:46:22,100 --> 00:46:23,380 Security is important there. 746 00:46:23,600 --> 00:46:27,800 It would be a very appealing target for persistent cross-site scripting by an internal attacker. 747 00:46:28,140 --> 00:46:32,300 It's probably used widely by most of the employees for the organization, and it certainly is 748 00:46:32,300 --> 00:46:34,540 going to be much more trusted than some random website out on the internet. 749 00:46:35,560 --> 00:46:40,860 But very few organizations are going to have the resources to perform an automated, or 750 00:46:40,860 --> 00:46:41,120 excuse me. 751 00:46:41,120 --> 00:46:42,720 A manual penetration test against that. 752 00:46:43,100 --> 00:46:46,680 So by running an automated scan, you get some degree of comfort that at least the simple 753 00:46:46,680 --> 00:46:51,000 vulnerabilities have been identified and remediated, and that any successful attack is going to 754 00:46:51,000 --> 00:46:52,580 require some degree of sophistication. 755 00:46:52,740 --> 00:46:57,200 That leaves your budget for testing important applications, like those that handle credit 756 00:46:57,200 --> 00:47:01,520 card data, or financial records, human resource information, things like that. 757 00:47:02,600 --> 00:47:04,980 So I want to go over the product roadmap real quick. 758 00:47:06,100 --> 00:47:09,580 This is not a complete list of new features, just the highlights. 759 00:47:09,580 --> 00:47:12,780 Version 1.1 should be out around Thanksgiving of this year. 760 00:47:13,180 --> 00:47:17,040 You'll be able to preview the scan results before it's completed, which is especially 761 00:47:17,040 --> 00:47:18,760 useful if you're doing a manual test alongside. 762 00:47:20,920 --> 00:47:22,940 HTTP-based authentication will be supported. 763 00:47:23,120 --> 00:47:25,260 I really wanted to have this ready in time for DEF CON. 764 00:47:26,200 --> 00:47:27,600 It just didn't happen. 765 00:47:27,800 --> 00:47:31,400 However, very few web apps these days use HTTP authentication. 766 00:47:32,020 --> 00:47:37,880 Almost all of them use HTML form-based authentication with some kind of cookie or parameter-based 767 00:47:37,880 --> 00:47:39,140 session tracking. 768 00:47:39,580 --> 00:47:44,560 On top of it, multi-part MIMECOST and Postbodies will also be supported. 769 00:47:44,720 --> 00:47:45,820 That's a little bit bigger of a deal. 770 00:47:47,780 --> 00:47:51,900 Most of the time that I was writing Grindle, this wasn't supported by the version of HTTP 771 00:47:51,900 --> 00:47:57,940 components that I was using, but it is now, so I need to go back and change it. 772 00:47:58,020 --> 00:48:01,640 However, the default for Posts is URL encoding, and that's far more common. 773 00:48:01,820 --> 00:48:05,820 Usually the MIME encoding is used for uploads or some kind of binary data transfer. 774 00:48:06,640 --> 00:48:08,480 The fuzzer is going to have a number of enhancements. 775 00:48:08,500 --> 00:48:09,200 That's the manual fuzzer. 776 00:48:09,200 --> 00:48:12,740 The manual fuzzer that Eric was demonstrating will be a number of new fuzz vectors. 777 00:48:13,040 --> 00:48:17,280 You'll also be able to identify a specific response as normal, and then anything that 778 00:48:17,280 --> 00:48:20,780 significantly deviates from normal, from the fuzzing, is reported. 779 00:48:21,380 --> 00:48:24,140 And of course you'll be able to set a threshold to determine that. 780 00:48:25,120 --> 00:48:29,000 You'll also be able to have the fuzzer guess at what a normal response is, so that if 90% 781 00:48:29,000 --> 00:48:32,040 of the responses look the same, the 10% that don't will be listed. 782 00:48:33,060 --> 00:48:36,000 You'll be able to start a scan from the command line, which will be useful for scheduling 783 00:48:36,000 --> 00:48:38,380 or for performing bulk scans from a script. 784 00:48:38,380 --> 00:48:42,040 There will also be a lightweight interface mode, which will be useful for users that 785 00:48:42,580 --> 00:48:43,920 just want to perform an automated scan. 786 00:48:44,080 --> 00:48:46,380 They don't really need to see all the advanced configuration options. 787 00:48:46,900 --> 00:48:49,640 Certainly don't need any of the manual testing features during the scan. 788 00:48:50,520 --> 00:48:52,940 A few of the new test modules. 789 00:48:54,400 --> 00:48:55,060 Authorization enforcement. 790 00:48:55,260 --> 00:48:57,680 I know it's going to be experimental from the beginning, just because it's going to 791 00:48:57,680 --> 00:48:59,480 take a while to properly tweak and tune. 792 00:49:00,720 --> 00:49:05,960 Basically it will look for requests that were sent by user A, never by user B, but then 793 00:49:05,960 --> 00:49:07,940 try to explicitly request the content. 794 00:49:08,380 --> 00:49:11,620 As user B, and see if the responses look the same. 795 00:49:13,680 --> 00:49:18,100 Parameter incrementing will look for something like product that equals 10, and then try 796 00:49:18,100 --> 00:49:19,920 to request equals 11 and equals 9. 797 00:49:20,220 --> 00:49:22,720 You'll be able to set bounds to prevent it from ballooning out of control. 798 00:49:24,080 --> 00:49:26,160 SSL configuration testing. 799 00:49:26,480 --> 00:49:28,020 Do you have SSL version 2 enabled? 800 00:49:28,140 --> 00:49:30,920 Are you running weak SSL cipher suites? 801 00:49:31,880 --> 00:49:33,400 Error-based username enumeration. 802 00:49:33,420 --> 00:49:38,360 Does a valid username and an invalid password result in the same error message as the error 803 00:49:38,380 --> 00:49:39,360 message as an invalid username? 804 00:49:39,700 --> 00:49:41,640 It shouldn't, but oftentimes it does. 805 00:49:43,860 --> 00:49:48,340 1.2 will be out late spring, early summer of next year. 806 00:49:48,760 --> 00:49:55,260 Automated AJAX navigation will be one of the test modules for spidering. 807 00:49:55,520 --> 00:50:01,580 Right now, Grendel can't automatically crawl a site that uses AJAX or JSON or something 808 00:50:01,580 --> 00:50:06,400 like that, just because the interface that's presented is significantly different than 809 00:50:06,400 --> 00:50:07,240 traditional HTML. 810 00:50:07,240 --> 00:50:11,660 You can still test those sites just fine by using the internal browser, and Grendel 811 00:50:11,660 --> 00:50:14,540 will just start testing queries as they're sent. 812 00:50:15,920 --> 00:50:18,820 The foundation for AJAX navigation is already there. 813 00:50:18,940 --> 00:50:24,120 We have the JavaScript engine, the DOM implementation is solid, and that's really what's needed 814 00:50:24,120 --> 00:50:28,520 to implement browser behavior and mimic it. 815 00:50:29,800 --> 00:50:35,160 PDF and XML report formats will be supported, as will one-time passwords like RSA secure 816 00:50:35,160 --> 00:50:35,500 ID. 817 00:50:36,100 --> 00:50:40,620 Authentication domains and using client-side SSL certificates for authentication. 818 00:50:41,100 --> 00:50:45,400 You'll also be able to stop a scan, save it, exit the program, start it back up, and resume 819 00:50:45,400 --> 00:50:46,400 the scan where you left off. 820 00:50:47,760 --> 00:50:50,460 The website is grendel-scan.com. 821 00:50:50,660 --> 00:50:51,920 It'll work without the dash also. 822 00:50:52,180 --> 00:50:58,040 You can download the presentation materials, the tool of course, and the ISO for the demonstration 823 00:50:58,040 --> 00:50:58,520 environment. 824 00:50:59,220 --> 00:50:59,900 That's all. 825 00:51:00,100 --> 00:51:00,560 Let's see. 826 00:51:00,640 --> 00:51:01,180 Do we have any time? 827 00:51:01,500 --> 00:51:01,980 No. 828 00:51:02,020 --> 00:51:02,960 We have no time for questions. 829 00:51:03,080 --> 00:51:05,020 Room 105 is where we'll be. 830 00:51:05,500 --> 00:51:05,760 Thank you very much.