start	end	text
0	4940	All right, I would like you all to give me, put your hands together and welcome to the
4940	12540	stage our next presenters, Nix and Charlie. I am so sorry.
17290	26630	Hey, yeah, so today we are talking about hacking corporate banking for fun and profit. So introducing
26630	33930	myself, I'm a full-time bug bounty hunter for, uh, for SNAC. Uh, uh, I also recognized, uh, uh,
33930	43650	in 2021 as, uh, and as one of the legend hacker. And, uh, I will, sorry. Okay. Uh, I'm also, I'm
43650	50750	also founder of, uh, B-Sides Ahmedabad and, uh, uh, I am advisor at, uh, riskprofiler.io.
50950	56310	Hey guys, my name's Charlie Waterhouse. Um, I am a security analyst and was on the back
56310	60450	side of this, helping triage these vaults as they came in. And we kind of worked together to go a
60450	65550	little further and figure out some stuff on this. Um, I have spent non-traditional and pen
65550	71110	testing background. I spent 22 years as an airline flight attendant, international, uh, manager and
71110	76710	speaker and translator. In the meantime though, I've also done over 2,400 engagements, uh, based
76710	82030	on OWASP and reviewed about 25, 30,000 reports from a lot. Some of you guys out here, uh, that
82030	86730	have seen me on the back end of that. Um, I work with a lot of our large corporate clients to help
86730	91770	them understand the flaws. And as I like to say, translate the geek side to non-geek so that the
91770	98370	guys who are not technical understand what we're looking at. So to start, we're going to give you
98370	102930	guys a little bit about this. Um, during the bounty hunt on this, we were kind of looking at,
102930	109590	this was a private program for a large, large bank. Um, and the scope was our corporate banking
109590	114390	application. This is the back end where they're doing transfers and setting up stuff. Um, after
114390	119590	exploring a bit, we found that there was a third party application that was running and, uh, claimed
119590	123870	to be used by 60% of the banks. So this was like, okay, now we can start digging a little more.
125510	130330	The program has three roles. We have a maker, verifier and checker. The maker initiates a
130330	134870	transaction. Uh, the checker ensures everything's in place and ready to go. Verifier is the final
134870	139250	checkbox. And so the app has corporate groups. Each was managed by different branches
139250	143730	and they're all separate and not linked to each other, recognized by GCIF. Now,
143730	149630	one of the things we found out from my end, when we started looking, louder, louder, always. Okay.
149670	154630	So when we started looking, we found that the GCIF is actually kind of a unique thing. I just,
154630	159830	we started poking around. This is a Google patent for linking your bank accounts together.
159970	164230	So let's say that you have a large corporate bank. You have a loan that's for your house,
164230	168810	for your car, for your bank, for your credit cards. They all link you through your GCIF. So
168810	174130	it's your universal identifier across different divisions within the same bank. So let's keep
174130	179810	that in mind when we're going through this. And next slide. So we can see what each role looks
179810	184910	like with the maker, the verifier and the authorizer. These are pretty standard and
184910	189570	look pretty similar. So at this point, um, Nick, so you want to take it over where you were at on
189570	198210	this. Yeah. So, uh, so client has given, uh, some, uh, SLAs when they are going to fix all
198210	203450	these vulnerabilities. So starting from critical, uh, which, which is, which has been given that,
203450	210270	uh, they will fix in like 15 days, uh, high up to 30 days, medium up to 90 days, but they,
210270	219200	they never followed it and they fix all the vulnerabilities after one year. So, uh,
219200	225120	there you go. So getting to know the application, uh, it's using servlets and kind of a single
225120	230940	page app, which we tend to kind of go, eh, not much there. Um, the maker role has administration,
230940	236580	uh, application module on it. And so we're kind of noted that, and that, uh, each role has custom
236580	241520	permissions, but the maker role does have that admin, um, but it doesn't have all the admin
241520	247760	permissions. Um, there's a servlet path for the front office, uh, that we see here and the admin
247760	252560	path. What we kind of want to focus on though, is these widget IDs and the event IDs, because
252560	256700	these are going to come critical as we go through and we're going to use them through those, uh,
256700	262120	modifiers, several pages with keywords that we saw with that event ID. And then we had the
262120	266720	modifiers to go in with it. And then the front office was in the web portal spot and input
266720	274460	validation was required to get in. Excellent. So there was, uh, there was two sides of this
274460	279740	application. One is, uh, front-end and the other is, uh, the back-end. Back-end is not really a
279740	285740	back-end, but they have given, uh, custom permissions on it. Uh, the, it is a kind of
285740	291160	very large application, so, uh, they haven't provided much, much of, uh, uh, like, uh,
291160	299240	permissions on it. So, uh, so when there was, uh, demo, uh, sorry, so as I, so I started recording
299240	304920	on the application, uh, I found that, uh, they are running, uh, a third-party application. And
304920	310400	this third-party application was, uh, demo only, so I couldn't find much information available on
310400	318980	the, uh, and I don't want to call them and, uh, have a demo set up for myself. Uh, so I go ahead
318980	325520	and, uh, decided to review their, uh, JavaScript files. Uh, JavaScript, uh, so basically, uh, this
325520	331640	application has two event IDs, uh, two, uh, two, uh, parameters, event IDs and, uh, widget, widget
331640	339460	IDs. So, uh, what I did, I, uh, and, uh, and there was, there was one more parameter, GC, uh, GCIF,
339460	344400	which, uh, Charlie just, uh, explains that, uh, is used to, uh, and it, uh, identify the bank
344400	350820	customer all across the world. So, uh, what I did, I, uh, used, uh, uh, GraphScript to, uh, uh,
350820	356120	figure out all the event IDs because what happened is, uh, if you want to serve any functionality
356120	361600	in this application, you have to change the, uh, event IDs, uh, uh, in the, in the parameter and
361600	366760	you will get, uh, uh, if you, if you have access to that, uh, particular functionality, you will,
366760	374220	uh, uh, able to load it. So, uh, what I did, I just, uh, grabbed all the, uh, event IDs, uh,
374220	381300	through, through, uh, GraphScript and, uh, uh, and, and each, uh, there, there was, uh, like
381300	390460	common.js, uh, file, but, uh, in each page you load, uh, the event IDs, you will get a new, uh,
390460	398200	JavaScript file and it has, uh, it, it will contain a new, um, event IDs, uh, for, uh, next,
398200	405560	maybe for the next functionalities. So, uh, so this is like, uh, uh, this is like, uh, a few,
405560	411680	uh, event IDs that I found, uh, from, uh, just, just to start from. And, uh, after I, uh, after
411680	419820	I go load these event IDs in the application, I, uh, found like more than, uh, 500, uh, modules
419820	429740	running on this application. So, so starting from, uh, the, our first findings, uh, so it, it, it's
429740	435200	an acceleration from, uh, authorizer to admin role. So what they're doing that, uh, the maker
435200	440540	role has, uh, admin button. So, uh, when, when I click the admin button, it will redirect me to
440540	446700	the admin, admin panel of it. But, uh, the admin panel also do not have much permissions available,
446700	453800	uh, just a couple of, uh, couple of, uh, modules are loading. So what I, so, uh, when I click,
453800	458940	click the, uh, click that, uh, uh, admin role, uh, what I found that, uh, they are generating,
458940	465300	uh, they are basically, uh, checking that if, uh, this, uh, role has, uh, dual, dual code,
465300	472240	uh, dual role available on their, uh, on their, uh, um, on their, uh, uh, privilege. I mean,
472240	478340	on their, like, like if, if I go through, uh, authorizer, it will check that, uh, if, uh, if
478340	484100	this, uh, role has, uh, dual permissions available or not. Uh, if dual permissions are available,
484100	491000	it will, uh, assign that, uh, admin panel to me. So, uh, uh, uh, what I did, I just, uh, load this
491000	498760	URL from, uh, from the, uh, uh, from the, uh, authorizer role and, uh, it will, uh, allow me
498760	504460	access to, uh, the admin panel, but there was no module was loading. There was just, uh, they
504460	511300	were just maybe just, uh, hiding the modules, uh, uh, from the admin application. So what I did,
511300	518280	I just used the event IDs, uh, put the event IDs in, uh, in the, uh, parameter and try to load,
518280	524640	uh, try to load different, uh, modules, uh, from this generated, uh, uh, admin session
524640	531840	from the authorizer role. So, uh, I, I did it one by one, uh, from the, uh, uh, starting from
531840	540020	the user list report. So, uh, when I, when I load the event IDs, uh, I found that, uh, the, uh,
540020	546700	pages, uh, uh, template pages were loading and while, uh, clicking on submit, I was able to
546700	554860	access all their, uh, user, uh, from the, from an authorizer role. Uh, so, uh, using those event
554860	560440	IDs and there are some frames URLs as well, so the frames URLs are connecting, uh, uh,
560440	568540	connecting to the event IDs only. So, uh, uh, uh, whatever you load, even the, uh, even the
568540	574700	frames or, uh, event IDs, you will get the same information and, uh, uh, just, uh, by loading
574700	580140	one by one, uh, event IDs, you will actually able to, uh, access all of their admin panel from
580140	588880	an authorizer or verifier role. So it was just hiding, hiding the, uh, hiding the, uh, uh, uh,
588880	595320	modules, uh, not actually authorizing the, uh, user, uh, for, for that particular role.
596080	603300	So, this is the, this is the second finding, uh, I found like, uh, this is again, um, I'm, uh,
603300	611420	I was using, uh, uh, uh, event IDs to load up, uh, to load a particular, uh, particular, uh,
611420	618380	function. So what I did, I, uh, using GS, uh, GS link finder, I, uh, caught up with a particular
618380	626420	page, uh, limit setup main page.gsp. And, uh, when I load this page, I was actually able to,
626420	634820	uh, get a, uh, get a, um, uh, get a page where, uh, I was able to, uh, set up their, uh,
634820	641820	customers, uh, whatever, whatever, uh, withdrawal or whatever daily limit they want to set for each
641820	651420	customer. So, uh, I can set it for, uh, their all customers as well. So, uh, once I, uh, click and,
651420	658940	uh, they just, uh, simply, uh, set up their, uh, limit to all the, all the customers they have.
664070	668410	You missed the meme here. Yeah. Last minute prep. Sorry, guys.
668410	671330	Missed the meme. There was supposed to be a very surprised cat there.
674370	682690	So, yeah. So, uh, so when, when I, uh, so there was another, another part of this, uh, uh, this,
682690	689650	that I didn't, I didn't, uh, tell you that when you, once you submit the, submit the, uh, uh,
689650	695790	submit any request, it will actually go to the, uh, go to, uh, as authorizer. So you have to
695790	702490	authorize that request in order to get it approved. So, uh, so these IDs are, uh, these event IDs are
702490	707570	quite simple. So as you say, as you can see, if you want to, uh, weave, weave any page or modify
707570	714090	any page or, uh, authorize any page, you just have to modify a simple value like view modify
714090	721110	auth, uh, and just, just have to, uh, just have to, uh, alter those values to, uh, set, set this
721110	728710	up. And, uh, uh, once, once you load this, uh, let's say you modify something and, uh, you end
728710	734530	up, uh, in authorization page and, uh, you just have to modify the auth ID. And, uh, once you,
734530	739710	once you go to the auth ID, you will, uh, you will have to do, I mean, uh, they, they display,
739710	745650	uh, uh, the value you just modified. You just have to, uh, authorize that value to, uh, have it
745650	755730	set up for all the users. So, so, uh, since I, uh, since I modified, uh, value from here, uh, I
755730	760210	just, uh, modify, I just, uh, go to the, uh, authorization page and there was a request
760210	766370	pending that, uh, uh, that, uh, this, this particular thing is modified. You just have to
766370	772010	authorize it or unauthorize, uh, unauthorize it. So just for, uh, since, since it, it was client
772010	778870	application and I don't want to, uh, uh, impact it, uh, much, so I just, uh, use the unauthorized
778870	784550	button to simply reject the request which I, uh, just, uh, sent for modification. Since it was
784550	791770	for all the customers, so just, just for, uh, safer side, maybe they are using a, uh, broad, uh,
791770	800910	behind, uh, and showing us the, this is a staging environment only. So, uh, so from, from, uh,
800910	806630	from, uh, authorized page, I just click on the, uh, authorizer ID, which was, uh, uh, which was,
806630	812770	which, which I just modified. And, uh, uh, on this page, uh, there was two, two things, uh,
812770	816990	authorize, reject, you, uh, if you, if you authorize, it will set up for all the, all the,
816990	822550	all their customers. If you reject, uh, it will, uh, instantly reject and, uh, do not modify the,
822550	828310	those limits to all the customers. So I just, uh, rejected it and, and simply, uh, got rejected.
829250	838290	So, uh, in the finding three, uh, the, uh, it, it was a customer onboarding, um, IDR, um, uh,
838290	843790	again, it was, uh, it was through the event IDs only. And, uh, um, I found an interesting
843790	850410	event IDs, uh, from the, from the JS that, uh, customer set of view page. So I thought, uh,
850410	856190	I thought, uh, I might, I might be able to, uh, I might be able to, uh, set up the customer,
856190	862970	uh, customers, uh, information from this page. So, uh, what I did, I just go to the, uh, uh,
862970	869230	servlet and I modified the, uh, event IDs to, uh, customer set it, set up, uh, view main page.
869230	875690	And, uh, what I, uh, and, uh, there was, uh, and, uh, uh, when, when I loaded, uh, it was
875690	883190	actually loading that, uh, customers, uh, uh, customers information. And, uh, uh, there was,
883190	892950	there was one more button that is, uh, action. Uh, if you, uh, if you want to modify, uh,
892950	900190	put the value in the, uh, uh, event IDs itself. So once, once you get, uh, once you got the,
900190	905830	uh, event, uh, once you got the, that customer, you, you have, you just have to, uh, click on it
905830	914430	and, uh, um, and, uh, you can, uh, you can modify whatever, uh, the group name or, uh, you can, uh,
914430	920550	even, uh, remove the, uh, remove the, uh, uh, corporate ID from, uh, from that particular
920550	926470	customer. So, uh, once you remove the corporate ID that, from that customer, uh, actually all
926470	933110	their accounts got, get unlinked and, uh, um, they, uh, their, even their customers do not
933110	945390	have, uh, do not able to, uh, access their account information. So while, while, uh, so, uh,
945390	951510	again, um, once I, once I submit this request, I have to authorize this, uh, so I just modified
951510	958310	the, uh, uh, event ID to auth page and, uh, once I go there, I just have to authorize or reject
958310	966330	this, uh, in order to, uh, approve it for that, that particular customer. So, uh, while, while,
966330	974370	while, uh, while doing this, all of, all of this, I also found, found that, uh, uh, the, the
974370	980870	customer setup page was also vulnerable to, uh, accesses. So what I did, I just put the, uh, put
980870	989070	the access payload in, uh, their, uh, uh, their, um, relationship manager, uh, name, and, uh,
989070	996430	whenever they see the relationship manager, uh, name on their, uh, bank, uh, bank, uh, uh,
996430	1002890	account, uh, the, the access payload will pop up and, uh, I can, uh, able to grab their cookies
1002890	1014130	just from, uh, just straight from their, uh, uh, their, uh, uh, bank, uh, bank account. So, uh,
1014750	1020390	so the, as I said that, uh, there was, uh, there was two side of this application. One is, uh,
1020390	1026710	the front, front office and one is the back office. The front office, uh, contains the
1026710	1036450	widget, uh, widget servlet and the back office contains, uh, uh, contains the, uh, uh, another,
1036450	1044630	another, uh, servlet. So, uh, so what I did, I just, uh, I just, uh, sort all the widget controller,
1044630	1052370	uh, and, uh, start, uh, fudging for, uh, SQL injection vulnerabilities. What I found that,
1052370	1059290	uh, there was, uh, one parameter that is called DIR. Uh, it was giving me 500 internal server
1059290	1065750	error while supplying a single, single code. So, I, I, so, uh, I thought, I mean, there,
1065750	1071490	there was a change in response, so I thought, uh, let's try some Boolean and blind conditions.
1071550	1077770	So, uh, when I try, when I started, uh, fudging for Boolean and blind based, I found that, uh,
1077770	1085730	there was a Boolean based, uh, blind is working and, uh, the database is Oracle and, uh, I,
1085730	1092790	I just, I just used a SQL map to dump all their, uh, all their, uh, databases and, uh, I was able
1092790	1099710	to fuzz, uh, I was able to get, uh, all of their, uh, all of their, uh, databases dumps.
1101610	1107530	So, uh, since, since I was able to, uh, since I was able to escalate the, uh, escalate the,
1107530	1114390	uh, authorizer role or verifier role in the, uh, admin panel, so I just used an authorizer role
1114390	1121030	and, uh, um, I tried to weave the, uh, customer, uh, customer weave, uh, customer set of view page
1121030	1127550	and, um, I found that the customer, uh, name, customer, customer underscore name was vulnerable
1127550	1134910	to, uh, again, Boolean based blind. And, uh, uh, what I do, I just, uh, went ahead and, uh, uh,
1134910	1140730	started, uh, started the, uh, Escal map on it and, uh, I was able to, uh, dump all their, uh,
1140730	1151330	DB again. So, uh, I got, like I said, like, uh, this was fun and profit, so I got all the fun and
1151330	1161370	I got all of profits as well. So, so later, uh, after an year they come and they said that, uh,
1161370	1167810	uh, we have fixed all the issues. So what they did, they just removed the corporate admin
1167810	1172890	power module from the application and they think that it's, uh, fixed from their site.
1173330	1180150	And on the, on the, on the front end, they, they come after another one year and they
1180150	1186710	put the, uh, Cloudflare, uh, across their application and they think that it's fixed again.
1186710	1195050	Um, so that's... Yeah. So looking at it from my end, from the triage end, you have to ask what
1195050	1200390	the clients always ask us what, what it's matter. Um, if you come in, you do a cross-site scripting,
1200390	1206630	you pop an alert that just says one, the CEO is going to go, okay. What we had to kind of go in
1206630	1212490	and explain to them is not only do we manage to have almost full admin access from any role
1212490	1217730	across your system. We managed to also dump your entire SQL database and showed them a row
1217730	1223030	and a column that we pulled. And so we can also take care of that. And then in addition, anybody
1223030	1228150	who has a relationship manager listed, I can now get their credits. That's all his high value
1228150	1233050	clients. Um, when we see these relationship managers in our banking app, imagine that just
1233050	1240630	stole your ID. That's where they start coming in and they go, oh, and yeah, that's when you want
1240630	1245350	to be that guy going, this is what I found you. Um, and so getting their attention with this,
1245350	1250350	when this hit, they were paying a lot of attention once they saw clearly what the impact was that
1250350	1256410	basically Nix ran rough shot over them. Um, so yeah, that's kind of what we're looking at
1256950	1263490	with bad session management. So anything else add Nix? No, I guess that's, that's all for
1263610	1267490	a month. All right. Thank you guys. Uh, hopefully this was kind of informative and you guys learned
1267490	1268070	something.
