[00:00.000 --> 00:07.040] So I'm happy to introduce Ronnie Carta and talk about practical exploitation in denial of service [00:07.040 --> 00:18.180] and bug bounties. Ronnie, thanks. Hi everyone, I'm really happy to be there today. This is the first [00:18.180 --> 00:24.620] ever Bug Bounty Village and it's a true honor to do the first talk ever, well with some technical [00:24.620 --> 00:31.060] difficulties of not having an HDMI cable, but no worries, we are there now. So the talk is about [00:31.060 --> 00:35.700] practical exploitation of denial of service in bug bounty program. So first of all, my name is [00:35.700 --> 00:40.680] Ronnie, I go by the nickname Lupin, I'm the co-founder of Lupin Homes, we are a security [00:40.680 --> 00:46.220] research and development company, and I'm coming from the best city in the world, Grenoble, it's [00:46.220 --> 00:53.280] in the French Alps, a lot of skiing, beautiful place. I love denial of service. I love denial of [00:53.280 --> 00:58.800] service because you can actually try to slow down or considerably take down an entire product [00:58.800 --> 01:04.960] environment. And so the goal of denial of service in bug bounties is to basically try to find the [01:04.960 --> 01:10.900] most business impact. Imagine like a website not having traffic anymore, that will be a huge [01:10.900 --> 01:19.120] bummer for the company. And so denial of service, and like the difference between denial of service and DDoS [01:19.120 --> 01:25.000] is basically denial of service is from one single machine, but DDoS, the additional D is for [01:25.000 --> 01:30.280] distributed, of course, so it means that we require a series of different machines to be able to take down our [01:30.280 --> 01:36.440] target. This is basically all about the resource that you have on your machine against the resources [01:36.440 --> 01:43.520] that you have on your target. So if the attacker has more resources on its machine, then it can [01:43.520 --> 01:50.340] basically take down the target, but in a DDoS, you might have amplification or multiplicating [01:50.340 --> 01:55.160] factor in order to be able to completely take down the machine. So that's what we're going to [01:55.160 --> 02:02.880] talk about today. A little bit of definition debates here. Basically, there is a whole debate about [02:02.880 --> 02:08.860] denial of service being an availability or integrity impact. So basically, the impact of [02:08.860 --> 02:15.740] like the DDoS is not a vulnerability class, but more like an impact, I will say. And we can say [02:15.740 --> 02:22.420] that deleting a resource is in a sense denied, but the CVSS documentation says that the deletion of a [02:22.420 --> 02:28.340] resource is integrity and not availability at all. So that whole blob of documentation, if you want to [02:28.340 --> 02:34.840] read it, is what the CVSS says. So basically, it says that availability is the performance and [02:34.840 --> 02:40.520] operation of the service itself and not the availability of the data. For those who have been [02:40.520 --> 02:46.140] doing bug bounty hunting, you know that you are debating a lot about CVSS and you need to read [02:46.140 --> 02:51.920] all the documentation. So be mindful of that if you want to argue with CVSS programs. [02:53.280 --> 03:00.180] So when DDoS is relevant? Basically, it is relevant for every feature where there is a [03:00.180 --> 03:06.080] strong dependency. This means that it's a feature that a lot of users are going to use or maybe [03:06.080 --> 03:12.040] there's a dependency on the machines that you are targeting. For instance, if you can take [03:12.040 --> 03:16.560] that entire EKS cluster in production, well, that might be super impactful. [03:17.900 --> 03:22.780] But yeah, I know what you are going to say. DDoS is totally out of scope. Actually, [03:22.780 --> 03:29.440] on HackerOne default templates for program, it's marked as out of scope by default. And there's a [03:29.440 --> 03:36.060] reason for that, because companies in usual do not like DDoS. Not because of the low impact of [03:36.060 --> 03:43.180] security, but because actually, if you let all your bug hunters completely take down your website, [03:43.180 --> 03:51.200] it might be a huge problem for them. So basically, it's not because DDoS has low impact, [03:51.200 --> 03:57.400] but because sometimes that's too much impact. But we can test DDoS responsibly and actually make [03:58.260 --> 04:04.720] a few bucks with it. In order to test DDoS responsibly, you need to find the gadget [04:04.720 --> 04:10.640] of the problem to fully exploit it. So this means that, for instance, if you have a request that [04:10.640 --> 04:17.060] takes more than 10 seconds, this may be a cool gadget in order to take down the entire environment. [04:17.060 --> 04:22.080] But you do not need to actually take it down to just see that one request takes more than 10 seconds. [04:22.220 --> 04:27.920] And also, if you are allowed, you can still try to take down the non-production environment, [04:27.920 --> 04:33.640] so staging, integration, sandbox, et cetera. But if there is something to know about this [04:33.640 --> 04:39.520] entire talk, please, always ask the programs before even searching for their services. [04:39.840 --> 04:44.760] Because programs need to be aware of what kind of tests you are going to do in order for them [04:44.760 --> 04:50.200] to monitor. And if everything is going to fire, they need to identify that you are the one doing [04:50.200 --> 04:57.180] the test and just call you and say, hey, I think there is a problem here. And DDoS service is all [04:57.180 --> 05:04.720] about program's maturity, right? Some companies do not care about, you know, services risk, [05:04.720 --> 05:09.540] because they, I don't know, they don't have, like, user traffic or stuff like that. [05:09.720 --> 05:14.960] But actually, some programs will allow you to completely take down their product environment. [05:15.500 --> 05:20.500] And I'm serious. They are completely allowing to take down their dub-dub-dub environment. So, [05:20.500 --> 05:25.100] this is amazing. Before starting going on all the different techniques, I need to [05:25.100 --> 05:32.020] thanks Rezo, Zack, Ixo, Snorlax, Befed, BonsoirD, and DoomerHunter. Those are amazing hunters. [05:32.080 --> 05:37.880] We did all this research together on the span of two years. So, I needed to quickly show that to [05:37.880 --> 05:45.380] them. Amazing people to follow, too. Okay. Let's start with a quick vulnerability. This one [05:45.960 --> 05:51.180] is really fun. So, one evening, we were hacking with Snorlax. And there was this application [05:51.740 --> 05:58.280] that was sending service to send chat messages. And so, with Snorlax, when we're hunting together, [05:58.280 --> 06:05.260] we have this game where the goal is to basically try to XSS the other one. So, we were contacting [06:05.260 --> 06:11.320] one another, sending messages, and we're, like, the first that got XSS wins it. But at some point, [06:11.320 --> 06:17.020] we were doing a test, and my page completely goes blank. And I was, like, maybe I lost internet. [06:17.020 --> 06:21.080] But I was still hearing Snorlax on Discord, and I was, like, there's something weird, right? [06:21.180 --> 06:30.620] Until he tells me, hey, Lupin, is your page blank, too? So, those are the payloads that we sent at [06:30.620 --> 06:36.620] this moment. So, try to think about which one did manage to make the page entirely blank. [06:36.920 --> 06:46.100] Do you have it? Yeah. This is the one. And so, to understand why this payload made the page [06:46.100 --> 06:53.200] blank, you need to understand that the service was using a library called sanitize HTML. So, [06:53.200 --> 07:00.360] basically, it's some kind of DOM purify that will try to sanitize every XSS that you are going to [07:00.360 --> 07:07.760] send. And this library actually tried to sanitize every href attribute in your frontend. So, [07:07.760 --> 07:13.420] for instance, if you have a JavaScript schema, it will try to remove it from the href. [07:13.420 --> 07:19.800] However, in this payload, where is the href? There's a problem here. And so, the library [07:19.800 --> 07:26.780] actually called the function href and take an argument href and do a dot replace on it. However, [07:26.780 --> 07:33.660] when it's undefined, it completely crashed the entire frontend. Okay. That was a pretty cool one. [07:34.040 --> 07:40.280] And so, for every kind of client-side service, I would say that the impact is not that huge. [07:40.280 --> 07:48.020] It's all depending on the target. Overall, with this specific technique of malformed data, [07:48.020 --> 07:56.240] HTML, we did $350 bounty. But that's just the start. If you want to actually search for more [07:57.980 --> 08:03.360] malformed data in the frontend, you can... there was a cool vulnerability where we had, like, [08:03.600 --> 08:09.140] a post request and we could send any invalid JSON. That was validated by the backend, but [08:09.140 --> 08:15.180] it was a completely malformed JSON. And so, when the frontend was using it, it will also [08:15.180 --> 08:24.220] completely crash. And so, the malformed JSON was really simple. It was using two back quotes at [08:24.220 --> 08:29.620] the same time. Two escape back quotes. And so, it was somehow accepted by the backend. But when you [08:29.620 --> 08:36.960] were doing a JSON.parse on the frontend, it would completely crash. And so, this technique actually [08:36.960 --> 08:43.480] worked on TikTok and we got paid for that. So, that was a cool one. But there's some cooler [08:43.480 --> 08:51.140] techniques now. Okay. So, that guy here is one of the biggest problems for all developers. [08:51.860 --> 08:59.520] The N plus one problem. Basically, this technique... I actually knew about it because my [08:59.520 --> 09:05.220] brother, who is a backend developer, told me about... like, we were talking about services [09:05.220 --> 09:09.520] and how I was trying to exploit them. And he was like, do you know what's an N plus one problem? [09:09.520 --> 09:14.120] And I was like, no. And he told me that, basically, an N plus one problem was a database [09:14.120 --> 09:22.240] when one query leads to N additional queries, causing inefficient data retrieval. [09:22.960 --> 09:29.400] So, basically, an attacker can exploit N plus one queries to trigger numerous calls to the database [09:29.400 --> 09:36.000] and potentially overwhelm the system. And the impact of an N plus one query often scales with [09:36.000 --> 09:42.200] the data size. So, the more data that you have, the more DOS capability you can have on your target. [09:43.140 --> 09:47.360] So, how do you detect an N plus one query? Basically, you find an endpoint that creates [09:47.360 --> 09:53.260] data in the API. You find a request that gets all the data at the same time. So, usually a get [09:53.260 --> 09:57.580] request. And if there is pagination, try to increase the limit. For instance, you have some [09:57.580 --> 10:04.640] request that is page equal 10. Try to put 10,000 and see what's going to happen. And if the more [10:04.640 --> 10:10.360] data you add in the backend, the more time delay there is in the response, then you have an N plus [10:10.360 --> 10:17.660] one error. I also created a BURP extension that I'm going to release right after this talk. [10:17.860 --> 10:24.040] That's called Tridos. And basically, it's going to search in your proxy passively all the requests [10:24.040 --> 10:30.840] that takes more than X seconds, where X is a threshold that you set yourself. I personally put [10:30.840 --> 10:37.160] it to three seconds. And this is a good way to actually identify queries that might take a lot [10:37.160 --> 10:44.920] of time on the backend and that you can actually use for your exploitation. So, let's take an [10:44.920 --> 10:52.660] example of an N plus one problem. There was an app that could accept to get as many objects as we [10:52.660 --> 10:58.500] wanted. The JSON blob was something like that, where you had a list of users. And then on each [10:58.500 --> 11:05.200] user, you can create... on each array of the list, you can create a new user. And then there was [11:05.200 --> 11:11.180] another sub object with another array with new objects. So, that's basically an N plus one [11:11.180 --> 11:18.440] problem, when one request can create as many sub objects as you want. And so, how did we exploit [11:18.440 --> 11:24.560] that? Well, we sent the request to create all those objects and we created approximately 10,000 [11:24.560 --> 11:32.980] objects in the backend. And then our get request to retrieve all the objects took 10 seconds per [11:32.980 --> 11:39.180] request. So, that's a really, really good sign that you have an N plus one problem. We took [11:39.180 --> 11:45.280] that request, we put it into an intruder on Burp, and we set it with no payloads, [11:45.280 --> 11:51.120] concurrent requests, and we basically set it to run indefinitely. And the result... [11:54.300 --> 12:01.560] complete crash. Overall, this technique, not only single-vulnerability, but overall, we did 46,000 [12:01.560 --> 12:09.320] dollars in bounty. There was an LHE this week, so we can add 10,000 more to this slide. I think that [12:09.320 --> 12:17.140] 30k of this was Snorlax alone, because he's so good at just taking one technique and spreading it. [12:17.140 --> 12:23.880] I think he did 15k per vulnerability, so in two vulnerabilities, 30k. That guy is insane. [12:25.100 --> 12:31.720] Okay, let's talk about network-based denial of services. Have you ever been in that situation [12:31.720 --> 12:37.460] where you have a blind SSRF and you don't know what to do with it? And that you are desperate [12:37.460 --> 12:43.020] for a technique that will help you transform this sometimes informative vulnerability into a higher [12:43.020 --> 12:51.480] crit? Well, we have a technique for you. Basically, do you guys know something called, like, slow [12:51.480 --> 12:57.280] low-risk attack? Well, basically, we are going to try to do something really similar where we are [12:57.280 --> 13:03.380] going to try to make the bucket hang on the network level as much as possible. We can do it [13:03.380 --> 13:11.020] with several ways. You can make your server hang and just time out after 10 seconds, or you can [13:11.020 --> 13:17.880] create a request loop. So what do I mean by request loop? Well, you have your server that has a path [13:17.880 --> 13:25.180] that will reject 301 on path 2, and then the path 2 will reject again on path 1, so we create, like, [13:25.180 --> 13:32.760] an infinite loop of redirects. And the goal is to make the server time out as much as possible. [13:32.760 --> 13:40.320] So we have that kind of schema happening. And the goal of that technique is actually to fill [13:40.320 --> 13:47.320] all the available sockets of the server so it couldn't actually treat the next request. [13:48.580 --> 13:54.080] Until we have this bottleneck happening and there is no available sockets anymore. [13:56.820 --> 14:04.540] For this technique, I think it was on two separate vulnerabilities, we made 15k. So it's actually a [14:04.540 --> 14:10.320] great technique to transform blind SSRF into a critical. Again, every time that we take down [14:10.320 --> 14:15.740] product environments, we always ask for the programs. Really be mindful of that. But that's a [14:15.740 --> 14:23.340] pretty cool one if you're ever stuck. Okay. Let's go to sign-in denial of services. [14:24.520 --> 14:31.460] This one was really cool because we had a target with an employee web page. And basically when we [14:31.460 --> 14:36.740] see an employee web page, we try password stuffing or brute forcing, we see proclamation, [14:36.740 --> 14:42.420] injection, et cetera, et cetera. But why this target was particularly interesting for us is [14:42.420 --> 14:48.700] it was a target with more than 1,000 employees, there was no rate limiting on the login, [14:48.700 --> 14:54.120] no 2FA at all, and they were using first name dot last name for the user. So we could pull [14:54.120 --> 15:01.260] everything on LinkedIn and we had a great world list to work with. So what do we do? We managed [15:01.260 --> 15:08.740] to automate the attack, no rate limiting at all, and then no login found. Wait. No login found? [15:08.740 --> 15:16.520] But we still got a crit. Okay. Guess what protection they implemented for brute forcing [15:16.520 --> 15:23.920] attack? Is it A, delay the next attempt? B, capture? C, ban the IP address? Or D, [15:23.920 --> 15:33.550] ban the employee account? There is actual documentation on the internet that says that [15:33.550 --> 15:39.970] this is the right thing to do. So, yeah. What happened? 600 accounts locked. [15:40.530 --> 15:46.530] They had integration with the ID, so active directory completely down, [15:46.530 --> 15:53.910] no access to the VPN anymore. Completely take down of the internet environment. So funny. [15:54.470 --> 16:01.490] I would say that the impact of this technique is actually like a three out of five, but it's [16:01.490 --> 16:06.630] because the presence in the world is also reduced. I don't think that a lot of companies are doing [16:06.630 --> 16:14.710] that anymore. But pretty cool bug. Okay. Let's go to another type of DOS. [16:14.810 --> 16:20.870] Disconception DOS. So, this story is quite cool. It started because I read this asset node research. [16:20.870 --> 16:26.610] If you guys don't know asset nodes, you should read every blog post of them. It's amazing. [16:26.610 --> 16:32.290] And there was this blog post from 2019 called discovering a zero day and getting code execution [16:32.290 --> 16:38.250] on modular AWS network. So, how did asset node achieve that? Basically, there was an instance [16:38.250 --> 16:43.890] called web page test. And it was completely open source. So, they read the code. And there was [16:43.890 --> 16:49.330] like this piece of code where you could extract a zip file that was given by the user. And then [16:49.330 --> 16:55.010] with some kind of quick race condition, you could actually call a PHP file. [16:55.070 --> 17:01.310] And so, for this race condition to work, you needed to set up an intruder and just run as [17:01.310 --> 17:08.790] many requests as possible. What happened when I tried it? The backend didn't have enough [17:08.790 --> 17:13.770] inodes to take the charge of requests. So, every time it was creating a zip file and trying to [17:13.770 --> 17:21.590] extract it, it was allocating inodes. And so, the disk was full in like maybe two, three seconds. [17:21.730 --> 17:27.570] So, yeah. I took down the instance. And I thought that this instance wasn't used by anyone until [17:27.570 --> 17:32.630] someone told me, hey, all the pipelines are down. And so, every time they were running a pipeline, [17:32.630 --> 17:39.970] they were going to that instance. That's cool. So, total crash of the server. No access to the [17:39.970 --> 17:45.430] disk. They needed to clean everything, wipe out, restart the server. That was a cool one. [17:45.490 --> 17:50.750] I would say that, again, the impact is reduced because of the presence in the world. So, [17:50.750 --> 18:02.730] it's a three out of five. Cache poisoning. That's a good one. So, one day, we were developing a new [18:02.730 --> 18:08.850] feature for our tool in research mode. Research mode for us is when we want to test an idea and [18:08.850 --> 18:16.950] spread it to see if it should be incorporated into our tool for our customers. And so, the idea was, [18:16.950 --> 18:22.330] what if registries, when you install a dependency and have two factories, used by the clients [18:22.330 --> 18:28.250] were vulnerable to cache poisoning in our service? It's a good thing to try. So, we developed a proof [18:28.250 --> 18:35.870] concept. And on the first run, we managed to get a hit on registry.npmjs.org. And I was like, [18:35.870 --> 18:44.110] no. That didn't happen. Like, no way. So, we thought it was a fault positive. And lo and behold, [18:44.110 --> 18:53.980] it worked. So, what is CPDOS? CPDOS is a web attack technique described by Paul Truger. [18:54.750 --> 18:59.710] Paul Truger actually made it really, really famous. Again, if you didn't read in your life [18:59.870 --> 19:05.650] a James Kettle research, you should do it. This guy is amazing. Always breaking the internet. [19:05.930 --> 19:13.290] And basically, it's in the web caching system in order to deliver malicious content to the users. [19:14.110 --> 19:22.050] So, the methodology is to first understand how the cache keys of our target is working. And then [19:22.050 --> 19:29.050] understand how the output of the request is linked to your HTTP input. So, for instance, [19:29.050 --> 19:36.270] is the cache key inside the path? The headers? Or maybe the post requests? Once you identify the [19:36.270 --> 19:41.650] cache key, try to understand how you can manipulate it in order to catch unwanted content. [19:41.650 --> 19:47.610] So, it could be a malicious content like an XSS payload or it could just take down the page for [19:47.610 --> 19:56.150] all the users. So, the case of registry.mpmjs.org was pretty cool. Basically, my assumption is that [19:56.150 --> 20:04.810] the cache key was actually the full path. And when we added our malicious header, it will create [20:05.530 --> 20:11.110] a fall for error. However, the cache key is still remaining the same. And so, it will just [20:11.110 --> 20:20.850] override the cache key with a 404. So, at this point, we called deny packages. That's a screenshot [20:20.850 --> 20:26.810] of my script running in the back and I'm trying to do an npm install and then that's it. We got [20:26.950 --> 20:32.710] a 404 in production environment. So, that was kind of cool. Don't worry, I did it on the package [20:32.710 --> 20:40.350] that I created myself. I didn't take down anything, hopefully. And so, the impact was a complete [20:40.350 --> 20:47.530] denial of any npm package in the world. Imagine experts as 30 million plus downloads per week. [20:48.110 --> 20:54.450] Actually, there was a lot of mitigation in place on GitHub and npm side. But [20:55.530 --> 21:04.830] what's quite cool about VT. And so, first, they awarded a $500 informative. But then, [21:04.830 --> 21:11.290] they actually did an awesome work to reconsider the severity and they added a $10,000 bounty [21:12.060 --> 21:20.990] for this npm crash. So, I was so happy. Especially for something that we didn't do on purpose, again. [21:21.970 --> 21:28.460] Okay. Let's go to another cool attack vector for denial of services. Everything related to GraphQL. [21:29.030 --> 21:34.960] So, why are we talking about GraphQL today? Because it has a huge adoption in the last few [21:34.960 --> 21:41.020] years. And there is so many denial of services in the default configuration. But when I say [21:41.020 --> 21:51.160] so many, I say so many. First case of denial of services on GraphQL is a circular definition. [21:51.160 --> 21:59.600] Basically, a circular definition occurs when an object references itself directly or indirectly. [21:59.600 --> 22:06.820] For instance, here we have a type user that has a best friend user. But imagine if your best friend [22:06.820 --> 22:11.400] is also best friend with you. You are basically referencing yourself. So, we have a circular [22:11.400 --> 22:17.680] definition here. But no need to check for the introspection and actually understand the structure [22:17.680 --> 22:23.620] of your target. GraphQL is vulnerable by default in the introspection schema. So, you can just do [22:23.620 --> 22:28.280] an introspection and actually DOS your target without understanding their data structure. [22:28.640 --> 22:36.580] That's insane. And so, there's another kind of technique called GraphQL batching that is [22:36.580 --> 22:43.580] pretty cool. Basically, the goal is to compile a lot of different requests in the same HTTP request. [22:43.580 --> 22:49.780] Again, this could be used to actually DOS your target. We're going to talk about this a little [22:49.780 --> 22:55.340] bit later. Something really similar to GraphQL batching, there is aliases where basically you [22:55.340 --> 23:02.960] can use different aliases for the same request, but also use different arguments. So, that also [23:02.960 --> 23:10.340] could be a huge attack vector for denial of service. So, quick tip for batching and aliases [23:10.340 --> 23:16.880] is to actually try to find gadget. What I call gadget, if it's the right definition, [23:16.880 --> 23:22.640] but what I call gadget for this specific vulnerability is to find a query in the [23:22.640 --> 23:28.440] structure of a target that takes already 200 milliseconds up to 500 milliseconds. Sometimes [23:28.440 --> 23:37.120] more. When you don't optimize anything, I guess. And use this specific query in every batching [23:37.120 --> 23:43.200] request that you do, or in every aliases. And this will allow you to send a lot of requests to [23:43.200 --> 23:49.160] maybe the disk operation that it does, the memory. It really depends on how the backend implemented [23:49.160 --> 23:56.640] it. But this could take you like a batching that takes five seconds per request up to five minutes [23:56.640 --> 24:06.200] per request. So, this is a good way to multiply and amplify your DOS. And there is this one. [24:06.200 --> 24:13.480] The GraphQL directives. So, what's a directive? It's a way for GraphQL to decorate a part of the [24:13.480 --> 24:21.280] schema and actually to do an operation on top of it or additional configuration. And there is a [24:21.280 --> 24:27.300] technique called GraphQL directive overloading, where basically you can just make that payload, [24:27.300 --> 24:34.890] repeat the at eight as many times as you like, and it will totally crash the server somehow. [24:35.600 --> 24:44.820] But we had a cool story on the Google console with evolving that. So, let's imagine that a [24:44.820 --> 24:51.280] directive could be used for, again, our type user. And you can query every user with the [24:51.820 --> 24:58.820] admin or user. So, that's the way that normally we could use a directive. [24:59.660 --> 25:05.800] But then Google was using the directive in a very, very strange way. Basically, [25:05.800 --> 25:12.600] you add the query list operation, for instance, and then you see that we have a directive at [25:12.600 --> 25:20.820] signature with bytes inside. And what they were doing, they were actually signing the body of the [25:20.820 --> 25:28.360] request from within the GraphQL request. And every time that we wanted to modify any variables [25:28.360 --> 25:34.440] or anything in the schema, we will get an error. So, you know, when we're trying to [25:34.440 --> 25:39.780] attack a backend, we really want to modify the request in our proxy. So, that was a huge [25:39.780 --> 25:45.240] bummer because it means that everything was totally signed. So, we tried to see if we could [25:45.240 --> 25:52.000] sign out our requests. But the problem is that they were outcoding everything in the JavaScript. [25:52.000 --> 25:56.800] So, generating everything on the build and putting this in the JavaScript. And so, [25:56.800 --> 26:03.640] they actually told us that they were using a secret that was a passphrase. And it was also [26:03.640 --> 26:09.680] outcoded inside the codebase. So, they awarded $1,000 for that. But that was a fun one. But [26:09.680 --> 26:17.280] nothing related to DOS. But there is something interesting. How they can sign the body and put [26:17.280 --> 26:23.940] the signature inside the body. This means that there is something in the GraphQL that is not [26:23.940 --> 26:29.740] being checked correctly, right? That is not inside the signature. And normally, it's just the [26:29.740 --> 26:36.420] signature itself. So, this means that we can add as many signatures as possible. And every time [26:36.420 --> 26:41.940] we had a signature, they were running the check of the entire body all over again. [26:42.400 --> 26:49.680] So, we wrote a script where we will add 10 directives, 500, 1,000, up to a million. And [26:49.680 --> 26:58.800] check the request every time. What happened? The first 10 directives, 0.9 seconds to answer. [26:58.800 --> 27:05.740] 500 directives, one second. We had 5,000 directives, 2.7. 10,000, 2.6. Don't know [27:05.740 --> 27:14.840] what happened here. 50,000, 6.5, and then up to 1,109,000 seconds. So, we had 1 minute 40 [27:14.840 --> 27:26.180] per request, which is huge. This was found with Rezo and Google gave us a 6K for that. And I [27:26.180 --> 27:34.420] think that compared to the presence in the world, the impact is really high for that kind of stuff. [27:34.420 --> 27:42.080] And overall, for all the GraphQL DOS that we did in the back... oh, sorry. Pro tips. Yeah, [27:42.080 --> 27:49.400] this one is important. GraphQL exposes WebSockets, depending on the configuration and on the backend. [27:49.860 --> 27:57.260] But this WebSocket server usually do not have any WAF or any check, and people often forget that [27:57.260 --> 28:03.400] it exists. So, if you have rate limiting in place and you want to exploit any GraphQL DOS, you can [28:03.400 --> 28:11.360] just go to the WebSocket and there is no security anymore. And if you like actually GraphQL hunting, [28:11.360 --> 28:18.600] if you go to the WebSocket, you can also have introspection and other GraphQL configurations. So, [28:18.600 --> 28:23.840] it might actually give you a lot more attack surface. So, that's another GraphQL pro tip. [28:23.840 --> 28:32.420] And overall, with all the GraphQL services, we made 70K bounty. So, every time you see GraphQL, [28:32.420 --> 28:39.640] just say to yourself, we can take it down. Okay. I had to rush a little bit this presentation [28:39.640 --> 28:45.520] because we were having this HTML problem. So, let's go to the conclusion. Let's talk about [28:45.520 --> 28:52.480] the timeline of this entire dinner of service research. The first dinner of service that we [28:52.480 --> 29:01.920] found with Snorlax was in 2022. And the last one that we found was last week. But the main focus [29:01.920 --> 29:07.820] of the entire research was doing eight months last year. So, most of the bounties were made [29:07.820 --> 29:15.600] in a span of eight months. And so, how much bounty overall we made with this entire research? [29:16.840 --> 29:27.720] We made almost $150,000 in bounty, which is a lot. I would say for a technique that is out of scope. [29:27.720 --> 29:34.100] And something that is actually quite interesting is that I think that this could be a main [29:34.100 --> 29:39.720] vulnerability for a lot of bug hunters, but I would say it's better to use it as a side [29:39.720 --> 29:45.520] golden goose. So, for instance, if you like to find a lot of vulnerabilities and then at one point [29:45.520 --> 29:51.420] you have no ideas anymore, just look for a DOS, you'll find one, send it, make a quick bug out of [29:51.420 --> 29:59.300] it. I think it's a good way to do it. Before finishing this presentation, I needed to do a [29:59.300 --> 30:06.380] huge shoutout to Idnama. She's our graphical designer. When I asked her, hey, can you do this [30:06.380 --> 30:11.840] entire presentation for DEF CON, she was like, what do you want me to do again? 2,000 memes, [30:11.840 --> 30:17.560] a lot of reference, a lot of things. I think she did an amazing job. So, huge shoutout to her. [30:18.280 --> 30:22.880] Thanks a lot, everyone, for attending this presentation. I hope you liked it. [30:22.880 --> 30:27.940] And if you have any questions later, I will be happy to answer them.