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