1 00:00:00,000 --> 00:00:10,560 All right, it is my fantastic opportunity to introduce Ravid and Jay talking about Bolobuster. 2 00:00:12,520 --> 00:00:14,980 All right, all right, check, check. 3 00:00:15,140 --> 00:00:16,380 Everybody hear me? 4 00:00:17,060 --> 00:00:18,840 Okay, great. 5 00:00:19,400 --> 00:00:23,200 So good morning, everybody, and thanks for joining. 6 00:00:23,200 --> 00:00:39,980 We are really excited to present in the AppSec Village, and today we are going to talk about Bolobuster, our methodology that we developed in order to automate detection at scale using LLMs. 7 00:00:42,760 --> 00:00:45,120 But first, let's introduce ourselves. 8 00:00:45,120 --> 00:00:47,000 So my name is Ravid. 9 00:00:47,000 --> 00:00:50,640 I'm a security researcher at Palo Alto Networks. 10 00:00:50,640 --> 00:00:56,880 I expertise in the WAAS field, which is web application and API security, mainly. 11 00:00:57,720 --> 00:01:06,580 And in my free time, I enjoy watching football games, traveling the world, and I take care of my dog, Maple. 12 00:01:10,210 --> 00:01:11,530 Hi, my name is Jay. 13 00:01:11,530 --> 00:01:30,830 I am a security researcher with Palo Alto Networks, and my research has been focusing on identifying the threat and risk in the cloud environment, and recently I have shifted my research focus towards generative AI, in particular looking into the potentially adversarial use of generative AI. 14 00:01:31,010 --> 00:01:36,070 When I'm not working, I spend most of time with my hyperactive twin boys. 15 00:01:36,070 --> 00:01:40,790 They behave just like minions and head off to the parent there with young kids. 16 00:01:40,790 --> 00:01:44,350 I know how difficult it is to take care of young kids when working. 17 00:01:44,350 --> 00:01:54,190 And I'm also a cat lover, so I also spend a lot of time scrolling through funny cat videos when I'm not working or working. 18 00:01:57,970 --> 00:02:01,950 Great, so let's go over the agenda for today. 19 00:02:01,950 --> 00:02:05,790 So we are going to cover the concept of BOLA. 20 00:02:05,930 --> 00:02:11,150 We will show you our methodology of automating BOLA hunting using LLMs. 21 00:02:11,190 --> 00:02:16,350 You are going to see a real BOLA testing that is part of our methodology. 22 00:02:16,770 --> 00:02:28,750 And finally, you will see how we hunted down 17 new BOLA vulnerabilities in one of the most popular open source projects out there. 23 00:02:32,250 --> 00:02:36,790 So broken object level authorization or short for BOLA. 24 00:02:38,030 --> 00:02:43,510 So our motivation for the research was pretty huge, I would say. 25 00:02:43,510 --> 00:02:53,030 For those of you who are not familiar with BOLA, it is ranked at the top risk at the OWASP API top ten. 26 00:02:53,470 --> 00:02:58,490 And it is also the fourth most reported vulnerability in HackerOne. 27 00:02:58,490 --> 00:03:01,150 So it's really popular and it's really severe. 28 00:03:02,550 --> 00:03:09,690 And yet, there is no automation tool that can actually and reliably detect BOLA at scale. 29 00:03:10,150 --> 00:03:18,210 So all of this was a big reason for us to try to solve basically an unsolved issue today. 30 00:03:20,390 --> 00:03:24,610 And let's understand first what is exactly BOLA. 31 00:03:24,890 --> 00:03:37,510 So if you take a look at this example, we have a patient, we have a clinic application and we have a patient that can query his visit ID and get his doctor notes. 32 00:03:37,610 --> 00:03:39,230 Pretty straight forward. 33 00:03:39,570 --> 00:03:47,850 But what would happen if this patient would decide to act maliciously and try to fetch another visit ID that does not belong to him? 34 00:03:48,810 --> 00:03:56,670 If he would be able to do it, it means that the back end will have an authorization issue and this is basically a BOLA. 35 00:03:56,870 --> 00:04:16,530 So in a straight forward way, if I can delete or modify let's say Jay's comment from Twitter or Instagram, this is a clear BOLA because I shouldn't have the permission to access, modify or delete another user object that does not belong to me. 36 00:04:17,730 --> 00:04:20,210 And the consequences can be huge. 37 00:04:20,250 --> 00:04:26,690 It can start from data leaks to data manipulation and even the full account takeover as we will see today. 38 00:04:30,570 --> 00:04:36,130 We faced many challenges when we tried to automate the process of BOLA detection. 39 00:04:36,550 --> 00:04:39,990 The first was the complex authorization mechanism. 40 00:04:40,470 --> 00:04:48,370 So application these days actually has typically multiple users with multiple roles with multiple resources. 41 00:04:48,830 --> 00:04:52,710 So it's very difficult to say which user can do what. 42 00:04:52,710 --> 00:04:56,490 Which user is allowed to do which action exactly. 43 00:04:56,730 --> 00:04:59,550 And this really can get complex. 44 00:05:00,550 --> 00:05:03,750 Also applications are stateful today. 45 00:05:03,750 --> 00:05:10,490 So each action you make or each API call you make can affect the state of the application. 46 00:05:11,010 --> 00:05:15,010 And basically each endpoint is dependent on one another. 47 00:05:15,010 --> 00:05:20,650 So imagine you try to delete a comment from an article or a post. 48 00:05:21,310 --> 00:05:28,410 So first you would need to create this post and create a comment for this post and only then you will be able to delete this comment. 49 00:05:28,510 --> 00:05:30,310 So they are dependent on each other. 50 00:05:30,310 --> 00:05:34,150 You cannot isolate one of them. 51 00:05:34,450 --> 00:05:41,050 And the execution order is really important in order to not have any technical issue. 52 00:05:41,590 --> 00:05:48,950 So it is a big challenge to understand that these endpoint dependencies actually. 53 00:05:51,050 --> 00:05:56,270 Also BOLA doesn't have a there is a lack of vulnerability indicator basically. 54 00:05:56,270 --> 00:06:06,730 So unlike XSS or SQL injection which is pretty straightforward to recognize the pattern of the payload, BOLA is a logical error. 55 00:06:06,770 --> 00:06:09,730 So it's not really malicious by definition. 56 00:06:09,910 --> 00:06:14,150 So it's hard to analyze and understand whether it is a BOLA or not. 57 00:06:16,310 --> 00:06:18,650 And lastly the context. 58 00:06:18,790 --> 00:06:26,010 So we try to understand which endpoint in the application and which parameter contains sensitive data. 59 00:06:26,190 --> 00:06:29,370 And it's not that easy to understand it. 60 00:06:29,410 --> 00:06:36,110 And also to understand what is the impact actually of each action that we can take in the application. 61 00:06:36,870 --> 00:06:44,830 So all of this was pretty big challenges that we faced during the process. 62 00:06:49,790 --> 00:06:51,850 Thanks, Ravi, for covering the background. 63 00:06:51,850 --> 00:06:57,670 I hope everyone understands why automating data BOLA detection is difficult. 64 00:06:57,930 --> 00:07:07,410 So it was only two years ago that we realized that AI may be able to give this problem a glimpse of hopes. 65 00:07:07,730 --> 00:07:17,070 Because of the recent advancement of AI, we were provided with new tools to solve the problem that were not possible to solve in the past. 66 00:07:17,290 --> 00:07:30,750 And also in particular, our challenge of extracting context and logic information from textual data aligns well with the capabilities of large language model. 67 00:07:30,750 --> 00:07:36,230 So that's the start of our journey in using AI to solve BOLA detection. 68 00:07:36,950 --> 00:07:40,790 Here is a high-level overview of our methodology. 69 00:07:40,790 --> 00:07:47,390 The only required input of our methodology is an OpenAPI spec or a Swagger spec. 70 00:07:47,690 --> 00:07:53,790 The first stage, identify the endpoint that can be vulnerable to BOLA. 71 00:07:53,790 --> 00:07:57,470 Not every endpoint can be vulnerable to BOLA. 72 00:07:57,470 --> 00:08:07,390 We used AI to help analyze every endpoint and its parameters to determine, to select a subset of endpoints as our target. 73 00:08:07,790 --> 00:08:18,890 This step helped us narrow down our target endpoint and avoid wasting time on the endpoints that are not at risk. 74 00:08:18,890 --> 00:08:26,670 We call this endpoint a potentially vulnerable endpoint, short for PVE, or target endpoint. 75 00:08:26,670 --> 00:08:32,750 We will refer to this endpoint as target endpoint or PVE in the rest of the talk. 76 00:08:32,810 --> 00:08:37,830 The next stage, uncover the dependency relationship between endpoints. 77 00:08:38,170 --> 00:08:40,390 Modern web applications are complex. 78 00:08:40,390 --> 00:08:43,890 Typically, one endpoint depending on many others. 79 00:08:43,890 --> 00:08:54,370 For example, in order to test an endpoint that updates an invoice, you first need to call the endpoint that creates the invoice. 80 00:08:54,370 --> 00:09:02,210 And in order to create an invoice, you first need to call the endpoint that creates the transactions that can be included in the endpoint. 81 00:09:02,210 --> 00:09:11,570 As a result, it is crucial to understand the endpoint that my target endpoint depends on before I can accurately test it. 82 00:09:12,530 --> 00:09:26,190 With the endpoint dependency relationship, identify the next stage, calculate the execution path to each target endpoint, and create a test plan for each target endpoint. 83 00:09:26,490 --> 00:09:36,350 The next stage then transforms the test plan into multiple executable bash scripts using large language model. 84 00:09:36,350 --> 00:09:44,530 There may be one or multiple execution paths to each target endpoint, and we aim to cover as many paths as possible. 85 00:09:44,530 --> 00:09:53,670 Finally, we set up a target API server and run all the test script generated in the previous step. 86 00:09:53,790 --> 00:10:00,130 The process of user registration, user login, and token refresh have all been automated. 87 00:10:00,130 --> 00:10:06,070 And we also use AI to help analyze the response and logs produced during the test. 88 00:10:10,360 --> 00:10:13,580 Let's dive into a little bit more detail in each stage. 89 00:10:13,580 --> 00:10:22,420 In the first stage, we try to identify the endpoint with input parameters that reference private, sensitive, or confidential information. 90 00:10:22,420 --> 00:10:25,460 These are the endpoints that we target. 91 00:10:25,460 --> 00:10:27,700 These are our target endpoints. 92 00:10:28,220 --> 00:10:31,100 For example, let's look at the first endpoint. 93 00:10:31,100 --> 00:10:38,620 The username here indicates that the endpoint may reference two data associated with the individual. 94 00:10:38,620 --> 00:10:47,160 If this endpoint is vulnerable to BOLA, an attacker may be able to reset another user's password. 95 00:10:47,160 --> 00:11:00,880 Similarly, if the second endpoint input user email is vulnerable to BOLA, an attacker may be able to change another user's email. 96 00:11:01,460 --> 00:11:12,080 Traditionally, pentesters manually look for this endpoint and their parameters to determine their target endpoint. 97 00:11:12,080 --> 00:11:20,440 This process is slow and cumbersome, especially for very large applications with hundreds of endpoints. 98 00:11:20,440 --> 00:11:28,860 So we use AI's capabilities of reasoning and understanding text to automate this step. 99 00:11:29,340 --> 00:11:42,260 Here is a snippet of our prompt that shows how we teach AI to recognize parameters that may reference two sensitive data. 100 00:11:42,260 --> 00:11:47,920 Essentially, we instruct AI a set of rules and examples. 101 00:11:48,680 --> 00:11:57,540 At the end, AI returns us the endpoint and parameters that meet any of the condition that we provided. 102 00:11:58,240 --> 00:12:03,820 The next stage uncovers the dependency relationship between endpoints. 103 00:12:03,820 --> 00:12:20,140 As I mentioned, due to the complexity of modern web application, each API call may change the state of the application and affect the outcome of other API endpoints. 104 00:12:20,140 --> 00:12:26,860 As a result, it is crucial to identify their dependency relationship before we can test them. 105 00:12:27,930 --> 00:12:35,560 In this diagram, we call the endpoint on the right as consumers and the endpoint on the left as producers. 106 00:12:35,720 --> 00:12:42,340 Producer endpoints output the values that consumer endpoints need as input. 107 00:12:42,340 --> 00:12:49,940 Again, producer endpoints output the values that consumer endpoints use as input. 108 00:12:49,940 --> 00:12:55,480 This is one of the most important concepts in our research, in our methodology. 109 00:12:55,480 --> 00:13:00,420 Let's look at this endpoint as an example, delete user. 110 00:13:00,420 --> 00:13:08,240 In order to correctly test this endpoint we need to feed it with an existing username. 111 00:13:08,240 --> 00:13:19,220 If we feed it with a random variable, a random username, this endpoint will always, the API call will always fail and give us meaningless result. 112 00:13:19,220 --> 00:13:22,640 That's why we need to identify its producers. 113 00:13:22,820 --> 00:13:32,600 In this case, this consumer endpoint has four producers and each of them can output the existing username that endpoint can use. 114 00:13:33,540 --> 00:13:42,980 Here is a snippet of the prompt that we use to teach AI how to recognize dependency relationship. 115 00:13:44,000 --> 00:13:56,720 I want to emphasize that also we can use heuristic algorithm to match the output parameter name of an endpoint with the input parameter name of a consumer. 116 00:13:56,880 --> 00:14:00,960 This heuristic algorithm is not reliable. 117 00:14:00,960 --> 00:14:11,080 The reason is that developers sometimes use different parameter names to reference the same data object within the system. 118 00:14:11,080 --> 00:14:19,820 Developers may also use the same parameter names to reference different data object across the system. 119 00:14:19,820 --> 00:14:26,840 That's why we use a combination of heuristic and AI to uncover the dependency relationship. 120 00:14:26,840 --> 00:14:39,440 We need AI to analyze each parameter endpoint's functionality in order to reestablish their dependency relationship based on their functionalities. 121 00:14:42,040 --> 00:14:55,620 Once we have the, using the dependency relationship uncovered in the previous stage, this stage build up a dependency tree for each potentially vulnerable endpoint. 122 00:14:55,620 --> 00:15:05,100 In this dependency tree, the root node represent our, one of our target endpoint, or PVE. 123 00:15:05,100 --> 00:15:20,960 And any two directly connected nodes in a tree represent a consumer and producer relationship in which consumer, the parent node is a consumer and the child node is a producer. 124 00:15:21,960 --> 00:15:25,020 Let's use the upper half of a tree as an example. 125 00:15:25,100 --> 00:15:30,600 In this case, endpoint is a producer of PVE. 126 00:15:30,700 --> 00:15:35,180 Endpoint output the value that PVE need as an input. 127 00:15:35,180 --> 00:15:47,240 And endpoint one itself also has two producer, endpoint three and four, which produce the output that endpoint one need as the input. 128 00:15:48,480 --> 00:15:59,560 Finally, in the next stage, we turn, we calculate the execution path to each potentially vulnerable endpoint. 129 00:16:00,320 --> 00:16:10,120 So in the dependency tree, a path from the leaf node to the root node represent an execution path. 130 00:16:10,120 --> 00:16:14,160 This is a reverse tree traversal. 131 00:16:14,160 --> 00:16:21,780 So the path is actually from the leaf node to the root node instead of from the root node to the leaf node. 132 00:16:21,840 --> 00:16:26,600 And let's plug in some real endpoint to see how we do the calculation. 133 00:16:26,600 --> 00:16:30,980 In this example, the target endpoint is delete comment. 134 00:16:30,980 --> 00:16:37,380 And this endpoint has two producers, get comment and post comment. 135 00:16:37,760 --> 00:16:43,860 And these two producers in turn also each has two producer. 136 00:16:43,880 --> 00:16:52,920 So at the end, there are four execution paths that can all reach the target endpoint delete comment. 137 00:16:54,100 --> 00:17:12,320 In the last stage, we then turn each execution path into an executable bash script using large language model and run the script to actually send HTTP request to the target endpoint. 138 00:17:12,800 --> 00:17:21,240 The process is more complicated than just generating and sending the request as Ravid will explain in the next few slides. 139 00:17:24,220 --> 00:17:25,100 Great. 140 00:17:25,100 --> 00:17:28,780 Thank you Jay for the overview of our methodology. 141 00:17:29,200 --> 00:17:42,360 And before we can see actually a real BOLA test and view our BOLA that we found, let's see the prerequisites that we have before we can create an actual test. 142 00:17:42,360 --> 00:17:50,480 So we use LLMs again to create the user registration process and to collect the login data of the application. 143 00:17:51,760 --> 00:18:01,460 So basically we generate user LLM, generate user credentials that meets the criteria in terms of the, for example, password complexity and ATC. 144 00:18:02,080 --> 00:18:09,680 And we execute the user registration process and we fetch the login data from the spec. 145 00:18:09,680 --> 00:18:21,360 So this is crucial in order to then log in the users of the specific test and get a valid and unique token for each one of them. 146 00:18:22,060 --> 00:18:27,700 This information will be stored in a dedicated file so we will have an easy access and usage. 147 00:18:29,180 --> 00:18:32,960 Then we will want to isolate the test data. 148 00:18:33,740 --> 00:18:39,900 So if you ever saw a swagger or open API spec file, you know that it can be huge. 149 00:18:39,900 --> 00:18:45,300 It can be thousand lines of code, especially for the biggest, for the bigger applications. 150 00:18:45,300 --> 00:18:51,800 And we want to isolate only the data that is needed for the specific test. 151 00:18:52,500 --> 00:19:01,680 So Jay mentioned that we have a consumer and producers in each test so we would like to have only the data which is relevant to these endpoints. 152 00:19:02,420 --> 00:19:12,280 So we will create a new file, we will feed it to AI and it will save us about 90 to 95 percent of the spec. 153 00:19:12,880 --> 00:19:21,740 So we do it for efficiency to ensure that LLM will get only the accurate data that it actually needs for each test creation. 154 00:19:22,580 --> 00:19:28,460 And for cost, we want to have as lowest tokens as we can. 155 00:19:30,690 --> 00:19:38,150 And finally, we're creating the test script and it will be saved as an executable bash script. 156 00:19:38,550 --> 00:19:44,410 You can see an example of a very simple consumer and producer. 157 00:19:44,410 --> 00:19:49,430 We have a put user password and a get user to get the user name. 158 00:19:49,810 --> 00:19:53,490 This kind of test will be saved in a put get directory. 159 00:19:53,750 --> 00:19:56,630 Put would be the parent, get would be the child. 160 00:19:58,490 --> 00:20:03,410 And the test generation actually runs asynchronously in order to save time. 161 00:20:04,290 --> 00:20:09,190 And right now we averaged a 1.5 second for each test. 162 00:20:09,190 --> 00:20:11,090 And we have a 1 .5 second for each test creation. 163 00:20:13,190 --> 00:20:20,490 Right, so the final step would be to actually run the test script in the application. 164 00:20:21,110 --> 00:20:30,650 So we have an execution order and our main goal is to avoid any chance that a test would fail due to technical reasons. 165 00:20:31,010 --> 00:20:35,170 So we want the test to fail only if the PVE is not vulnerable to BOLA. 166 00:20:35,170 --> 00:20:36,390 It should be. 167 00:20:37,270 --> 00:20:43,370 So we will first run the test that populate data and resources to the application before we can fetch them. 168 00:20:45,110 --> 00:20:56,390 And also we will try to push and delete, to push update and delete operation to the end so we won't experience a scenario where we delete a user or delete a resource and then try to fetch it. 169 00:20:56,790 --> 00:21:05,850 So again, the main reason for this is not to have technical issues in the test that will make it fail eventually. 170 00:21:07,830 --> 00:21:20,210 So right after we finished our, preparing our methodology, we wanted to evaluate our BOLA buster actually and see the results. 171 00:21:20,570 --> 00:21:28,230 So what we did is we took the, maybe the best API fuzzer, which is open source right now, which is Ressler. 172 00:21:28,670 --> 00:21:31,890 Ressler is a Microsoft developed API fuzzer. 173 00:21:31,890 --> 00:21:34,030 You can find it on GitHub. 174 00:21:34,830 --> 00:21:42,930 And its goal is to automate the process of API testing and to find vulnerabilities, like our goal. 175 00:21:43,450 --> 00:21:52,290 So what we did is we took three open source applications which are deliberately vulnerable to the OWASP API top ten. 176 00:21:52,750 --> 00:21:55,170 We took Vampy, Capital and Crappy. 177 00:21:55,170 --> 00:21:59,450 You can see from the table that they have unknown BOLAs. 178 00:21:59,930 --> 00:22:03,810 And we started to test our tool against Ressler. 179 00:22:05,370 --> 00:22:16,870 As you can see, Ressler could not identify any BOLA of these applications and it made a pretty big number of API calls. 180 00:22:16,870 --> 00:22:19,850 Thousands and even hundreds of thousands. 181 00:22:20,870 --> 00:22:26,750 Then we tested our tool, again the same application, and the results were amazing. 182 00:22:27,310 --> 00:22:35,970 I hope you can see, we found all the BOLAs in each one of the applications and we made significantly lower API calls. 183 00:22:36,090 --> 00:22:41,230 So eventually we made less than one percent of the calls that Ressler made. 184 00:22:41,790 --> 00:22:44,070 So this is a crucial part. 185 00:22:44,070 --> 00:22:52,410 It proved our efficiency and we didn't make the application load too much. 186 00:22:53,890 --> 00:22:59,730 Finally we wanted to have a 100 percent true positive rate. 187 00:23:00,250 --> 00:23:05,910 So our goal was to find any BOLA if it exists in the application. 188 00:23:06,270 --> 00:23:17,390 We did have some false positives, you can't avoid it, but again our main goal was to focus on the true positive rate which was 100 percent. 189 00:23:20,200 --> 00:23:25,020 Now we can take a look on a real scenario for a BOLA test. 190 00:23:25,260 --> 00:23:38,200 So we have this high level example where first Alice create an article, then Alice create a comment for this article, and then Bob will try to delete Alice's comment which is the PVE. 191 00:23:39,820 --> 00:23:46,480 So first Alice and Bob will log into the system, they will get a unique token which will be saved. 192 00:23:48,160 --> 00:23:52,740 Alice will create a new article in the system, we will save the article title. 193 00:23:54,060 --> 00:24:06,860 We will do the same with the comment, so Alice will create a comment, we will save the comment ID, and finally the PVE, the maliciously Bob will try to attempt to delete Alice's comment. 194 00:24:07,400 --> 00:24:09,860 And this scenario can have two results. 195 00:24:10,520 --> 00:24:21,840 If it will be successful we will have a potentially BOLA for this endpoint, or if the application can defend BOLA as well, so it will be forbidden. 196 00:24:23,800 --> 00:24:26,960 Let's see the actual snippet of our code. 197 00:24:27,320 --> 00:24:42,240 So first of all we will create a unique random string each time, so we will be able to create an article for multiple tests without getting an error that it already exists. 198 00:24:43,080 --> 00:24:58,440 So as you can see we make a POST request to slash API slash articles, you can see that we use user A token which reference to Alice, and we use the article title as a random string. 199 00:25:00,820 --> 00:25:05,500 We will save the slide which is in this case the article title. 200 00:25:08,300 --> 00:25:21,260 Next Alice will create a comment, so what's special about this is that if you take a look at the actual endpoint, you can see that we dynamically use SLAG. 201 00:25:21,440 --> 00:25:28,700 So we saved this parameter from the previous request, and then we dynamically use it. 202 00:25:28,700 --> 00:25:36,080 So now we can reference to it as a, we can know that this resource actually belongs to Alice. 203 00:25:38,080 --> 00:25:45,400 Again, we save the comment ID, and then finally we use the PVE, the delete operation. 204 00:25:45,880 --> 00:25:52,700 You can see again that we use SLAG and comment ID that belongs to Alice. 205 00:25:52,860 --> 00:26:02,020 And the main difference, now we use the user B token, so now we can identify that this request is made by Bob and not Alice. 206 00:26:02,980 --> 00:26:05,520 And lastly we will check if the test passed. 207 00:26:06,300 --> 00:26:14,300 Now I want to emphasize that actually every boiler test that we make is, if you think about it, is malicious by definition. 208 00:26:14,920 --> 00:26:23,220 The last request, the PVE, will always, we will try to perform an action that you shouldn't be able to perform, right? 209 00:26:23,320 --> 00:26:26,600 Bob shouldn't be able to delete Alice's comment. 210 00:26:26,720 --> 00:26:41,100 So in case it is successful, we can mark this test as at least potentially vulnerable to boiler before we can make further analysis and verification let's say in the application context. 211 00:26:41,520 --> 00:26:46,840 So you just need to understand that every boiler test is malicious by definition. 212 00:26:50,150 --> 00:26:55,030 So let's see how we actually hunted some boilers in the wild. 213 00:26:57,840 --> 00:27:01,580 We have a quick demo of showing the running of the tool. 214 00:27:02,040 --> 00:27:19,760 So this is a Python based and it will, I hope you can see, it's testing each API endpoint and in case the result is successful, it will mark it with boiler found and the actual API endpoint. 215 00:27:20,760 --> 00:27:28,380 After this we will take the list and we'll further analyze it and try to understand if this is a real boiler or not. 216 00:27:30,940 --> 00:27:35,300 So all of these applications, it has something in common. 217 00:27:35,300 --> 00:27:37,180 We found boilers in it. 218 00:27:37,620 --> 00:27:39,420 So first of all, Harbor. 219 00:27:40,620 --> 00:27:43,540 It is a cloud native container registry. 220 00:27:43,540 --> 00:27:48,740 It is basically a equivalent to Docker Hub, which I'm sure most of you are familiar with. 221 00:27:49,220 --> 00:27:56,380 It is a CNCF graduated project, so it's been in the wild for a while. 222 00:27:57,400 --> 00:28:07,740 It has around 2 million downloads these days and we actually found, this year we found a new boiler, which we will talk in a bit. 223 00:28:08,940 --> 00:28:10,940 And next up, Grafana. 224 00:28:10,940 --> 00:28:13,840 It's a data visualization and monitoring tool. 225 00:28:13,920 --> 00:28:15,400 Very, very popular. 226 00:28:15,400 --> 00:28:19,980 It's being used by 20 million users actually these days. 227 00:28:20,140 --> 00:28:23,220 And we also found a new boiler there. 228 00:28:24,940 --> 00:28:29,020 And lastly we have Easy Appointments, which is an open source tool. 229 00:28:29,460 --> 00:28:39,300 It has almost 200,000 downloads and we actually have been able to find 15 new boiler vulnerabilities there. 230 00:28:40,040 --> 00:28:42,400 A little bit. 231 00:28:43,340 --> 00:28:48,640 The most amazing thing about it is actually that 7 of them are critical. 232 00:28:49,360 --> 00:28:58,220 So they got a CVSS of 9.9 which actually allows a low privilege user to gain admin access. 233 00:28:58,220 --> 00:29:05,080 Remember we talked about compromise, so we have a full application compromise in this case. 234 00:29:07,460 --> 00:29:10,300 Let's talk about Arbor vulnerability. 235 00:29:10,300 --> 00:29:11,860 It's pretty interesting. 236 00:29:12,740 --> 00:29:16,420 So Arbor has projects in it. 237 00:29:16,420 --> 00:29:22,100 You can have roles, so you can be an admin, a maintainer, a developer or a guest. 238 00:29:22,680 --> 00:29:29,760 Basically we found the vulnerable feature to be the project configuration metadata. 239 00:29:30,780 --> 00:29:34,220 So I hope you can see the attributes there for the configuration. 240 00:29:34,380 --> 00:29:45,580 Basically an admin can change the project to be private, public, it can implement some image vulnerability scanning and have more power. 241 00:29:46,680 --> 00:29:56,500 So Arbor claimed that in the official documentation that only the admin project should be able to create and modify this kind of configurations. 242 00:29:56,520 --> 00:29:58,180 Which makes sense. 243 00:29:59,200 --> 00:30:06,160 And actually we found out that an unauthorized user can do the same operation. 244 00:30:06,340 --> 00:30:15,380 So we tried to play with the roles of the project and we saw that the maintainer for example could not make any change via the UI. 245 00:30:15,420 --> 00:30:20,880 So this is a maintainer login which is grayed out, you cannot modify it. 246 00:30:21,600 --> 00:30:29,500 But maintainer can actually create, delete and modify these attributes via the API. 247 00:30:29,520 --> 00:30:35,180 So there is a big discrepancy between the UI and the API behavior. 248 00:30:35,580 --> 00:30:41,820 And this vulnerability actually create an extent in the maintainer privileges. 249 00:30:42,120 --> 00:30:55,980 So now a maliciously maintainer could be able to make a private project public, deploy unverified images and actually control every configuration that you can control in a project. 250 00:30:57,160 --> 00:31:00,720 And as you can imagine the consequences can be pretty high. 251 00:31:00,720 --> 00:31:08,120 So we can compromise the whole integrity of a project and actually the security posture. 252 00:31:10,040 --> 00:31:15,560 So Harbo verified, that's it, okay. 253 00:31:15,560 --> 00:31:22,560 So just would say that Harbo identified this vulnerability and you can find it in their security advisory. 254 00:31:22,560 --> 00:31:30,320 We got a CVE and you can check out our blog about it when we technically talk about how we found this. 255 00:31:30,320 --> 00:31:31,380 Okay , thanks. 256 00:31:35,420 --> 00:31:42,040 I will just use the last 30 seconds to share the most important lessons we learned from working with AI. 257 00:31:42,040 --> 00:31:44,960 First, AI isn't always the best solution. 258 00:31:45,500 --> 00:31:52,960 Problems with existing heuristic solutions should not be solved by AI like sorting, finding trees or solving equations. 259 00:31:52,960 --> 00:31:59,140 Those problems have existing optimal solutions and always use heuristic rather than AI. 260 00:31:59,140 --> 00:32:01,220 Second, don't trust, always validate. 261 00:32:01,220 --> 00:32:05,120 Blindly trusting the output of AI can be very, very dangerous. 262 00:32:05,300 --> 00:32:11,340 So always validate the output of AI before using them or passing them to the next stage. 263 00:32:11,340 --> 00:32:14,380 Finally, makes AI's jobs easier. 264 00:32:15,080 --> 00:32:25,600 Treat AI like a very capable junior worker who can do simple tasks exceptionally well, but can start making mistakes when the job becomes more complex. 265 00:32:25,600 --> 00:32:33,720 So when working with AI, it is always a good idea, good strategy to use divide and conquer to simplify its task. 266 00:32:34,100 --> 00:32:36,260 Thank you so much.