1 00:00:00,000 --> 00:00:01,940 All right. How's it going, everybody? 2 00:00:04,020 --> 00:00:07,440 Last talk for the day at DEF CON. You guys having fun? 3 00:00:09,880 --> 00:00:10,480 Drunk yet? 4 00:00:12,380 --> 00:00:13,620 Psychoholics. Fuck yeah. 5 00:00:13,880 --> 00:00:17,500 All right. So, I'm Adam Baldwin. 6 00:00:18,920 --> 00:00:20,540 No, thank you. 7 00:00:22,920 --> 00:00:25,420 I am definitely not this Adam Baldwin. 8 00:00:25,500 --> 00:00:29,680 If you were here to see that Adam Baldwin, it is at the pool on the roof. 9 00:00:31,840 --> 00:00:34,780 So, I'm this Adam Baldwin. I'm the Chief Security Officer at AndYet. 10 00:00:34,900 --> 00:00:40,860 I'm the security lead for SideBrand, LiveSecurity, and I'm on Twitter at Adam underscore Baldwin. 11 00:00:42,200 --> 00:00:44,660 And we're going to blow through a lot of slides. 12 00:00:44,820 --> 00:00:47,280 I think I've got 59 slides in 20 minutes plus two demos. 13 00:00:47,580 --> 00:00:49,260 So, let's go fast. 14 00:00:50,440 --> 00:00:52,740 We're going to talk about what blind cross-site scripting is, 15 00:00:53,000 --> 00:00:58,000 how I'm using it in penetration tests, some challenges with blind cross-site scripting, 16 00:00:58,000 --> 00:00:59,620 the introduction of the tool. 17 00:01:00,000 --> 00:01:07,220 XSS.io and I'll make it public after the talk and some special surprises if I don't run over. 18 00:01:08,800 --> 00:01:11,560 So, what the fuck is blind cross-site scripting? 19 00:01:12,280 --> 00:01:15,160 Right? It seems like something I made up. I did. 20 00:01:15,760 --> 00:01:19,560 Actually, I've seen it mentioned before, but it's really just a variant of cross-site scripting. 21 00:01:19,720 --> 00:01:22,540 So, let's talk about cross-site scripting first just to give people in the crowd, 22 00:01:23,160 --> 00:01:25,240 if you're not familiar with cross-site scripting, a little overview. 23 00:01:25,540 --> 00:01:27,280 It comes in three variants, right? 24 00:01:27,660 --> 00:01:29,840 Reflected, persistent, stored, or... 25 00:01:30,360 --> 00:01:30,840 DOM. 26 00:01:31,500 --> 00:01:38,320 So, reflected is, part of your query parameter is reflected back into the HTML and rendered in your browser. 27 00:01:38,860 --> 00:01:46,320 It's reflected basically back, the client's sending it, it's getting, the document's getting manipulated and sent back and rendered. 28 00:01:46,780 --> 00:01:56,800 Persistent, that payload is getting stored somewhere, getting rendered back into the client and then getting sent back to the client and rendered at a future point in time. 29 00:01:56,980 --> 00:01:59,980 And then DOM, where all of that is basically happening at the same time. 30 00:02:00,000 --> 00:02:06,320 The actual client side, the actual, it's being manipulated client side rather than the actual document or anything being stored. 31 00:02:07,680 --> 00:02:10,260 If you want to know more, there's plenty of information out there. 32 00:02:10,420 --> 00:02:12,140 That's not what we're going to talk about. 33 00:02:12,460 --> 00:02:17,420 We're talking about a specific variant of persistent or stored cross-site scripting, right? 34 00:02:17,800 --> 00:02:23,920 And where I saw blind cross-site scripting mentioned first was an Acunetics blog post from years back. 35 00:02:24,800 --> 00:02:27,300 But it's also known as, like, authenticated XSS. 36 00:02:27,480 --> 00:02:29,980 Basically, what we're doing with blind cross-site scripting... 37 00:02:29,980 --> 00:02:34,440 is we're throwing a bunch of payloads out there into various 38 00:02:34,440 --> 00:02:38,940 points in the application and we are looking to see if we get any 39 00:02:38,940 --> 00:02:43,740 response back. So blind cross hits, I'm just going to stop 40 00:02:43,740 --> 00:02:48,800 saying that. Blind cross hits. Blind. It's a different 41 00:02:48,800 --> 00:02:52,580 challenge. It's not like blind SQL injection where you actually 42 00:02:52,580 --> 00:02:56,500 get some type of immediate feedback, timing or response, 43 00:02:57,220 --> 00:03:00,900 alerts, whatever. You have no idea where your payload is going 44 00:03:00,900 --> 00:03:03,040 to end up. You don't know whether your payload is going to 45 00:03:03,040 --> 00:03:07,160 execute or when. So you have to think ahead about what you want 46 00:03:07,160 --> 00:03:10,580 to accomplish with basically store cross hit scripting. What 47 00:03:10,580 --> 00:03:15,660 do you actually want to get out of what you're doing? And the 48 00:03:15,660 --> 00:03:20,540 key piece here, and this is what XSS.io provides, is you have to 49 00:03:20,540 --> 00:03:24,520 be listening. You have to listen and listen forever. Because 50 00:03:24,520 --> 00:03:26,480 that input is going to persist someplace else. You have to 51 00:03:26,480 --> 00:03:28,180 listen to the database and some database and at some point in 52 00:03:28,180 --> 00:03:31,580 time some developer is going to screw up and render that in some 53 00:03:31,580 --> 00:03:35,260 browser someplace not properly encoded. It's going to happen. It 54 00:03:35,260 --> 00:03:41,540 happens all the time. So what I like to think about blind cross 55 00:03:41,540 --> 00:03:47,300 hit scripting is the Carly Rae Jepsen of cross hit scripting 56 00:03:47,300 --> 00:03:52,020 attacks. It's call me maybe, right? You might get a call 57 00:03:52,020 --> 00:03:54,020 back. It's throwing stuff against the wall and thinking 58 00:03:54,020 --> 00:03:55,520 that it might actually call you back. 59 00:03:56,740 --> 00:03:59,620 So let's take an example from a recent penetration test that I 60 00:03:59,620 --> 00:04:02,200 did that was completely black box. I only had access to the 61 00:04:02,200 --> 00:04:08,280 public facing interfaces of all of their web applications. And I 62 00:04:08,280 --> 00:04:11,160 wanted to see basically how I could cross that barrier, that 63 00:04:11,160 --> 00:04:17,880 trust boundary between the private admin customer service 64 00:04:18,540 --> 00:04:22,800 portal and the public facing chat application. So that's me. 65 00:04:24,740 --> 00:04:26,460 And basically what I've done is I've done a couple of things. I 66 00:04:26,480 --> 00:04:29,340 what I did was I set up a chat session with customer service 67 00:04:29,340 --> 00:04:32,680 rep and included in that customer in that chat and every single 68 00:04:32,680 --> 00:04:35,920 payload in my name and the description and the body. I put 69 00:04:35,920 --> 00:04:40,340 uniquely tagged basically script payloads, right? Script source 70 00:04:40,340 --> 00:04:43,680 equals some unique identifier. And that's all I did. I did it 71 00:04:43,680 --> 00:04:47,780 very simple, straightforward. And I went to see if it called 72 00:04:47,780 --> 00:04:52,660 back. It didn't. So the chat rep got this and it was also stored 73 00:04:52,660 --> 00:04:55,220 into the database. I had no idea if they kept track of this stuff 74 00:04:56,480 --> 00:04:59,160 or not. It's just what I did. I threw this stuff out there and I 75 00:04:59,160 --> 00:05:05,640 left XSS.io listening. And time passed. Actually a couple of days. 76 00:05:09,240 --> 00:05:14,300 And time passed. And our chat representative, this is what I 77 00:05:14,300 --> 00:05:18,220 surmised based on talking to the client, is they've got a little 78 00:05:18,220 --> 00:05:22,780 search interface for their chats. And the little customer service 79 00:05:22,780 --> 00:05:26,460 rep searched for something. And it pulled up, I think it was a 80 00:05:26,480 --> 00:05:30,560 link, the payload out of the database and rendered it in her 81 00:05:31,820 --> 00:05:36,140 browser. Little evil payload there. And bazinga, right? We got 82 00:05:36,140 --> 00:05:39,860 a call back. So it rendered in her browser and sent me back 83 00:05:39,860 --> 00:05:43,340 information about that application. Not that exciting, 84 00:05:43,520 --> 00:05:49,460 but the fact that I now had a connection to her session, right? 85 00:05:49,520 --> 00:05:53,220 I was, for all intents and purposes, her. Right? I knew 86 00:05:53,220 --> 00:05:56,120 where I could put input into the application. I knew it was a 87 00:05:56,480 --> 00:05:58,780 description field of that particular chat. None of the 88 00:05:58,780 --> 00:06:02,220 other fields triggered, just the description. And I knew exactly 89 00:06:02,720 --> 00:06:06,600 where I could put it to then get, send some other payload. 90 00:06:10,480 --> 00:06:16,460 Happy me. So steps to sort of a successful XSS exploit with, 91 00:06:16,540 --> 00:06:19,280 you know, blind cross-site scripting, it's you have to 92 00:06:19,280 --> 00:06:21,720 carefully choose the right payload for the right situation. 93 00:06:23,180 --> 00:06:26,460 And you have to really, really get lucky. It's, you know, 94 00:06:26,480 --> 00:06:28,880 basically magic. You throw crap against the wall until, you 95 00:06:28,880 --> 00:06:32,320 know, it might stick. And the reason I say you have to pick 96 00:06:32,320 --> 00:06:35,200 the right payload is because, if you go to, say, like, HTML5Sec, 97 00:06:35,320 --> 00:06:38,840 you know, Mario and those guys have just piles of payloads that 98 00:06:38,840 --> 00:06:40,500 you can use in different variants. There's just, 99 00:06:40,560 --> 00:06:44,300 literally, just hundreds and thousands of different variants 100 00:06:44,300 --> 00:06:48,240 you can use. But if you think about it, why would I use, like, 101 00:06:48,360 --> 00:06:53,280 a CSS-type variant injection attack in a first name or a 102 00:06:53,280 --> 00:06:55,580 description field? I wouldn't. So that narrows down your payloads 103 00:06:55,580 --> 00:07:00,580 even more. What I found is the most basic of payloads, just 104 00:07:00,580 --> 00:07:05,120 basically script source is really, really effective in most 105 00:07:05,120 --> 00:07:11,620 situations. I tried a variant of like a Peros or a bird proxy 106 00:07:11,620 --> 00:07:17,860 plug-in that basically rendered all these different, for every 107 00:07:17,860 --> 00:07:20,660 request I got, it enumerated all the different injection points 108 00:07:20,660 --> 00:07:25,040 and then did thousands of payloads. And the ones that came 109 00:07:25,040 --> 00:07:28,620 back were always the really, really simple ones. So I just 110 00:07:28,620 --> 00:07:32,140 stopped doing it and I just used basically a few manual payloads 111 00:07:32,140 --> 00:07:35,300 and it's really, really effective for me. So you plan 112 00:07:35,300 --> 00:07:39,700 out your payload will be used in your application. Think about it. 113 00:07:39,840 --> 00:07:42,520 Where's your user agent being stored? Where are these various 114 00:07:42,520 --> 00:07:45,760 headers that your client, that you're sending to the 115 00:07:45,760 --> 00:07:47,520 application, where is it going to be stored? How are they going 116 00:07:47,520 --> 00:07:50,940 to use it? How is it used in a reporting interface? If you 117 00:07:50,940 --> 00:07:53,140 think about those things, you'll think about and you'll 118 00:07:53,140 --> 00:07:55,020 know, you'll be able to kind of plan what you want to do. 119 00:07:55,040 --> 00:07:58,740 What do you want to actually inject? Will you be getting a 120 00:07:58,740 --> 00:08:01,260 context of a user that might have access to useful 121 00:08:01,260 --> 00:08:03,420 information? Is it an application you actually care 122 00:08:03,420 --> 00:08:06,320 about? Those are some things to think about. Here's just some 123 00:08:06,320 --> 00:08:09,480 nice targets that I found. Log viewers, the log headers, 124 00:08:10,800 --> 00:08:15,000 exception handlers, things like that, that log your request, 125 00:08:15,080 --> 00:08:18,180 your post body, things like that. Customer service, apps, 126 00:08:18,400 --> 00:08:21,420 chats, tickets, forums, anything moderated. Anything that you've 127 00:08:21,420 --> 00:08:23,500 got that cross, that trust boundary where you've got the, 128 00:08:23,540 --> 00:08:25,020 any user that's going to be able to access that, that's going to 129 00:08:25,040 --> 00:08:29,140 be rendering in a different context. And I don't know how 130 00:08:29,140 --> 00:08:31,600 that slide got in there, but I'll let you take it in. And if 131 00:08:31,600 --> 00:08:38,020 you want to play around, there might be something with this 132 00:08:38,020 --> 00:08:45,360 particular application. Got it? Okay. So blind XSS management is 133 00:08:45,360 --> 00:08:48,580 a giant pain in the ass to deal with generating unique 134 00:08:48,580 --> 00:08:51,440 identifiers for all these different payloads and keeping 135 00:08:51,440 --> 00:08:54,660 track of them. And so I basically wrote a tool. I was 136 00:08:54,660 --> 00:08:58,920 lazy. I wrote a tool. It's counterintuitive. So XSS.io can 137 00:08:58,920 --> 00:09:06,900 help. So what is the XSS.io tool? It's basically a tool to deal 138 00:09:06,900 --> 00:09:09,380 with cross-site scripting exploits. So sometimes you need 139 00:09:09,380 --> 00:09:12,960 all the space you can get. I'm going to make XSS.io public so 140 00:09:12,960 --> 00:09:18,720 that anyone can create and have available payloads online at 141 00:09:18,720 --> 00:09:22,460 that domain and use them. 24 hours a day. It doesn't, I mean, 142 00:09:22,500 --> 00:09:24,640 basically it will be up all the time, I hope. But it's a tool 143 00:09:24,660 --> 00:09:27,340 you can use. You don't need a short URL. And I'll demonstrate 144 00:09:27,340 --> 00:09:31,320 this. You don't actually need like XSS.io slash some unique 145 00:09:31,320 --> 00:09:33,800 identifier. Like if you're using, you know, bit.ly in your 146 00:09:34,460 --> 00:09:36,940 payloads, you have an extra like five characters there for 147 00:09:36,940 --> 00:09:40,160 the GUID. You don't have to have that because we do some 148 00:09:40,160 --> 00:09:43,320 basically refer based redirects, which I'm sure somebody 149 00:09:43,320 --> 00:09:46,580 here will find a way to break and ruin that, but whatever. 150 00:09:48,880 --> 00:09:52,240 Exploit, the exploit creator, it's snippets for common tasks 151 00:09:52,240 --> 00:09:54,640 and you can quickly sort of just create snippets for common tasks. 152 00:09:54,660 --> 00:09:57,980 Stacked up exploits, weaponize your, once you've found a 153 00:09:57,980 --> 00:10:02,900 vulnerability, you can weaponize it very quickly. And we've got 154 00:10:02,900 --> 00:10:06,280 the dead drop or blind XSS manager. It's a simple API. You 155 00:10:06,280 --> 00:10:11,420 say I'm dropping this type of payload at this location and it 156 00:10:11,420 --> 00:10:14,220 gives you an ID back. And that's all you need. And it's a 157 00:10:14,220 --> 00:10:18,440 quick, super fast API. It's built on top of Node and Redis. 158 00:10:19,260 --> 00:10:21,640 You know, we can talk about architecture after the talk or 159 00:10:21,640 --> 00:10:24,640 whatever if you're interested. So let's do a demo of the 160 00:10:24,660 --> 00:10:36,140 demo. If this works. We're going to demo a vulnerability in 161 00:10:36,140 --> 00:10:45,380 Nagios Enterprise. Basically, okay. What the hell is that? 162 00:10:49,980 --> 00:10:53,160 Okay. So here's this quick tour. As fast as we can go. 163 00:10:53,240 --> 00:10:54,640 Here's snippets. Snippets are basically a way for you to 164 00:10:54,660 --> 00:10:58,160 reuseable code blocks. They're literally just functions. 165 00:10:59,500 --> 00:11:03,460 That's all they are. They're a JavaScript function that does a 166 00:11:03,460 --> 00:11:05,720 thing and calls a callback. And that way we can stack them. We 167 00:11:05,720 --> 00:11:09,060 can just say do this really small thing and do the next 168 00:11:09,060 --> 00:11:10,560 thing and the next thing and the next thing and you can chain 169 00:11:10,560 --> 00:11:14,140 them together. Load value by selector as an example is really 170 00:11:14,140 --> 00:11:20,040 useful for, say, finding a CSRF token from some page. Here's our 171 00:11:20,040 --> 00:11:22,680 exploit list. There's nothing there because I dumped the 172 00:11:22,680 --> 00:11:23,780 database before I came up here. 173 00:11:25,080 --> 00:11:29,480 And here's the exploit actually creator. And we'll get into that 174 00:11:29,480 --> 00:11:33,800 in a second. Here's the redirect view and the dead drop. So let's 175 00:11:33,800 --> 00:11:38,760 actually drop something in Nagios XI. So there's a 176 00:11:38,760 --> 00:11:44,500 configuration manager that you can access if it's public. 177 00:11:45,100 --> 00:11:49,060 Normally you have to be logged in to access it. What we'll do, 178 00:11:49,140 --> 00:11:53,540 I've got actually just a little Firefox plug-in that I'll make 179 00:11:53,540 --> 00:11:54,640 public, too. I don't have it. I'm going to go ahead and do a 180 00:11:54,660 --> 00:11:56,400 test. I don't have it quite polished yet. But let's say we 181 00:11:56,400 --> 00:12:00,960 want to get a drop for a user name. Type user name. Get ID. 182 00:12:02,280 --> 00:12:04,700 Paste it in there. It's the first one, right? It's one. 183 00:12:04,960 --> 00:12:07,140 Just increments up. Please don't drop a bunch of shit in 184 00:12:07,140 --> 00:12:11,760 access. Oh, I have to be a jerk. And we're just going to 185 00:12:12,160 --> 00:12:15,320 log in. Log in failed, right? Great. But that got stored 186 00:12:15,320 --> 00:12:22,240 someplace. That got put into a log. So let's log in to Nagios 187 00:12:25,200 --> 00:12:30,420 and actually trigger that. So if we look at dead drop, we got one. 188 00:12:30,500 --> 00:12:32,320 We got one dropped. We don't care about anything that doesn't 189 00:12:32,320 --> 00:12:34,040 call back. So I don't bother showing anything or storing 190 00:12:34,040 --> 00:12:41,360 anything or whatever. Let's log in to Nagios, configuration 191 00:12:41,360 --> 00:12:51,900 manager, blah, blah, blah. Okay. So if we happen to go to 192 00:12:55,240 --> 00:13:03,440 config manager log, user happens to go in there, we've 193 00:13:03,440 --> 00:13:07,920 got obviously we got some injection happening here. If we 194 00:13:07,920 --> 00:13:11,480 go back to the explorer, please work, we actually got a call 195 00:13:11,480 --> 00:13:15,420 back. So we got it says that at Nagios.example.com slash this 196 00:13:15,420 --> 00:13:20,320 URL, we put it in the user name field. We actually get a bunch 197 00:13:20,320 --> 00:13:22,580 of data back. And this is horribly ugly. I'm trying to 198 00:13:22,580 --> 00:13:24,640 find a good way of representing this. I'm trying to find a good 199 00:13:24,640 --> 00:13:28,880 way of representing this data. But it's difficult. I'm actually 200 00:13:28,880 --> 00:13:32,540 logging the entire HTML contents of the page, the source IP that 201 00:13:32,540 --> 00:13:37,200 called back, the window.location, the session 202 00:13:37,200 --> 00:13:43,540 cookies, all that stuff. It gets loaded, right? So let's sort 203 00:13:43,540 --> 00:13:48,540 of weaponize this particular thing. So this is the page that 204 00:13:48,540 --> 00:13:52,340 called back, the window.location. And let's quickly, 205 00:13:53,000 --> 00:13:54,400 first thing we want to do is we want to create an 206 00:13:54,640 --> 00:13:56,760 exploit and say, okay, we want to, we're just going to do a 207 00:13:56,760 --> 00:14:00,620 simple thing of finding the CSRF token of one of the pages. Just 208 00:14:00,620 --> 00:14:04,180 because that's what we've got planned. So we can load a 209 00:14:04,180 --> 00:14:11,140 value by selector at a particular URL. This particular 210 00:14:11,140 --> 00:14:19,580 URL we want is, we'll load that URL. Our selector is our input 211 00:14:26,540 --> 00:14:30,600 and that returns value. And let's just alert that value. And 212 00:14:30,600 --> 00:14:33,620 so this one snippet returns a value. And we can just say, okay, 213 00:14:33,660 --> 00:14:36,680 I want to drag, you know, basically the return value of 214 00:14:36,680 --> 00:14:38,720 that into the input of this other snippet. And it goes. 215 00:14:40,660 --> 00:14:50,120 That's blah. Okay. It generated it right there. Now let's go 216 00:14:50,660 --> 00:14:54,620 and let's say we have limited space. So let's say we have a 217 00:14:54,640 --> 00:14:56,980 function that we actually need every single character for 218 00:14:56,980 --> 00:14:59,680 exorcist.io and we can't have any trailing anything. Let's show 219 00:14:59,680 --> 00:15:04,960 the refer basically working in action as well. And so we're 220 00:15:04,960 --> 00:15:07,340 going to add a redirect from that particular URL that gets 221 00:15:07,760 --> 00:15:14,500 loaded. And we're going to redirect that to, of course, I 222 00:15:14,500 --> 00:15:23,880 didn't copy the freaking. Inter-exploit list. We'll copy 223 00:15:23,880 --> 00:15:24,620 the, you know, the, you know, the, you know, the, you know, 224 00:15:24,620 --> 00:15:33,880 the unique identifier for that. And so we'll go to. So we're 225 00:15:33,880 --> 00:15:39,420 going to say if anything comes into exorcist.io, from this 226 00:15:39,420 --> 00:15:43,640 refer, load this, redirect them to this page, basically. Load our 227 00:15:43,640 --> 00:15:45,880 payload, right? And that could be a BFOC. That doesn't have to 228 00:15:45,880 --> 00:15:49,080 be something from exorcist.io. It could be whatever. You could 229 00:15:49,080 --> 00:15:53,400 load up exorcist chef, you know, from Codo. You can load up 230 00:15:53,400 --> 00:15:54,600 whatever you want. You can redirect it to whatever you want 231 00:15:54,620 --> 00:16:02,580 to. So let's save it. Pray this works. If it doesn't work, 232 00:16:02,660 --> 00:16:09,900 there's a space after that. So now that we have that, let's go 233 00:16:09,900 --> 00:16:18,040 back and redrop. Let's just drop script source equals. And 234 00:16:18,040 --> 00:16:24,600 let's just do. Is that right? All right. All right. All right. 235 00:16:26,060 --> 00:16:31,340 So you can do a pretty. Jesus Christ. A pretty small payload. 236 00:16:32,620 --> 00:16:36,220 And I'm actually logged in, but it still dumps it in. There's a 237 00:16:36,220 --> 00:16:40,640 failed log in. So we load up the log. We should get another. 238 00:16:49,620 --> 00:16:54,600 Well, cool. It's not going to work. Son of a bitch. You're 239 00:16:54,620 --> 00:17:04,040 such a bitch. That's what I get for doing a live demo. What's 240 00:17:04,040 --> 00:17:20,260 that? In when I dropped it. So it did a post back. Let's see. Right 241 00:17:20,260 --> 00:17:23,400 here. That's bracket. That's bracket and bracket. 242 00:17:26,540 --> 00:17:34,060 Oh, man. Demo gods are pissed off at me. Maybe if I just keep 243 00:17:34,060 --> 00:17:40,240 reloading the page, right? No, it doesn't work. So let's look 244 00:17:40,240 --> 00:17:48,200 just quick. Aha. You don't need it. You don't need it. 245 00:17:48,520 --> 00:17:51,720 Backslash, backslash. We'll use whatever the current protocol is. 246 00:17:52,360 --> 00:17:53,560 So you can make it even shorter. 247 00:17:54,620 --> 00:17:54,820 But. 248 00:18:06,200 --> 00:18:14,120 No. I know what freaking happened. This thing right here, it's a bug. 249 00:18:14,620 --> 00:18:20,460 I knew it was going to bite me. It basically, it doesn't strip spaces. 250 00:18:23,420 --> 00:18:25,920 So I break things. I don't build them. 251 00:18:34,660 --> 00:18:42,680 Eh, whatever. Okay. So that's the failed demo. It should run. There's some bugs. I love 252 00:18:42,680 --> 00:18:48,180 contributions. I'm going to make the code base public on GitHub and people can contribute. It 253 00:18:48,180 --> 00:18:53,700 needs some polish, but it's there. Like I said, whenever we were refreshing that log, too, 254 00:18:53,840 --> 00:18:59,400 these dead drops were calling back. So we got 18 events. In each individual time, it actually is 255 00:18:59,400 --> 00:19:09,520 called back. We've got more events, more sessions, more whatever. How much time? 256 00:19:10,420 --> 00:19:18,100 All right. So that's blind crosshead scripting. That's XSS.IO. Again, some bugs. 257 00:19:18,100 --> 00:19:26,020 I'm not going to debug the demo anymore. I have a special treat, however, that maybe will actually 258 00:19:26,020 --> 00:19:33,180 work. And if they both fail, that's great. I've got another tool to announce CSRF.IO to basically 259 00:19:33,180 --> 00:19:41,340 deal with CSRF attacks. It's kind of, you know, I got to show my slide because. But wait, 260 00:19:41,360 --> 00:19:48,080 there's more. Okay. So let's do this quick. I'm going to show you how to do this. 261 00:19:48,100 --> 00:19:55,440 CSRF.IO is basically you can create little scripts of CSRF style attacks, submitting forms, 262 00:19:55,640 --> 00:20:03,020 loading content, whatever. Here's just a few that are out there. And you can make them public, 263 00:20:03,160 --> 00:20:18,060 whatever. We are going to try. Does anyone here have a ZTE 890? One of these? Anybody? Don't be 264 00:20:18,100 --> 00:20:30,060 shy. Raise your hand, please. You have one? It's not. Yeah. ZTE 890 Verizon. Don't click on 265 00:20:30,060 --> 00:20:37,880 any link I send you. So let's just show the tool quick. Basically this particular vulnerability 266 00:20:37,880 --> 00:20:47,700 is puck locking out the SIM. So you have to go get a new one. If you do it too many times. 267 00:20:48,100 --> 00:20:53,000 Let's look at it. So what I did was it submits the form to VZ.Hotspot, which this thing 268 00:20:53,000 --> 00:20:59,840 conveniently gives you. So even if you change the internal IP address, it, you can reliably hit the 269 00:20:59,840 --> 00:21:05,200 device every single time from the outside. Pause for X seconds. And let's redirect back to the 270 00:21:05,200 --> 00:21:09,440 URL. So all we're going to do is hit the form. Hit the form. Hit the form. What I was going to try 271 00:21:09,440 --> 00:21:17,580 to do is connect to it and see if it would actually connect to the device. It's not going to 272 00:21:18,100 --> 00:21:35,900 kill it. But who knows if this thing will actually even work. An 890. Just bear with 273 00:21:35,900 --> 00:21:51,680 me. I've never fully tried this out because I didn't want to break the device before I had to. 274 00:22:04,040 --> 00:22:04,440 Two. 275 00:22:05,480 --> 00:22:05,880 Two. 276 00:22:10,460 --> 00:22:24,980 2F924A5. Oh, don't join that. Okay. So here we are online. Apparently that's the test. All 277 00:22:24,980 --> 00:22:29,220 right. So let's hit the exploit URL and see what actually happens. 278 00:22:35,900 --> 00:22:36,800 Let's see if it actually does it. 279 00:22:57,640 --> 00:23:05,320 Incorrect pod code. Cool. If you get the timing down right, that doesn't pop up. So if you get, if 280 00:23:05,900 --> 00:23:23,840 you short it out, yeah, see it's connecting to it. Keeps refreshing. Timing might not be right, 281 00:23:23,980 --> 00:23:30,960 but it will keep repeating the form over and over and over again. If I could actually connect to 282 00:23:30,960 --> 00:23:35,880 it, it would check the count. Anyway, it's a useful tool that could quickly do a lot of things. 283 00:23:35,900 --> 00:23:41,240 So basically copy, you can literally copy the request response right from like fire bug or 284 00:23:41,240 --> 00:23:54,040 something and drop it in to the CSRF.io form and submit the request and just, at that point it's 285 00:23:54,980 --> 00:24:01,920 out there in public. And you can send the link. So basically a couple of horribly failable demos. 286 00:24:05,980 --> 00:24:20,080 This came up. I don't have internet. Yay. That didn't fail. Yay. Searching. 287 00:24:22,960 --> 00:24:29,600 It's great. Do you want it? Here. And that's it. Thank you. 288 00:24:35,900 --> 00:24:36,460 Thank you.