All right, I would like you all to give me, put your hands together and welcome to the stage our next presenters, Nix and Charlie. I am so sorry. Hey, yeah, so today we are talking about hacking corporate banking for fun and profit. So introducing myself, I'm a full-time bug bounty hunter for, uh, for SNAC. Uh, uh, I also recognized, uh, uh, in 2021 as, uh, and as one of the legend hacker. And, uh, I will, sorry. Okay. Uh, I'm also, I'm also founder of, uh, B-Sides Ahmedabad and, uh, uh, I am advisor at, uh, riskprofiler.io. Hey guys, my name's Charlie Waterhouse. Um, I am a security analyst and was on the back side of this, helping triage these vaults as they came in. And we kind of worked together to go a little further and figure out some stuff on this. Um, I have spent non-traditional and pen testing background. I spent 22 years as an airline flight attendant, international, uh, manager and speaker and translator. In the meantime though, I've also done over 2,400 engagements, uh, based on OWASP and reviewed about 25, 30,000 reports from a lot. Some of you guys out here, uh, that have seen me on the back end of that. Um, I work with a lot of our large corporate clients to help them understand the flaws. And as I like to say, translate the geek side to non-geek so that the guys who are not technical understand what we're looking at. So to start, we're going to give you guys a little bit about this. Um, during the bounty hunt on this, we were kind of looking at, this was a private program for a large, large bank. Um, and the scope was our corporate banking application. This is the back end where they're doing transfers and setting up stuff. Um, after exploring a bit, we found that there was a third party application that was running and, uh, claimed to be used by 60% of the banks. So this was like, okay, now we can start digging a little more. The program has three roles. We have a maker, verifier and checker. The maker initiates a transaction. Uh, the checker ensures everything's in place and ready to go. Verifier is the final checkbox. And so the app has corporate groups. Each was managed by different branches and they're all separate and not linked to each other, recognized by GCIF. Now, one of the things we found out from my end, when we started looking, louder, louder, always. Okay. So when we started looking, we found that the GCIF is actually kind of a unique thing. I just, we started poking around. This is a Google patent for linking your bank accounts together. So let's say that you have a large corporate bank. You have a loan that's for your house, for your car, for your bank, for your credit cards. They all link you through your GCIF. So it's your universal identifier across different divisions within the same bank. So let's keep that in mind when we're going through this. And next slide. So we can see what each role looks like with the maker, the verifier and the authorizer. These are pretty standard and look pretty similar. So at this point, um, Nick, so you want to take it over where you were at on this. Yeah. So, uh, so client has given, uh, some, uh, SLAs when they are going to fix all these vulnerabilities. So starting from critical, uh, which, which is, which has been given that, uh, they will fix in like 15 days, uh, high up to 30 days, medium up to 90 days, but they, they never followed it and they fix all the vulnerabilities after one year. So, uh, there you go. So getting to know the application, uh, it's using servlets and kind of a single page app, which we tend to kind of go, eh, not much there. Um, the maker role has administration, uh, application module on it. And so we're kind of noted that, and that, uh, each role has custom permissions, but the maker role does have that admin, um, but it doesn't have all the admin permissions. Um, there's a servlet path for the front office, uh, that we see here and the admin path. What we kind of want to focus on though, is these widget IDs and the event IDs, because these are going to come critical as we go through and we're going to use them through those, uh, modifiers, several pages with keywords that we saw with that event ID. And then we had the modifiers to go in with it. And then the front office was in the web portal spot and input validation was required to get in. Excellent. So there was, uh, there was two sides of this application. One is, uh, front-end and the other is, uh, the back-end. Back-end is not really a back-end, but they have given, uh, custom permissions on it. Uh, the, it is a kind of very large application, so, uh, they haven't provided much, much of, uh, uh, like, uh, permissions on it. So, uh, so when there was, uh, demo, uh, sorry, so as I, so I started recording on the application, uh, I found that, uh, they are running, uh, a third-party application. And this third-party application was, uh, demo only, so I couldn't find much information available on the, uh, and I don't want to call them and, uh, have a demo set up for myself. Uh, so I go ahead and, uh, decided to review their, uh, JavaScript files. Uh, JavaScript, uh, so basically, uh, this application has two event IDs, uh, two, uh, two, uh, parameters, event IDs and, uh, widget, widget IDs. So, uh, what I did, I, uh, and, uh, and there was, there was one more parameter, GC, uh, GCIF, which, uh, Charlie just, uh, explains that, uh, is used to, uh, and it, uh, identify the bank customer all across the world. So, uh, what I did, I, uh, used, uh, uh, GraphScript to, uh, uh, figure out all the event IDs because what happened is, uh, if you want to serve any functionality in this application, you have to change the, uh, event IDs, uh, uh, in the, in the parameter and you will get, uh, uh, if you, if you have access to that, uh, particular functionality, you will, uh, uh, able to load it. So, uh, what I did, I just, uh, grabbed all the, uh, event IDs, uh, through, through, uh, GraphScript and, uh, uh, and, and each, uh, there, there was, uh, like common.js, uh, file, but, uh, in each page you load, uh, the event IDs, you will get a new, uh, JavaScript file and it has, uh, it, it will contain a new, um, event IDs, uh, for, uh, next, maybe for the next functionalities. So, uh, so this is like, uh, uh, this is like, uh, a few, uh, event IDs that I found, uh, from, uh, just, just to start from. And, uh, after I, uh, after I go load these event IDs in the application, I, uh, found like more than, uh, 500, uh, modules running on this application. So, so starting from, uh, the, our first findings, uh, so it, it, it's an acceleration from, uh, authorizer to admin role. So what they're doing that, uh, the maker role has, uh, admin button. So, uh, when, when I click the admin button, it will redirect me to the admin, admin panel of it. But, uh, the admin panel also do not have much permissions available, uh, just a couple of, uh, couple of, uh, modules are loading. So what I, so, uh, when I click, click the, uh, click that, uh, uh, admin role, uh, what I found that, uh, they are generating, uh, they are basically, uh, checking that if, uh, this, uh, role has, uh, dual, dual code, uh, dual role available on their, uh, on their, uh, um, on their, uh, uh, privilege. I mean, on their, like, like if, if I go through, uh, authorizer, it will check that, uh, if, uh, if this, uh, role has, uh, dual permissions available or not. Uh, if dual permissions are available, it will, uh, assign that, uh, admin panel to me. So, uh, uh, uh, what I did, I just, uh, load this URL from, uh, from the, uh, uh, from the, uh, authorizer role and, uh, it will, uh, allow me access to, uh, the admin panel, but there was no module was loading. There was just, uh, they were just maybe just, uh, hiding the modules, uh, uh, from the admin application. So what I did, I just used the event IDs, uh, put the event IDs in, uh, in the, uh, parameter and try to load, uh, try to load different, uh, modules, uh, from this generated, uh, uh, admin session from the authorizer role. So, uh, I, I did it one by one, uh, from the, uh, uh, starting from the user list report. So, uh, when I, when I load the event IDs, uh, I found that, uh, the, uh, pages, uh, uh, template pages were loading and while, uh, clicking on submit, I was able to access all their, uh, user, uh, from the, from an authorizer role. Uh, so, uh, using those event IDs and there are some frames URLs as well, so the frames URLs are connecting, uh, uh, connecting to the event IDs only. So, uh, uh, uh, whatever you load, even the, uh, even the frames or, uh, event IDs, you will get the same information and, uh, uh, just, uh, by loading one by one, uh, event IDs, you will actually able to, uh, access all of their admin panel from an authorizer or verifier role. So it was just hiding, hiding the, uh, hiding the, uh, uh, uh, modules, uh, not actually authorizing the, uh, user, uh, for, for that particular role. So, this is the, this is the second finding, uh, I found like, uh, this is again, um, I'm, uh, I was using, uh, uh, uh, event IDs to load up, uh, to load a particular, uh, particular, uh, function. So what I did, I, uh, using GS, uh, GS link finder, I, uh, caught up with a particular page, uh, limit setup main page.gsp. And, uh, when I load this page, I was actually able to, uh, get a, uh, get a, um, uh, get a page where, uh, I was able to, uh, set up their, uh, customers, uh, whatever, whatever, uh, withdrawal or whatever daily limit they want to set for each customer. So, uh, I can set it for, uh, their all customers as well. So, uh, once I, uh, click and, uh, they just, uh, simply, uh, set up their, uh, limit to all the, all the customers they have. You missed the meme here. Yeah. Last minute prep. Sorry, guys. Missed the meme. There was supposed to be a very surprised cat there. So, yeah. So, uh, so when, when I, uh, so there was another, another part of this, uh, uh, this, that I didn't, I didn't, uh, tell you that when you, once you submit the, submit the, uh, uh, submit any request, it will actually go to the, uh, go to, uh, as authorizer. So you have to authorize that request in order to get it approved. So, uh, so these IDs are, uh, these event IDs are quite simple. So as you say, as you can see, if you want to, uh, weave, weave any page or modify any page or, uh, authorize any page, you just have to modify a simple value like view modify auth, uh, and just, just have to, uh, just have to, uh, alter those values to, uh, set, set this up. And, uh, uh, once, once you load this, uh, let's say you modify something and, uh, you end up, uh, in authorization page and, uh, you just have to modify the auth ID. And, uh, once you, once you go to the auth ID, you will, uh, you will have to do, I mean, uh, they, they display, uh, uh, the value you just modified. You just have to, uh, authorize that value to, uh, have it set up for all the users. So, so, uh, since I, uh, since I modified, uh, value from here, uh, I just, uh, modify, I just, uh, go to the, uh, authorization page and there was a request pending that, uh, uh, that, uh, this, this particular thing is modified. You just have to authorize it or unauthorize, uh, unauthorize it. So just for, uh, since, since it, it was client application and I don't want to, uh, uh, impact it, uh, much, so I just, uh, use the unauthorized button to simply reject the request which I, uh, just, uh, sent for modification. Since it was for all the customers, so just, just for, uh, safer side, maybe they are using a, uh, broad, uh, behind, uh, and showing us the, this is a staging environment only. So, uh, so from, from, uh, from, uh, authorized page, I just click on the, uh, authorizer ID, which was, uh, uh, which was, which, which I just modified. And, uh, uh, on this page, uh, there was two, two things, uh, authorize, reject, you, uh, if you, if you authorize, it will set up for all the, all the, all their customers. If you reject, uh, it will, uh, instantly reject and, uh, do not modify the, those limits to all the customers. So I just, uh, rejected it and, and simply, uh, got rejected. So, uh, in the finding three, uh, the, uh, it, it was a customer onboarding, um, IDR, um, uh, again, it was, uh, it was through the event IDs only. And, uh, um, I found an interesting event IDs, uh, from the, from the JS that, uh, customer set of view page. So I thought, uh, I thought, uh, I might, I might be able to, uh, I might be able to, uh, set up the customer, uh, customers, uh, information from this page. So, uh, what I did, I just go to the, uh, uh, servlet and I modified the, uh, event IDs to, uh, customer set it, set up, uh, view main page. And, uh, what I, uh, and, uh, there was, uh, and, uh, uh, when, when I loaded, uh, it was actually loading that, uh, customers, uh, uh, customers information. And, uh, uh, there was, there was one more button that is, uh, action. Uh, if you, uh, if you want to modify, uh, put the value in the, uh, uh, event IDs itself. So once, once you get, uh, once you got the, uh, event, uh, once you got the, that customer, you, you have, you just have to, uh, click on it and, uh, um, and, uh, you can, uh, you can modify whatever, uh, the group name or, uh, you can, uh, even, uh, remove the, uh, remove the, uh, uh, corporate ID from, uh, from that particular customer. So, uh, once you remove the corporate ID that, from that customer, uh, actually all their accounts got, get unlinked and, uh, um, they, uh, their, even their customers do not have, uh, do not able to, uh, access their account information. So while, while, uh, so, uh, again, um, once I, once I submit this request, I have to authorize this, uh, so I just modified the, uh, uh, event ID to auth page and, uh, once I go there, I just have to authorize or reject this, uh, in order to, uh, approve it for that, that particular customer. So, uh, while, while, while, uh, while doing this, all of, all of this, I also found, found that, uh, uh, the, the customer setup page was also vulnerable to, uh, accesses. So what I did, I just put the, uh, put the access payload in, uh, their, uh, uh, their, um, relationship manager, uh, name, and, uh, whenever they see the relationship manager, uh, name on their, uh, bank, uh, bank, uh, uh, account, uh, the, the access payload will pop up and, uh, I can, uh, able to grab their cookies just from, uh, just straight from their, uh, uh, their, uh, uh, bank, uh, bank account. So, uh, so the, as I said that, uh, there was, uh, there was two side of this application. One is, uh, the front, front office and one is the back office. The front office, uh, contains the widget, uh, widget servlet and the back office contains, uh, uh, contains the, uh, uh, another, another, uh, servlet. So, uh, so what I did, I just, uh, I just, uh, sort all the widget controller, uh, and, uh, start, uh, fudging for, uh, SQL injection vulnerabilities. What I found that, uh, there was, uh, one parameter that is called DIR. Uh, it was giving me 500 internal server error while supplying a single, single code. So, I, I, so, uh, I thought, I mean, there, there was a change in response, so I thought, uh, let's try some Boolean and blind conditions. So, uh, when I try, when I started, uh, fudging for Boolean and blind based, I found that, uh, there was a Boolean based, uh, blind is working and, uh, the database is Oracle and, uh, I, I just, I just used a SQL map to dump all their, uh, all their, uh, databases and, uh, I was able to fuzz, uh, I was able to get, uh, all of their, uh, all of their, uh, databases dumps. So, uh, since, since I was able to, uh, since I was able to escalate the, uh, escalate the, uh, authorizer role or verifier role in the, uh, admin panel, so I just used an authorizer role and, uh, um, I tried to weave the, uh, customer, uh, customer weave, uh, customer set of view page and, um, I found that the customer, uh, name, customer, customer underscore name was vulnerable to, uh, again, Boolean based blind. And, uh, uh, what I do, I just, uh, went ahead and, uh, uh, started, uh, started the, uh, Escal map on it and, uh, I was able to, uh, dump all their, uh, DB again. So, uh, I got, like I said, like, uh, this was fun and profit, so I got all the fun and I got all of profits as well. So, so later, uh, after an year they come and they said that, uh, uh, we have fixed all the issues. So what they did, they just removed the corporate admin power module from the application and they think that it's, uh, fixed from their site. And on the, on the, on the front end, they, they come after another one year and they put the, uh, Cloudflare, uh, across their application and they think that it's fixed again. Um, so that's... Yeah. So looking at it from my end, from the triage end, you have to ask what the clients always ask us what, what it's matter. Um, if you come in, you do a cross-site scripting, you pop an alert that just says one, the CEO is going to go, okay. What we had to kind of go in and explain to them is not only do we manage to have almost full admin access from any role across your system. We managed to also dump your entire SQL database and showed them a row and a column that we pulled. And so we can also take care of that. And then in addition, anybody who has a relationship manager listed, I can now get their credits. That's all his high value clients. Um, when we see these relationship managers in our banking app, imagine that just stole your ID. That's where they start coming in and they go, oh, and yeah, that's when you want to be that guy going, this is what I found you. Um, and so getting their attention with this, when this hit, they were paying a lot of attention once they saw clearly what the impact was that basically Nix ran rough shot over them. Um, so yeah, that's kind of what we're looking at with bad session management. So anything else add Nix? No, I guess that's, that's all for a month. All right. Thank you guys. Uh, hopefully this was kind of informative and you guys learned something.