1 00:00:00,000 --> 00:00:05,500 So a little bit about us. We work for Fishnet Security but we're not sales people so you 2 00:00:05,500 --> 00:00:09,400 really don't have to worry about that portion of it. I'm a principal consultant on the AppSec 3 00:00:09,400 --> 00:00:14,540 team. I also am an associate professor of software engineering at the University of 4 00:00:14,540 --> 00:00:18,520 Advancing Technology. So they have a booth over there in the vendor area if you feel like 5 00:00:18,520 --> 00:00:23,860 talking to them. And even though we didn't change the slides, that's actually J-Rock, not 6 00:00:23,860 --> 00:00:29,740 Justin Engler. We went through our entire team and gave each other hip hop names. So that's 7 00:00:29,740 --> 00:00:38,380 J-Rock. Okay, Nate Dogg. I'm Nate Dogg. I'm Seth. I'm also a principal consultant at Fishnet. 8 00:00:40,620 --> 00:00:48,020 I'm Greg. I'm a senior security consultant at Fishnet as well. I'm Justin. I'm a regular 9 00:00:48,020 --> 00:00:56,720 consultant at Fishnet Security. So kind of what our talk is about here is we're going to 10 00:00:56,720 --> 00:00:59,720 provide a little bit of an overview of problems. We're going to talk a little bit about the 11 00:00:59,740 --> 00:01:06,040 specific problems with current testing tools that people may or may not be aware of. So kind of 12 00:01:06,040 --> 00:01:11,820 our modern landscape is that we end up with people who may be in a QA or security testing role who 13 00:01:11,820 --> 00:01:15,020 may have come from a different background that, like, they may not have had development 14 00:01:15,020 --> 00:01:20,400 experience. So when they run into problems or when they run into technologies they may or may 15 00:01:20,400 --> 00:01:25,780 not understand, they might not find vulnerabilities that are fairly easy to find. And some 16 00:01:25,780 --> 00:01:29,720 of that is a problem on the tools perspective. Like not being able to run a project based on a 17 00:01:29,740 --> 00:01:34,820 able to handle modern web applications. So we'll go through some of the current workarounds 18 00:01:34,820 --> 00:01:40,640 and how that, you know, how people are handling those. We'll go through a little bit of proposed 19 00:01:40,640 --> 00:01:46,160 solutions, like how those can be fixed. And then we wrote a tool to start addressing some 20 00:01:46,160 --> 00:01:51,600 of these issues. So we'll go into ‑‑ we'll skip some of the stuff and get right to the 21 00:01:51,600 --> 00:01:58,440 demos and show you the tool. So what we aren't going to do, which this is kind of a lie, 22 00:01:58,440 --> 00:02:03,960 so we aren't going to beat up on any particular vendor. So that's kind of sort of not true, 23 00:02:04,080 --> 00:02:08,300 but we're going to try to keep that. We didn't say tools, we just said vendor. 24 00:02:08,500 --> 00:02:15,280 Yeah, it said vendor, yes. We also currently can't solve every single problem that we outline, 25 00:02:15,520 --> 00:02:22,140 but we're working on it. And we're definitely not going to sell you a solution. So our goals 26 00:02:22,140 --> 00:02:27,400 for this is, one, to raise awareness for people who actually test applications. We want to 27 00:02:27,400 --> 00:02:28,420 put focus back on the data. So we're going to try to keep that in mind. So we're going to 28 00:02:28,420 --> 00:02:31,740 put focus back on the tester and not so much on the tool. And that's what our tool allows you 29 00:02:31,740 --> 00:02:35,040 to do. I know that sounds kind of weird, like we're giving you a tool so you don't have to use 30 00:02:35,040 --> 00:02:39,860 tools. So it sounds kind of strange, but you'll get it by the end of the talk, I promise. If 31 00:02:39,860 --> 00:02:45,240 not, you can punch me in the face afterwards. And also to get you to submit bug reports for 32 00:02:45,240 --> 00:02:51,180 Raft. I remember a couple of times when some tools came out, I don't want you guys to do what 33 00:02:51,180 --> 00:02:55,500 I did, so I would download the tool and give it a try and then something wouldn't work and I'm 34 00:02:55,500 --> 00:02:58,400 like, this sucks, I'm not going to look at it anymore. So we're going to try to do that. And 35 00:02:58,420 --> 00:03:03,760 so don't do what I've done in the past. I realize I'm, you know, not being a good advocate of 36 00:03:03,760 --> 00:03:08,620 that. But we will fix something and, you know, we will take feature requests and try to work 37 00:03:08,620 --> 00:03:14,940 things into the tool. So a little bit of clarification. Throughout the talk, we use terms 38 00:03:15,920 --> 00:03:21,520 fully automated and semi-automated. And sometimes we use those interchangeably. So that 39 00:03:21,520 --> 00:03:25,960 causes some confusion. And we're going to continue to be confusing about that. So sorry. So 40 00:03:25,960 --> 00:03:28,400 this slide is going to try to explain to you a little bit more about what we're going to do. So 41 00:03:28,420 --> 00:03:36,500 if you think of a fully automated testing tool, like your enterprise application testing 42 00:03:36,500 --> 00:03:41,960 tools, those are like the Mac 10 on the right-hand side, right? So basically what you're doing is 43 00:03:41,960 --> 00:03:45,220 you're loading up a bunch of bullets and you're just spraying them in a current. Anybody who's 44 00:03:45,220 --> 00:03:48,600 ever shot a Mac 10 knows that you can't hit anything with it. They might as well not even have 45 00:03:48,600 --> 00:03:53,740 any sights on it. You just point it in a general direction and you put holes and stuff. Not 46 00:03:53,740 --> 00:03:58,400 always the best solution. So semi-automated testing or how it should be, you're going to be 47 00:04:00,800 --> 00:04:06,280 sending data to something like running through a bunch of different test cases. That's more like 48 00:04:06,280 --> 00:04:11,800 the semi-automatic sniper rifle. So you're honing in on a problem. And you're really trying to 49 00:04:11,800 --> 00:04:17,360 focus on that problem and find vulnerabilities based on a specific set of test cases. And 50 00:04:17,360 --> 00:04:23,080 that's mostly what we're talking about during this talk, is we're talking about the left-hand 51 00:04:23,080 --> 00:04:25,140 side. We're talking about the sniper rifle. 52 00:04:30,940 --> 00:04:34,780 Okay. So I'm going to kind of talk a little bit about the current solutions that exist out 53 00:04:34,780 --> 00:04:41,280 there. I'm not sure how well you guys can hear me. Basically we test for a living, right? We're 54 00:04:41,280 --> 00:04:45,920 looking at web applications and we've kind of figured out that they all fall down in some way or 55 00:04:45,920 --> 00:04:50,760 another. I mean, you get a, you know, the fully automated tools where you click the start button 56 00:04:50,760 --> 00:04:55,360 and it's supposed to find every vulnerability under the sun. And I end up spending two to three 57 00:04:55,360 --> 00:04:58,400 days configuring the thing and it comes back and it tells me there's, you know, there's a 58 00:05:00,720 --> 00:05:08,920 SSL is misconfigured or some shit like that. So the automated tools fall down. I mean, 59 00:05:08,920 --> 00:05:12,440 there's the fully automated ones, the semi-automated ones. They have session and state 60 00:05:12,440 --> 00:05:18,700 problems. You've got scanners that will run and they, you know, pull what you did. And the next 61 00:05:18,700 --> 00:05:22,900 time that you go to the site and have the tool run, it's out of state and it can't figure out 62 00:05:22,900 --> 00:05:27,420 that it's out of state. So you've got hundreds or thousands of requests that are coming back. 63 00:05:28,420 --> 00:05:32,240 And there's a lot of stuff in the tool or that the tool is making to the website and they just 64 00:05:32,240 --> 00:05:36,020 aren't valid because they're all returning, you know, 302 redirects or something like that. 65 00:05:36,500 --> 00:05:40,120 They have problems with, you know, these complicated applications. The modern technologies we 66 00:05:40,120 --> 00:05:46,860 already talked about, you know, C surf tokens, web services. The tools just don't understand them 67 00:05:46,860 --> 00:05:54,720 very well. Furthermore, all this data that is collected is in disparate locations, right? You've 68 00:05:54,720 --> 00:05:58,400 got your proxy that you're using while you're testing. You've got the full blotter and the lot of the 69 00:05:58,400 --> 00:06:02,700 alone, app scanner, web inspector. Sorry, I probably wasn't supposed to mention that. 70 00:06:03,760 --> 00:06:10,220 But the fully commercial scanners, getting data out of those tools can be just one huge 71 00:06:10,220 --> 00:06:17,740 pain in the ass. And as you go further, you've got all this data that you've collected that 72 00:06:17,740 --> 00:06:21,740 there's no analysis that's run on it after the fact, right? You've got a single request 73 00:06:21,740 --> 00:06:27,280 response, the scanner goes in, it makes its assumptions about what's happened and then 74 00:06:27,280 --> 00:06:31,940 it basically discards that data. There should be some sort of analysis that goes on after the 75 00:06:31,940 --> 00:06:37,240 fact. As testers, we need more interaction, not abstraction. We need to be able to understand 76 00:06:37,240 --> 00:06:42,000 the application in order to break the application or in order to find the vulnerabilities. And 77 00:06:42,000 --> 00:06:47,620 if it's not ‑‑ I mean, if the tool is basically the point and click tool, you don't 78 00:06:47,620 --> 00:06:53,300 understand what it's doing behind the scenes. All the vulnerabilities that I find typically 79 00:06:53,300 --> 00:06:57,140 are because I'm in the application, I'm actually looking at the request and the response 80 00:06:57,280 --> 00:07:01,860 responses on a low, low level, not at the level that is being presented to me by the 81 00:07:01,860 --> 00:07:09,380 tool itself. Furthermore, we miss portions of the application. If you think about the 82 00:07:09,380 --> 00:07:13,620 mobile applications that exist in the space that's out there now, when your iPhone makes a 83 00:07:13,620 --> 00:07:17,720 request, you get a different application than you do when you're using your Firefox web 84 00:07:17,720 --> 00:07:22,540 browser. If the tool doesn't understand that, hey, it needs to fuzz the accept header or the 85 00:07:22,540 --> 00:07:26,880 user agent header to actually get into portions of the application, you're going to miss maybe 86 00:07:27,280 --> 00:07:34,800 percent of the application is developed by the developers. And there's some risk. We could go on 87 00:07:34,800 --> 00:07:39,160 forever. If you really want to know about the problems, we really beat up within the white 88 00:07:39,160 --> 00:07:45,640 paper that we presented. Can anybody tell, like anybody who tests web applications, so say 89 00:07:45,640 --> 00:07:50,200 you have an automated testing tool, can anybody see from the screen shot why it might have a 90 00:07:50,200 --> 00:08:03,080 problem? There you go. It says sign out. A lot of automated testing tools look for a regular 91 00:08:03,080 --> 00:08:08,720 expression to tell whether it's in state or out of state. So the application is clearly asking 92 00:08:08,720 --> 00:08:14,120 the user to authenticate, yet it says sign out, like they're already logged in. So a lot of 93 00:08:14,120 --> 00:08:19,380 tools will continue to send their tests and fail based on that. And then you've got things 94 00:08:19,380 --> 00:08:20,180 like this risk-based test. You've got the risk-based test. You've got the risk-based test. 95 00:08:20,180 --> 00:08:24,220 Login that we're talking about at the beginning. Financial applications. Depending on 96 00:08:24,220 --> 00:08:27,820 where you're coming from, if it's a new browser that it hasn't seen before, they're going to ask 97 00:08:27,820 --> 00:08:34,020 you for more layers of authentication. And the first time you step through it with your tool, it 98 00:08:34,020 --> 00:08:38,020 may ask two or three different questions and it will be different the next time that you hit the 99 00:08:38,020 --> 00:08:43,360 application. So these tools are just, you know, they're basically killing us when it comes to 100 00:08:43,940 --> 00:08:49,560 application testing. There's simple features we're missing, request times, authorization checks. 101 00:08:50,960 --> 00:08:56,700 Storage locations, the new HTML5 spec, flash objects. Things like that. Especially these tools 102 00:08:56,700 --> 00:09:00,740 that were built in, you know, 2001, 2002, they don't understand any of that new technology. 103 00:09:06,080 --> 00:09:11,980 So now that we've talked about why the existing tools can't do a good job on the whole picture, 104 00:09:12,080 --> 00:09:14,620 we're left with trying to figure out at the end of the day when I have to do an 105 00:09:14,620 --> 00:09:19,420 assessment, what am I going to do? So even though a lot of tools don't handle the whole picture, 106 00:09:19,420 --> 00:09:22,960 structure. There are some that can handle pieces. So we run a bunch of separate tools 107 00:09:22,960 --> 00:09:27,680 that do little pieces. And a lot of them don't have any analysis of their own. Sometimes 108 00:09:27,680 --> 00:09:32,400 we'll write our own custom scripts to do something custom to generate a whole bunch of requests. 109 00:09:32,960 --> 00:09:37,260 But then we don't have any way to analyze what we just did. And not only do we not have 110 00:09:37,260 --> 00:09:40,640 the way to analyze just the one thing from one tool, we've got all this stuff from all 111 00:09:40,640 --> 00:09:44,800 these different data formats and we don't have any way to get them all in one spot and 112 00:09:44,800 --> 00:09:50,780 then look for commonalities. Another problem with doing it this way is that most of these 113 00:09:50,780 --> 00:09:54,080 tools, even when they do have analysis, you can only do it on the stuff you just ran. 114 00:09:54,420 --> 00:09:59,360 If you've got data from a bunch of tools from last year and now some new type of vulnerability 115 00:09:59,360 --> 00:10:03,140 came out and you want to check, hey, do I still ‑‑ do I have that in any of my 116 00:10:03,140 --> 00:10:06,640 stuff, you're going to have to scan everything again. You can't just take the results that 117 00:10:06,640 --> 00:10:14,780 you had and run the analysis. So I'm going to go ahead and show you some examples of 118 00:10:14,800 --> 00:10:19,760 that. So instead you could try testing manually. But when you look at the scope of the assessments 119 00:10:19,760 --> 00:10:23,800 at least that we get, there's not really any chance that you would be able to get anything 120 00:10:24,340 --> 00:10:28,280 meaningful done by manually clicking things and manually looking at the responses. We've 121 00:10:28,280 --> 00:10:33,360 got, you know, thousands of pages to look at in the course of two weeks. You're not 122 00:10:33,360 --> 00:10:38,220 going to get it done. You need to have something that helps you reduce that burden. So just 123 00:10:38,220 --> 00:10:43,380 manually doing it isn't going to work. If you've got a crazy tool that almost does what 124 00:10:43,380 --> 00:10:44,780 you need, sometimes you can modify it. You can modify it. You can modify it. You can 125 00:10:44,800 --> 00:10:49,080 modify something to do what it wasn't supposed to do. But even that can be painful. And you're 126 00:10:49,080 --> 00:10:53,880 spending time writing scripts when you should be spending time testing the program that you're 127 00:10:53,880 --> 00:10:57,680 supposed to test. Has anyone in here ever had to use, like, Windmill or Selenium to do a 128 00:10:57,680 --> 00:11:03,980 security test? Anybody? A couple people. A couple hands. Okay. So that's kind of what we're 129 00:11:03,980 --> 00:11:08,420 talking about. Like, you know, Windmill and Selenium are more or less QA tools. They're not 130 00:11:08,420 --> 00:11:12,620 really made to find security vulnerabilities. So you might be looking for something specific. 131 00:11:12,780 --> 00:11:14,780 Like, let's say you modified and you had some security issues. You might be looking for 132 00:11:14,800 --> 00:11:19,320 Selenium scripts and you were looking for SQL injection. Well, you're kind of focused on SQL 133 00:11:19,320 --> 00:11:25,000 injection, but you might miss a whole slew of vulnerabilities in the same request that could be 134 00:11:25,000 --> 00:11:33,140 easily found if there was proper analysis done on it. So the other problem is many tools 135 00:11:33,140 --> 00:11:37,160 were fine when they were first written so that you could, you know, present at DEF CON a couple 136 00:11:37,160 --> 00:11:42,800 years ago. But they don't ‑‑ they've never really been kept up to date or they don't adapt. 137 00:11:43,040 --> 00:11:44,780 And so just like our picture ‑‑ 138 00:11:44,800 --> 00:11:48,980 You need to stay up to date with the times or you will become useless. I would argue ‑‑ 139 00:11:48,980 --> 00:11:51,440 I don't think she's ever been useful, but it was just a funny picture. 140 00:11:55,500 --> 00:12:01,120 So anybody here use NIC2 on a regular basis for doing web application testing? Raise 141 00:12:01,120 --> 00:12:07,940 your hand, please. We can get some kind of count. Okay. And how about Durbuster? A couple more 142 00:12:07,940 --> 00:12:11,880 hands. All right. Okay. So I'd say that was maybe 10 percent. 143 00:12:17,400 --> 00:12:23,680 So if people haven't figured it out yet, NIC2 is just a piece of crap. If you actually look at 144 00:12:23,680 --> 00:12:29,280 what it is, it's just a list of web request URLs that get sent and it has some pattern matching 145 00:12:29,280 --> 00:12:33,240 that comes back. There's no intelligence in it at all. I mean, about the only thing it's 146 00:12:33,240 --> 00:12:38,920 valuable for is testing very broken WAFs. And Durbuster, we're going to talk a little bit more 147 00:12:38,920 --> 00:12:44,780 about Durbuster. So those word lists that you guys are using in your Durbuster tests, if you're 148 00:12:44,800 --> 00:12:48,420 using Durbuster or if you're importing them into another tool, those haven't been updated 149 00:12:48,420 --> 00:12:55,120 since 2007. And if people haven't noticed, the web has moved on since then. And there's a lot of 150 00:12:55,120 --> 00:13:01,140 common words that we see all the time that aren't in those lists. So there's a couple reasons 151 00:13:01,140 --> 00:13:06,600 for this. When those lists were first generated, they were generated by going out to websites and 152 00:13:06,600 --> 00:13:12,180 spidering the website, seeing what directories existed and pulling words down. Well, if you 153 00:13:12,180 --> 00:13:14,780 think about that, you're interested in parts of the web that are not in those lists. You're 154 00:13:14,800 --> 00:13:20,140 interested in parts of the website that don't exist. Not the parts that do. So if you're just 155 00:13:20,140 --> 00:13:25,940 depending on values that come back, you're going to be missing all the stuff that you think you 156 00:13:25,940 --> 00:13:30,980 should find but aren't. And there's a lot of bad words in there, so you're wasting time. 157 00:13:31,220 --> 00:13:37,960 Because search engine optimizers do keyword stuffing, so you're going to end up with all these 158 00:13:37,960 --> 00:13:44,680 strange words that are completely useless. So here are some common words that, you know, we see 159 00:13:44,800 --> 00:13:50,020 in our assessments on web servers that aren't in the small and medium list. I mean, ASP.net, 160 00:13:50,160 --> 00:13:56,440 ASP.net client, that's pretty important. You know, the VTI directories. There's good information 161 00:13:56,440 --> 00:14:00,840 that can be pulled from that. So that's just something to be aware of. I mean, these are common 162 00:14:00,840 --> 00:14:04,820 things that are missing. So if you're depending on these tools and not actually looking at what 163 00:14:04,820 --> 00:14:11,480 they're doing, you have these big blind spots. And this is kind of ‑‑ you know, we were 164 00:14:11,480 --> 00:14:14,780 reviewing the Durr Buster list and we were like, what the heck is this? And we were like, what the 165 00:14:14,800 --> 00:14:20,060 hell is this? Jeremiah Grossman. I mean, I'm sure people know Jeremiah, either through his 166 00:14:20,060 --> 00:14:25,800 reputation or at events like this. You know, when was the last time you found Jeremiah Grossman, 167 00:14:25,800 --> 00:14:31,620 the Jeremiah Grossman directory on your web server? Really? You know? It doesn't make any 168 00:14:31,620 --> 00:14:36,760 sense. Why are you ‑‑ Maybe he just stopped by to say hello. Yeah. The thing I love is 169 00:14:36,760 --> 00:14:44,140 that the ASP.net client isn't in there but Jeremiah Grossman is. Yeah. It's like, really? Does 170 00:14:44,140 --> 00:14:50,260 nobody look at this stuff? So that let us say, well, we need to generate our own word lists. You 171 00:14:50,260 --> 00:14:55,440 know, how do you approach this problem? And we said, well, let's think about some way that we 172 00:14:55,440 --> 00:15:00,440 could go out and find words that people are telling us not to look for. And if you're familiar 173 00:15:00,440 --> 00:15:06,640 with the robots.txt exclusion standard, basically webmasters go through and they mark parts of the 174 00:15:06,640 --> 00:15:11,000 site that they don't want Google spidering. You know, maybe there's sensitive data there or maybe 175 00:15:11,000 --> 00:15:14,120 it's an underlying web application that they don't want to look at. And then they go through and they 176 00:15:14,140 --> 00:15:17,540 look at the web application components. So those are the kind of things that when we're doing 177 00:15:17,540 --> 00:15:22,320 an assessment we're very interested in. So we went through and we pulled down the robots.txt 178 00:15:22,320 --> 00:15:30,440 file from a lot of sites. We combined the Alexa and Quantcast top million site. And pulled 179 00:15:30,440 --> 00:15:38,760 down about 1.7 million ‑‑ we made about 1.7 million requests. And found 350,000 unique files. 180 00:15:38,960 --> 00:15:43,460 And we went through and we generated word lists based on how prevalent certain words were. 181 00:15:44,140 --> 00:15:50,040 So it's kind of like we crowd sourced what people are telling us not to look for. So we've been 182 00:15:50,040 --> 00:15:54,220 using those on our assessments. And we're seeing that we're getting better results back than 183 00:15:54,220 --> 00:15:59,440 when ‑‑ depending on the Durabuster list. So those are out in our SVN on Google code. You can 184 00:15:59,440 --> 00:16:04,080 pull them down. Right now they're just in a 7‑zip file. So pull them down. Look at them. If you 185 00:16:04,080 --> 00:16:08,100 think they suck, there's probably some stuff in there that doesn't make any sense. Let us know. 186 00:16:08,160 --> 00:16:08,640 Give us feedback. 187 00:16:14,140 --> 00:16:19,220 So one of the things that I always like to say is that tools don't find vulnerabilities like 188 00:16:19,220 --> 00:16:26,000 people do. So tools should be there to assist in identification of vulnerabilities, not exactly 189 00:16:26,000 --> 00:16:31,420 point them out. So if you have a tool that's telling you something is vulnerable, the tester has 190 00:16:31,420 --> 00:16:36,620 to have the knowledge to look at that data and say, yep, that's an actual vulnerability or it's 191 00:16:36,620 --> 00:16:42,560 not a vulnerability. So we decided that there's too many tools out there with absolutely no 192 00:16:44,140 --> 00:16:48,020 vulnerability. So that's one of the things that comes to the sort of fuzzing or fault injection 193 00:16:48,880 --> 00:16:55,440 testing of applications. So if you had a ‑‑ like say you were testing for SQL injection and you 194 00:16:55,440 --> 00:17:01,680 have a good SQL injection list that you want to test with different values, with modern 195 00:17:01,680 --> 00:17:06,200 applications, a lot of times those fall down. So if you've right‑clicked on your favorite tool 196 00:17:06,200 --> 00:17:13,940 and said send to, insert semi‑automated testing tool here, if there's a CSERF token that changes, 197 00:17:13,980 --> 00:17:14,120 everything will be fine. But if there's a C‑SERF token that changes, everything will be fine. If 198 00:17:14,140 --> 00:17:16,740 there's an error message every single time the page is laid out, that means every single one of your 199 00:17:16,740 --> 00:17:21,380 tests is going to fail. It's going to come back and say, you know, yep, not vulnerable or 200 00:17:21,380 --> 00:17:25,000 depending on the error message, it may come back, you might be able to identify that. But 201 00:17:25,000 --> 00:17:29,740 that's a big problem. So ‑‑ because often you can use, you know, automated tool, automated 202 00:17:29,740 --> 00:17:34,640 tool, and it might not find an instance of SQL injection that was very easy to find if the 203 00:17:34,640 --> 00:17:38,700 person would have tried to test manually. But they're using these semi‑automated testing 204 00:17:38,700 --> 00:17:42,600 tools and it's failing and they're assuming that they can move on to other tests. 205 00:17:44,920 --> 00:17:49,680 So a smart tool, a smart semi‑automated testing tool should have several components. It 206 00:17:49,680 --> 00:17:53,180 should have session management, obviously, because we want to make sure that our tool is smart 207 00:17:53,180 --> 00:17:58,460 enough to stay in session. It should have sequence building and running. So if you have a 208 00:17:58,460 --> 00:18:02,700 difficult test case, you might need to run a sequence of events prior to sending your test 209 00:18:02,700 --> 00:18:07,940 case and even a sequence of events after you've ran the test case. So, for instance, you may 210 00:18:07,940 --> 00:18:11,740 need to run a sequence of events to log you in, run a test case, and then log out. 211 00:18:11,740 --> 00:18:16,500 There are crazy weird applications like that. A lot of international money transfer 212 00:18:16,500 --> 00:18:22,140 applications have weird functionality like that to try to make them more difficult, I guess. 213 00:18:22,280 --> 00:18:27,480 So security through obscurity. But any tool that can handle those three things can test them 214 00:18:27,480 --> 00:18:33,980 rather easily. Also, content discovery and support for, like, modern technologies. So we all 215 00:18:33,980 --> 00:18:38,820 know that something new comes out, developers want to use it. It always takes testing tools time 216 00:18:38,820 --> 00:18:39,560 to catch up. 217 00:18:42,920 --> 00:18:46,800 So here's our tool. We're going to start talking about how we solve these problems and how 218 00:18:46,800 --> 00:18:51,120 you can use our tool to help you solve some of the same problems. So a little bit of history about 219 00:18:51,120 --> 00:18:55,060 Raft. It was written, it stands for response analysis and further testing, which is actually on 220 00:18:55,060 --> 00:18:57,940 the next slide. I probably shouldn't have said that. But you're probably wondering why there's a 221 00:18:57,940 --> 00:19:04,840 big red raft in the center of the screen right now. So this tool was created because I was on an 222 00:19:04,840 --> 00:19:11,720 engagement and I had to write some custom scripts to test some functionality of a web application. 223 00:19:11,740 --> 00:19:18,260 And I got to thinking, there's this data I'm collecting and I'm looking for something specific. 224 00:19:19,040 --> 00:19:24,320 Quite simply, I wanted to be able to see the data, syntax highlighted. I wanted to be able to see the 225 00:19:24,320 --> 00:19:29,500 data rendered in some sort of web view. And I wanted to be able to parse out scripts and comments 226 00:19:29,500 --> 00:19:36,320 and all the general things. So I created a simple QT interface that allowed me to do that. Of 227 00:19:36,320 --> 00:19:40,780 course, the tool today looks absolutely nothing like the beginnings of it. So. 228 00:19:41,740 --> 00:19:43,600 It used to be just basically a SQLite browser. 229 00:19:44,060 --> 00:19:51,600 Yep. With access, you know, focused towards web technology. So basically it's not an 230 00:19:51,600 --> 00:19:58,100 inspection proxy. So that might throw you for a loop a little bit. But we decided to take a 231 00:19:58,100 --> 00:20:02,700 different route and kind of change that paradigm that everybody's used to. Because if you think 232 00:20:02,700 --> 00:20:07,660 about it, you're just chaining responses through another device or another application. 233 00:20:10,520 --> 00:20:11,000 So. 234 00:20:11,760 --> 00:20:15,740 So that's really important. Because almost all of the work flow that you see on all the other 235 00:20:15,740 --> 00:20:20,260 tools is, well, you'll set up this inspection proxy, use whatever browser you want to go browse 236 00:20:20,260 --> 00:20:24,400 through the site and then come back and look at the tool again. We decided to just cut out that 237 00:20:24,400 --> 00:20:29,840 middle man. And instead, you can import data if you already have it or you can just use the 238 00:20:29,840 --> 00:20:35,340 browser that we have ourselves. So we actually built WebKit right into the thing. So it works 239 00:20:35,340 --> 00:20:41,300 just like your Safari or your Chrome does. And it renders things the same way. So a lot of tools 240 00:20:41,300 --> 00:20:46,380 that have their own browsers, they often have something that's kind of not as full featured or is 241 00:20:46,860 --> 00:20:50,060 just a little weird. This one is going to work just like you expect it to. 242 00:20:51,960 --> 00:20:58,600 We also, a big piece of this is we made a custom analyzer engine so you can write whatever it is 243 00:20:58,600 --> 00:21:03,740 you want to find easily and then run it against all of the stuff you have. It's all open source. 244 00:21:03,940 --> 00:21:09,520 It's Python and QT and it's designed for testers. It's not a fire and forget, click the button and 245 00:21:09,520 --> 00:21:11,280 your report is done tool. This is designed for testing. So it's a fine-tuned device that has a 246 00:21:11,280 --> 00:21:14,720 for someone who already knows how to test web apps, but they just need something to help out. 247 00:21:16,400 --> 00:21:21,040 So now we're going to have the demo. What you've all been waiting for. Yeah, 248 00:21:21,060 --> 00:21:25,420 we got through like the boring technical stuff, so we'll see if we can get this going. 249 00:21:29,620 --> 00:21:33,040 All right. This is the user interface and we're sorry about the screen resolution. 250 00:21:33,360 --> 00:21:40,600 Screen resolution looks like crap. Yeah. So this has a little bit different 251 00:21:40,600 --> 00:21:47,520 workflow like Nathan talked about. This started out as a way to look at data from other data 252 00:21:47,520 --> 00:21:52,360 sources. We have our own capture format that we have defined. It's an XML based format. 253 00:21:52,620 --> 00:22:00,220 And we have provided a DTD for you and there's a URLib2 module for people that do Python that you 254 00:22:00,220 --> 00:22:05,700 can just plug it in as a processor and it automatically generates this format. So we'll look 255 00:22:05,700 --> 00:22:10,340 at some data we've captured and, you know, I just want to point out here there's we're off 256 00:22:10,600 --> 00:22:14,820 the Internet anyway, but there's an important thing that we discovered is when you're looking 257 00:22:14,820 --> 00:22:20,320 at rendered data from old assessments, you know, you may have a limited time window for your 258 00:22:20,320 --> 00:22:23,580 testing. You're not supposed to be interacting with the site. So we have this black hole 259 00:22:23,580 --> 00:22:27,620 network. So if you're looking at old response data, there's no traffic being sent out to the 260 00:22:27,620 --> 00:22:34,520 Internet. But when you have captured data, if you have all the references, all the images, 261 00:22:34,660 --> 00:22:40,280 anything that was originally referenced, then the built in rendering will pull that out of your 262 00:22:40,600 --> 00:22:47,080 data and display the web pages that originally existed. We have responses. Here, I'll zoom 263 00:22:47,080 --> 00:22:53,600 this in so you guys can see. We have the zoom feature, which is really handy. You can see the 264 00:22:53,600 --> 00:23:00,020 request, the response. I don't know if there's any scripts on this, but we pull them out. I'll 265 00:23:00,020 --> 00:23:07,300 find some with comments. Links, we pull out all the links. So you get a quick view of what all the 266 00:23:07,300 --> 00:23:10,580 references are. Any form values. You can see that there's a lot of information in here. You can 267 00:23:10,600 --> 00:23:17,080 get those. We kind of go through and parse out of the DOM and generate the list of forms. And 268 00:23:17,080 --> 00:23:20,740 then one of the really handy features, you know, if you do a lot of assessments, especially with 269 00:23:20,740 --> 00:23:25,380 highly dynamic applications, you know that you have to do view source a lot, view generated 270 00:23:25,380 --> 00:23:30,660 source. So we have the generated source that we render the page and pull out of the DOM. And 271 00:23:30,660 --> 00:23:36,220 any of these, like, references, like links and forms that are dynamically added, those also get 272 00:23:36,220 --> 00:23:39,200 included here. So that's pretty handy. 273 00:23:41,080 --> 00:23:47,320 So that's imported data. We also support from the wrap format. We also support burp logs, burp 274 00:23:47,320 --> 00:23:53,800 state files. If you use burp pro, you know the saved state files. And the XML, saved XML. And 275 00:23:53,800 --> 00:23:59,960 web scare in Paris, message log formats. We don't do their storage. But we're working on that 276 00:23:59,960 --> 00:24:08,080 because it's not a good interface. We also have our own built-in web browser. So you can go and 277 00:24:08,080 --> 00:24:10,580 pull up sites. Let me copy this. I'm not sure if you can see it. I'm not sure if you can see it. 278 00:24:11,080 --> 00:24:18,920 Let me just type that in. Don't get into my porn. 279 00:24:19,320 --> 00:24:26,140 Yeah. Definitely. So we just have an instance of the broken web applications running locally 280 00:24:26,140 --> 00:24:30,700 here. So this is a simplistic ‑‑ I don't know why I'm bending over like that. 281 00:24:30,780 --> 00:24:35,580 That just looks strange. This is a simplistic view of our browser. It's made as a proof of 282 00:24:35,580 --> 00:24:38,860 concept. So in the future, we're going to have ‑‑ Yeah, there is ‑‑ and there is ‑‑ the 283 00:24:38,860 --> 00:24:40,580 question we got the most is, there is a back bug in the browser? Yeah, there is a back bug. 284 00:24:40,600 --> 00:24:44,460 You just have to right click in the page to go back. That's terribly intuitive. 285 00:24:44,840 --> 00:24:48,820 We understand. Yeah. We definitely have some UI. You know, we're not 286 00:24:48,820 --> 00:24:54,260 GUI designers. So we have some UI inconsistencies. So you just have to work through those. 287 00:24:54,360 --> 00:25:01,560 But as ‑‑ close that. And if you ‑‑ if I scroll down here, we'll see that those ‑‑ any 288 00:25:01,560 --> 00:25:10,580 requests that we've been making ‑‑ yeah. We have a zoomed in view. So those requests that we've 289 00:25:10,600 --> 00:25:16,640 just making are now being saved in our storage. We use SQLite in the back end. So those are 290 00:25:16,640 --> 00:25:25,420 just getting saved to a local storage database. Other interesting tools, we have a little 291 00:25:25,420 --> 00:25:29,280 search engine. You know, you can go through and type in, like, let's say you want to look for 292 00:25:29,900 --> 00:25:40,240 HTML comments. So this one will have some comments in there. And we offer, you know, a variety 293 00:25:40,240 --> 00:25:40,580 of stuff. So you can see, you know, if you want to look for HTML comments, you can do that. 294 00:25:40,600 --> 00:25:47,440 You can search routines. There's a built‑in differ. Let's see if I can find some pages that are 295 00:25:47,440 --> 00:25:58,860 similar. No. I'll just pick two that aren't. Just so you can see the differences. 296 00:26:08,060 --> 00:26:09,660 Yeah. This is like a really bad example. 297 00:26:11,220 --> 00:26:15,680 It's syntax highlighted. It's using the built‑in diff live in Python if you're familiar with 298 00:26:15,680 --> 00:26:24,460 that. So it's based on word matching and not byte positions. We're going to cover some of these 299 00:26:24,460 --> 00:26:30,740 things, like the analyzer. The requester, you know, like simple tasks. Like requesting a whole 300 00:26:30,740 --> 00:26:36,580 bunch of URLs that other ‑‑ you know, like going through and saying, well, copy my site, Matt, 301 00:26:36,700 --> 00:26:40,580 and re‑request them with a different authentication sequence. That's, like, really tough to do in 302 00:26:40,600 --> 00:26:45,140 a lot of tools. But, you know, here we have it all templated out. And you just copy the URLs in 303 00:26:45,140 --> 00:26:51,180 here, pick a sequence and re‑run it. Our crawler is a little bit different. It has the traditional 304 00:26:51,180 --> 00:26:56,880 web spidering approach. But in addition to just pulling down and analyzing the raw HTML, it also 305 00:26:57,360 --> 00:27:02,360 renders anything. So highly dynamic web applications that, you know, that are based on Ajax or some 306 00:27:02,360 --> 00:27:07,380 other rich client technology, we can go ahead and pull out any dynamically generated links and 307 00:27:07,380 --> 00:27:10,580 follow those. We generate mouse events. We can do a lot of different things with that. We can 308 00:27:10,600 --> 00:27:15,600 do mouse events, text events, submit forms, do clicking, all on dynamically generated basis. 309 00:27:17,060 --> 00:27:24,600 We have an encoder. Probably the most interesting thing was UTF‑7, generating malformed UTF‑7. 310 00:27:24,820 --> 00:27:28,980 There's a lot of WAFs out there that check for UTF‑7 and cross‑site scripting attacks, but they 311 00:27:28,980 --> 00:27:35,000 don't check for malformed versions. And web browsers are more than happy to render UTF‑7 if it's 312 00:27:35,000 --> 00:27:40,580 malformed. We have a data bank. It's going to hook into the system. It's going to be able to 313 00:27:40,600 --> 00:27:45,300 use both the spidering and any sort of sequence if you do replacement, dynamic data replacement. 314 00:27:45,720 --> 00:27:54,680 We'll cover that a little later. Site map. You get a view of the site. Cookies. In addition to 315 00:27:54,680 --> 00:28:02,060 your traditional cookies, we also have off‑reviews of flash cookies. So this is pretty 316 00:28:02,060 --> 00:28:06,640 uninteresting. Nathan cleaned all the porn off his machine, so all this flash cookies got 317 00:28:06,640 --> 00:28:10,580 deleted. Right now you can only view them, but we're going to give you the ability to see them 318 00:28:10,600 --> 00:28:15,100 and edit them. That's really important, like if you're testing risk‑based ‑‑ applications with 319 00:28:15,100 --> 00:28:20,060 risk‑based log‑ins that are storing data in those flash cookies, getting a good way to go in 320 00:28:20,060 --> 00:28:26,580 there and edit those values. And HTML5 local storage. I'll go through a little bit of a demo of 321 00:28:26,580 --> 00:28:31,520 that later. And that's about it for now. We're going to start covering some of the other 322 00:28:31,520 --> 00:28:40,140 interfaces. JROC doesn't know how to use a Mac, so ‑‑ Sorry, guys. 323 00:28:40,200 --> 00:28:40,580 ‑‑ we have to drive it. I'm sorry. 324 00:28:40,600 --> 00:28:47,880 So as the regular consultant, I get all the boring slides, too. So we run on Mac, 325 00:28:47,980 --> 00:28:53,240 we run on Linux, we run on Windows. We've ‑‑ Mac works pretty well. Windows, you've got to do 326 00:28:53,240 --> 00:28:56,880 some compiling. I'm not going to go into the boring details. The easiest way to use this right 327 00:28:56,880 --> 00:29:03,860 now, if you have backtrack 5, you have to do one app get install of Q scintilla and then just 328 00:29:03,860 --> 00:29:09,800 download our stuff and it works. We've been trying to keep everything that we need packaged in 329 00:29:09,800 --> 00:29:10,580 with it. There's just a few things that we've been trying to do. We've been trying to keep 330 00:29:10,600 --> 00:29:18,100 a few things that we don't, but this is the list. It's up right now in Google code. We will 331 00:29:18,100 --> 00:29:23,400 eventually have packages, so for those of you on Mac and Linux and Windows, it's easier for you 332 00:29:23,400 --> 00:29:32,280 to just download it and run it. And please, please, so how many of you are web application 333 00:29:32,280 --> 00:29:38,140 testers like us? Show of hands. Rough. Okay. How about functional testers of things that might 334 00:29:38,140 --> 00:29:39,360 use tools like this for security? 335 00:29:40,280 --> 00:29:44,280 A couple more. Okay. Who knows how to write documentation? 336 00:29:46,320 --> 00:29:51,620 We need those guys, too. So all you guys that are testers, whether it's functional or 337 00:29:51,620 --> 00:29:56,280 application, your specialty is telling developers how much their software sucks. So we need your 338 00:29:56,280 --> 00:30:01,880 help in telling us bug reports on what goes wrong and then hopefully some help on how to fix it, 339 00:30:01,900 --> 00:30:04,920 too. But even if you just tell us what went wrong, that would be great. Yeah, you're probably 340 00:30:04,920 --> 00:30:08,620 going to want to wait like a week or two so we can get back from Vegas and fix some of the 341 00:30:08,620 --> 00:30:13,520 problems that we found while we've been out here. You know, we're like 12th hour development, 342 00:30:13,660 --> 00:30:17,160 like running down, you know, ten minutes before we had to present writing code. So, you know, 343 00:30:17,160 --> 00:30:21,200 that's the way it goes. Yeah. We presented at Black Hat and we didn't see the outside of our 344 00:30:21,200 --> 00:30:27,200 hotel room pretty much the whole time. Okay. So now we're on to the analysis engine. 345 00:30:27,500 --> 00:30:36,280 Right? It's obviously in the title. This is a big portion of Raft. We wanted something that would 346 00:30:36,280 --> 00:30:38,600 actually analyze everything that we currently have. So we wanted something that would actually analyze 347 00:30:38,600 --> 00:30:42,020 what we currently had. Right? I don't want to have to spider the site again to figure out if 348 00:30:42,020 --> 00:30:46,540 there are comments that may, you know, have some data that are interesting. Yeah, I can go back 349 00:30:46,540 --> 00:30:50,660 through the burp state or whatever, but it's, you know, you always find yourself writing another 350 00:30:50,660 --> 00:30:55,120 manual tool to pull more data down. But if I've already got all that data, let's actually just 351 00:30:55,120 --> 00:31:01,280 analyze what's there. So our model here for analysis is something modular. Right? We want to be 352 00:31:01,280 --> 00:31:07,360 able to, you know, write one time and have it analyze all this data that we have. We want to be 353 00:31:07,360 --> 00:31:12,740 able to analyze sessions as a whole, not just, you know, single request responses. You know, if the 354 00:31:12,740 --> 00:31:18,400 first request is different from the last request, but we made the same ‑‑ or the responses are 355 00:31:18,400 --> 00:31:23,420 different, but we made the same request, we want to know that and we want to know why. So we want 356 00:31:23,420 --> 00:31:27,960 to find what others ignore. We want to look at timings, like how long it takes a page to respond. 357 00:31:28,940 --> 00:31:33,360 We want to do some image analysis. If you guys have looked at Google images lately, they now 358 00:31:33,360 --> 00:31:37,340 actually pull out exit data and will display where exactly a page is. So we want to be able to 359 00:31:37,360 --> 00:31:41,640 see where an image was taken or what camera was used for it, that type of information. And 360 00:31:41,640 --> 00:31:45,820 that's not something you typically look at during an assessment. But it could be useful information, 361 00:31:46,040 --> 00:31:49,800 especially for a social engineering engagement. Something along those lines. So the 362 00:31:49,800 --> 00:31:56,580 possibilities are really endless. These analyzers are extremely easy to write. Let me show you at 363 00:31:56,580 --> 00:32:03,560 least the demo, right? I guess we've got anal going on right now. But right now there's nothing 364 00:32:03,560 --> 00:32:07,340 in the analyzer. We haven't run the analysis or the analyzer in the analyzer. We haven't run the 365 00:32:07,360 --> 00:32:16,060 analyzers yet. But we are looking at actually hooking some of the scanner and fuzzers into the 366 00:32:16,060 --> 00:32:22,760 analyzer so it would kick off specific analyzers when we make a request and things like that. But 367 00:32:22,760 --> 00:32:28,060 currently we have to actually click this circle button up here which runs the analysis and we get 368 00:32:28,060 --> 00:32:33,080 back, in this case, 120 results. Now, these analyzers, this is currently what we've written. 369 00:32:33,260 --> 00:32:37,340 Some are in, you know, flux. Some do more than others do. Some do more than others do. And 370 00:32:37,880 --> 00:32:41,420 we've got, you know, we're looking for error messages, insecure cookies, I mean, the low 371 00:32:41,420 --> 00:32:47,120 hanging fruit, what's currently out there. We're analyzing some redirects to see, you know, if 372 00:32:47,120 --> 00:32:51,880 there is more information behind a redirect than is actually displayed to the browser. I mean, 373 00:32:51,900 --> 00:32:55,360 your browser takes a redirect, it just takes you to the next page. But I've seen applications 374 00:32:55,360 --> 00:33:02,700 where people actually allow you to spider the admin section because the developers didn't write 375 00:33:02,700 --> 00:33:07,340 the redirect portion of the application correctly. Timing analysis, you know, we're looking at 376 00:33:14,220 --> 00:33:20,560 the denial of service pages, you know, anything that would cause the server itself to spin longer 377 00:33:20,560 --> 00:33:25,860 and to take up more cycles so we could, you know, potentially execute a denial of service attack. 378 00:33:26,060 --> 00:33:31,260 So these are ones that we've currently written. If you've got other ideas for what can be 379 00:33:31,260 --> 00:33:37,340 implemented, let us know. We did implement simple rejects and we're going to do a couple of 380 00:33:37,340 --> 00:33:43,320 strings. So all you have to do is change the configuration, add your regular expression that 381 00:33:43,320 --> 00:33:47,920 you want to look for in all of these requests and it will display them to you. So currently I 382 00:33:47,920 --> 00:33:52,760 think we've got, you know, we're looking for personal information. So in Altaro mutual, we 383 00:33:52,760 --> 00:33:57,760 found some private information here, you know, a phone number. It will actually tell us in the 384 00:33:57,760 --> 00:34:03,160 response, I believe. Yeah. So it finds the phone number and it will show it to you. So it's easy 385 00:34:03,160 --> 00:34:07,320 to scope through there. And I think when we were building this, you know, we had a lot of 386 00:34:07,340 --> 00:34:10,860 problems with this. We decided, hey, we want to know if XSS has been found. It took us all 20 387 00:34:10,860 --> 00:34:17,620 minutes to write the XSS finder to see if an alert box popped and if it did, then if it was in 388 00:34:17,620 --> 00:34:23,880 the request, then XSS is obviously within the application. And we'll get ‑‑ we'll do an 389 00:34:23,880 --> 00:34:32,260 example of that in just a minute. Yeah. So that's the analysis engine. Jump back over to 390 00:34:32,260 --> 00:34:37,320 keynote. So a little bit about our smart test environment. We're going to talk a little bit 391 00:34:37,340 --> 00:34:41,240 about testing components because we basically so far we've been talking about data you've 392 00:34:41,240 --> 00:34:44,860 already collected. So now you've already collected the data, you want to do some additional testing 393 00:34:44,860 --> 00:34:51,160 based on the data you've collected. So we created a requester and a fuzzer and those are 394 00:34:51,160 --> 00:34:55,240 templatized and we'll get into those in a second. We're about to do the demo. But we also have 395 00:34:55,240 --> 00:35:00,680 the ability to run sequences. So you can launch the sequence builder, build your sequence out and 396 00:35:00,680 --> 00:35:06,740 then import it into or just select it from the drop‑down box when you're doing your testing. And 397 00:35:07,340 --> 00:35:12,460 we have a browser object. So that browser object can be utilized during the testing as well. 398 00:35:15,400 --> 00:35:21,020 So this templating approach is probably better just to show you versus explain about it. 399 00:35:28,120 --> 00:35:37,320 So we'll go through a simple example of using the templated approach to fuzzing. So we'll 400 00:35:38,680 --> 00:35:48,120 grab our URL here. Make a request for the resource. So we want to actually replay this 401 00:35:48,120 --> 00:35:53,540 request first. So we're just using the open ‑‑ OOS broken web application. We know that this is 402 00:35:53,540 --> 00:35:57,580 vulnerable to XSS so it's a good place to test. Yeah. And we're using our own built‑in web 403 00:35:57,580 --> 00:36:01,420 browser. So any of the requests that you make through here end up in your data set automatically. 404 00:36:02,880 --> 00:36:07,200 So here's the request that I just made. The name equals test. Easy enough to send that over 405 00:36:07,200 --> 00:36:13,380 to the web fuzzer. And as you can see, the templates here, so there's, you know, some 406 00:36:13,380 --> 00:36:19,520 automatic templates. But there's a payload drop‑down box for, you know, where you want the 407 00:36:19,520 --> 00:36:24,200 payload to go. And here's the mapping screen. So you can map payload names to different sources. 408 00:36:24,580 --> 00:36:28,440 Yes, the two in there are hard‑coded. That will not be hard‑coded for long. We needed something 409 00:36:28,440 --> 00:36:33,440 for the demo. So we'll have a directory where you can load all your favorite lists and those will 410 00:36:33,440 --> 00:36:37,160 be automatically available to you in the interface. So ‑‑ go ahead. Yeah. 411 00:36:37,200 --> 00:36:43,460 So in this case, I need to fuzz the name equals test variable. So I'll add the marker just 412 00:36:43,460 --> 00:36:48,760 there at the end of the URL. This will be explained better in our documentation. So ‑‑ 413 00:36:48,760 --> 00:36:53,760 because we're working this out right now. Our copious documentation at this point. 414 00:36:53,940 --> 00:36:57,800 Yes. All right. So all we have to do is start the attack. You see it went really quick. 415 00:36:58,000 --> 00:37:01,240 Again, you know, these are hard‑coded lists. We have ‑‑ you know, it's not everything and 416 00:37:01,240 --> 00:37:07,180 anything. But you can actually view the results, what it did, all of them that it sent. And then 417 00:37:10,160 --> 00:37:17,940 we can look at them separately or we can go back and look at them in the response view. Now, at 418 00:37:17,940 --> 00:37:21,980 this point, you know, we've done these tests. We want to see if it found any XSS. So we're going 419 00:37:21,980 --> 00:37:29,340 to run the analyzer again. And now we have instead of 120 results from the first run that we did, 420 00:37:29,420 --> 00:37:36,880 we've got 162. And all those are in the XSS finder. It looks like we've got a couple here. 421 00:37:37,200 --> 00:37:42,460 If I actually render the page and it was successful, I get the XSS pop‑up. Because I am rendering 422 00:37:42,460 --> 00:37:45,500 it. I mean, we're actually running the web kit engine behind the scenes. 423 00:37:47,420 --> 00:37:57,240 Okay. So we're going to have a sequence fuzzer. And we were looking at his laptop. It's 424 00:37:57,240 --> 00:38:02,280 kind of funny because it locked on us. So we don't know where we are. So we're going to have a 425 00:38:02,280 --> 00:38:05,980 sequence fuzzer. And that sequence fuzzer is going to allow you to tag data in sequences. We call 426 00:38:07,200 --> 00:38:12,340 it a sequence of events. So you can import a sequence of events, tag that CSERV token, that 427 00:38:12,340 --> 00:38:17,400 elusive CSERV token that's making all of your requests fail. You can tag that and then place it 428 00:38:17,400 --> 00:38:24,640 into your payload. So now all of those previous tests that you were running that were failing 429 00:38:25,060 --> 00:38:33,120 will now become successful. And in the future, we're going to have the ability to do any kind of 430 00:38:33,120 --> 00:38:37,180 dynamic data on the DOM. So the really, really, really, really, really difficult to test 431 00:38:37,200 --> 00:38:41,340 applications. You'll now have visibility into doing those without having to do them by hand. 432 00:38:43,920 --> 00:38:49,260 Yeah. So I'll just do a quick sequence builder demo. This is obviously not completely 433 00:38:50,040 --> 00:38:55,900 functional yet. But at least give you an idea. Because we're still in the process of getting our 434 00:38:55,900 --> 00:39:03,720 dynamic data replacement features to work. So here we have a pretty typical log in form. We'll 435 00:39:03,720 --> 00:39:04,760 just log in. Foo foo. 436 00:39:10,500 --> 00:39:17,780 As that's submitting, we should start seeing cookies getting captured. If that ever comes back. 437 00:39:19,360 --> 00:39:20,980 We'll see the parameters. The network is down. 438 00:39:21,160 --> 00:39:26,760 The network is down, yeah. The local network. We're in bad shape. But you can come through 439 00:39:26,760 --> 00:39:36,020 here. And by default, any sort of media responses are excluded from sequences. This is where you 440 00:39:36,020 --> 00:39:37,180 configure the dynamic data replacement. 441 00:39:37,700 --> 00:39:41,160 We're going to offer the ability to run the sequence in a web browser so you can literally 442 00:39:41,160 --> 00:39:46,460 render the whole thing. You know, we discussed earlier about some of the session state problems. 443 00:39:46,780 --> 00:39:51,320 So we offer both an in session pattern and an out of session pattern so that you can figure out, 444 00:39:51,460 --> 00:39:57,340 well, do I have some specific request that's causing a problem. So let's see. I think I'll log out. 445 00:39:57,940 --> 00:40:07,140 Log out. People that are leaving are going to be really upset because we're giving away free 446 00:40:07,140 --> 00:40:07,180 data. So we're going to have to figure out how we're going to do this. We're going to have to 447 00:40:07,200 --> 00:40:11,500 find some of these cookies. Yeah. What am I looking for here? 448 00:40:12,280 --> 00:40:13,400 Log in? Log out? 449 00:40:15,660 --> 00:40:16,580 Could be. 450 00:40:17,420 --> 00:40:18,320 No, it's log out. 451 00:40:18,620 --> 00:40:19,040 All right. 452 00:40:19,080 --> 00:40:24,800 So if you've configured other tools, sometimes it can be a pain to figure out. So we actually 453 00:40:24,800 --> 00:40:27,920 search through it dynamically and mark it up for you. 454 00:40:32,760 --> 00:40:33,220 Yep. 455 00:40:33,220 --> 00:40:39,820 Yep. So how many people in here would like to search for DOM-based XSS without having to use 456 00:40:40,280 --> 00:40:46,340 a browser plug-in or having to send your website to some application off on the web and have it 457 00:40:46,340 --> 00:40:51,260 test? Anybody? That should be pretty much everybody. So we have a built-in DOM fuzzer so 458 00:40:51,260 --> 00:40:56,220 it's integrated into our tool so we can identify things like DOM-based cross-site scripting 459 00:40:56,220 --> 00:41:04,540 without you having to use another tool. We're going to do a demo of that right now. So I 460 00:41:04,540 --> 00:41:10,820 have imported a couple of web pages that are, I know, vulnerable to DOM-based cross-site 461 00:41:10,820 --> 00:41:18,980 scripting because I wrote them. I'll show you their response here. So if you look in the 462 00:41:18,980 --> 00:41:26,100 response, it just does a simple ‑‑ let's zoom this out a little bit. This 463 00:41:26,220 --> 00:41:32,560 resolution is just killing us. So it's just doing a document dot right location dot HRF so 464 00:41:32,560 --> 00:41:36,700 that's going to be vulnerable in some circumstances. This one is also doing something 465 00:41:36,700 --> 00:41:44,240 similar. Yeah, this is doing an un-escape. So if you come over, our DOM fuzzer is very basic, 466 00:41:44,720 --> 00:41:50,560 but it still finds stuff. So if you look at these tests, we've generated some unique script 467 00:41:50,560 --> 00:41:56,200 statements. Those are quite common. An alert that would go into a string, you can see that it's 468 00:41:56,200 --> 00:42:01,760 if you're doing a string and a pattern that's going to be pretty much unique on the page. 469 00:42:01,980 --> 00:42:12,740 So what we'll do is we'll go through and run the fuzzer based on the ‑‑ that is the 470 00:42:12,740 --> 00:42:20,140 absolute first time that that's happened, I swear. You know, that sounds like a joke, 471 00:42:20,180 --> 00:42:24,620 but it is the first time it's ever done that. So I guess we need to fill out some bug reports 472 00:42:24,620 --> 00:42:29,440 ourselves. Yeah, I guess so. So what this is doing is it's taking the saved HTML data and 473 00:42:29,440 --> 00:42:35,420 it's loading it into an instance of web kit and it's setting the base URL to the modified 474 00:42:35,420 --> 00:42:40,600 value. So this is not making any sort of network requests at all. But it's still replaying 475 00:42:40,600 --> 00:42:46,720 those values and rendering it as if it was on the original site. So we should start seeing 476 00:42:46,720 --> 00:42:50,940 some results coming through and we're doing a couple of matches here. The first one is 477 00:42:50,940 --> 00:42:54,600 high. We hook the alert box. So if we see an alert box, pop in the alert box, pop in the 478 00:42:54,600 --> 00:42:58,280 alert box, pop up with that number in there, we say, bang, found some DOM‑based cross‑site 479 00:42:58,280 --> 00:43:04,680 scripting. In other cases, we're just looking for pattern matches in the rendered DOM content. 480 00:43:05,100 --> 00:43:09,300 So like if we look at this guy, you can see that's written out. And if we render it, boom, 481 00:43:09,380 --> 00:43:14,980 right there. So we found DOM‑based cross‑site scripting without sending any network traffic 482 00:43:14,980 --> 00:43:24,580 at all. And ‑‑ is it ‑‑ are we ‑‑ yeah. Okay. So this we have set up in the 483 00:43:26,580 --> 00:43:29,800 HTML5 demo. And we're going to try ‑‑ I'm going to try it if this works. 484 00:43:29,940 --> 00:43:33,620 Uh‑oh. Yeah. I'm not sure if it's going to work. 485 00:43:33,620 --> 00:43:39,840 So one thing tools don't normally do is give you visibility into things like LSOs and allow 486 00:43:39,840 --> 00:43:42,860 you to modify those to test to see what would happen. 487 00:43:43,060 --> 00:43:53,940 Yeah. This is kind of a twitchy one. So the HTML5 demos, if I look at this and render 488 00:43:53,940 --> 00:43:54,340 it. 489 00:44:01,460 --> 00:44:13,140 So if you come over here, you should see the local storage now has a value in it. Yep. 490 00:44:14,080 --> 00:44:18,160 So if we set that ‑‑ and this is the part that doesn't always work. 491 00:44:19,160 --> 00:44:20,400 You're not supposed to tell them. 492 00:44:20,460 --> 00:44:23,940 Yeah. Well, like we said, this is still kind of a work in progress. 493 00:44:24,460 --> 00:44:29,980 But think, no other tool allows you to do this. So being the only one and it kind of 494 00:44:29,980 --> 00:44:34,040 sucks right now is better than being ‑‑ Yeah. Yep. 495 00:44:35,100 --> 00:44:38,880 You may disagree and that's okay. Yeah, that didn't work. So we'll switch 496 00:44:38,880 --> 00:44:43,120 back over. What happens is it gets cached, the browser is caching that local storage 497 00:44:43,120 --> 00:44:49,880 reference in. We're directly modifying it through SQLite. So you don't get to see it. 498 00:44:50,000 --> 00:44:53,920 So here's the way it actually should look. Here's the time that it did work. Yeah. It's 499 00:44:53,920 --> 00:44:58,780 fine. It works every time. You just have to restart it, which is annoying. So you modify 500 00:44:58,780 --> 00:45:02,860 the value and then when you go back and re‑ render the page, you get the pop‑up box. 501 00:45:03,080 --> 00:45:07,820 So that's actually modifying the local storage. And some people ask us, well, what is the 502 00:45:07,820 --> 00:45:11,260 attack scenario there? And we say, well, it's really no different than any other situation 503 00:45:11,260 --> 00:45:17,700 where one part of an application accepts data and it doesn't properly sanitize it. And then 504 00:45:17,700 --> 00:45:21,300 it gets replayed later. So let's say you have a web page that's storing some sort of user 505 00:45:21,300 --> 00:45:23,900 preference in a client‑side storage. I mean, that's not going to work. It's not going to 506 00:45:23,900 --> 00:45:26,580 work. And developers are starting to use this and not even realize it. Like they're 507 00:45:26,580 --> 00:45:31,460 importing J storage and using it without understanding where these values are actually being stored. 508 00:45:32,040 --> 00:45:35,560 And then later you come back and it pulls it out of there and it doesn't encode it or 509 00:45:35,920 --> 00:45:40,300 sanitize it. And then you have cross‑ site scripting. So let's say you do some sort 510 00:45:40,300 --> 00:45:44,500 of forced browsing to send a value to that web page and get it saved and then force the 511 00:45:44,500 --> 00:45:48,820 user to re‑ render that page and they themselves find out to be vulnerable. 512 00:45:49,780 --> 00:45:53,880 So we have some more slides and we have no more time. So what we're going to do is we're 513 00:45:53,900 --> 00:45:55,560 going to go through some of the stuff we weren't able to cover. As far as documentation 514 00:45:55,560 --> 00:46:03,120 goes, there's some on the project page as well as our slides. And a copy of these slides 515 00:46:03,120 --> 00:46:12,000 is already available on our project page. So if you have any questions, now is the time 516 00:46:12,000 --> 00:46:18,320 to ask them. We're actually going to be in the Q&A room as well. So we can actually go 517 00:46:18,320 --> 00:46:23,880 through some of the stuff we weren't able to cover. So thank you for coming out. We hope you 518 00:46:23,900 --> 00:46:28,980 use the tool. Please submit bug reports. Please submit feature requests. We had some people 519 00:46:28,980 --> 00:46:33,500 come up to us and say that they don't code but they'd like to help out. Well, we need 520 00:46:33,500 --> 00:46:36,180 people to submit bug reports and help us with documentation. 521 00:46:36,180 --> 00:46:37,200 Yeah, write docs, please. 522 00:46:38,100 --> 00:46:40,360 Oh, and we aren't an inspection proxy. 523 00:46:41,500 --> 00:46:41,980 Thanks.