start	end	text
4380	9570	Okay. First of all, thank you for joining. It's a great pleasure to be here today.
9950	16010	I'm not sure how many of you have a driving license, but I kindly ask you to fasten your seat
16010	21150	belts because this is going to be a quick one. My name is Paul Sildo. I'm a security researcher
21150	27370	and pen tester at Chart49, but I've started as a software developer. I did it for more than 15
27370	33070	years. It was plenty of time to do all sorts of mistakes. I'm also co-author of something that
33070	40370	you may have heard about, like the security top ten, but the topic here today is another one.
40370	50450	With us we have David. My name is David Sopas. I'm a security researcher for a long time,
50450	59700	more than 15 years. I especially like research and focusing also on high level pen testing.
59700	69940	I usually I already spoke on events like RSA, DEF CON. This is my first time here in Vegas
69940	76880	because the first time I spoke on DEF CON it was on safe mode, so I was at home. Not that fun.
76880	83660	But still, I did the shots with my friends, so shut the knob. And besides, and props to
83660	90620	Lisbon with some guys over here. I did some API security methodology. I don't know if you guys
90620	97400	know it. Mind API. It's part of my open source work. And that's it. Let's start.
99280	109300	Before some of the research that we are presenting, I would like to say that we will not teach you
109300	116880	web applications or APIs. All the target manufacturers you presented have a bug bounty
116880	124800	program, responsible disclosure program or whatever. So this is everything was reported
124800	132320	to the organizations. Some of them were like late to respond, but in the end we did it.
132320	144470	So we will focus this presentation with nine brands. I hope that at least one of them is your
144470	153070	car manufacturer. But let's start with this one. I don't know if you know this brand,
153070	159010	but we will not mention it. It's a vulnerable updated component. But before that, I would like
159010	169410	to tell you a little bit about the API and the API world, which means you have a lot of API
169410	177050	architectures. I'm talking about the most popular ones, like REST, GraphQL, RPC, you name it.
177050	182770	All of them make sense to mention that most of the vulnerabilities that were present
182770	193850	was focused on these architectures. Open API is one of the most common ones. Usually it's
193850	201970	like connected in a way to Swagger. I hope anyone knows Swagger. I believe everyone knows Swagger.
202050	211130	The problem is that it helps out developers and even pen testers and researchers because
211130	219490	it documents everything and it will help you not to make any mistakes and leave the documentation
219490	227890	open. But one of the things that because usually individuals like shiny things and web interfaces,
227890	235350	Swagger UI is one of them. It's the most popular one and usually is left publicly available.
235350	243350	This is the example of a Swagger pet store. But like every software, it also has vulnerabilities.
243350	252630	So especially the vulnerability from 3.71, which is the cross-site scripting, which allows you to
252630	263170	put a specially crafted JSON file that you can control and put cross-site scripting payload and
263170	271450	you can do a lot of stuff with that. This is the classic example of a Swagger UI, which is
271450	282410	presented on the brand that I showed you. This has come to a reminder that if you use third party
282410	290530	software, please keep it updated because it can be a way that attackers can achieve to get into
290530	301750	your organization. This brand, which is... I'm guessing nobody here has this brand in their
301750	312750	garage. If so, kudos. It has a vulnerable outdated component. This time it's not Swagger, but we found
312750	321070	that a subdomain on this company immediately caught our attention because we saw a form and we
321070	328650	were like, oh, okay, form. Let's try to approach this the security research way. We immediately
328650	335670	went to the inspector because it's faster than trying to do some proxy stuff. We noticed that it
335670	342730	was a WordPress because it has a lot of tips like WP content, WP plugins. You can use, for example,
342730	348990	for enumeration tools like WP scan, but in this case we immediately saw the plugin that we wanted
350000	358030	and we could see if any vulnerability could be in place. And it was. This subdomain from this
358030	369090	manufacturer uses W3 total cache. It was a vulnerable version and this was very cool for us to
369090	378150	test, especially for this manufacturer that I don't know if they could like offers a good reward
378150	387410	like a car. This is the CVE from the plugin. It's very cool. So it's vulnerable to you could read
387410	394550	arbitrary files from the subdomain and the main goal here, okay, let's to create the POC and to
394550	401070	respect the responsible disclosure program, let's like grab WP config and drop the database details
401070	408610	and tell them, hey, this is your database, okay, so at least the credentials. And that's what we did.
408610	415410	So this is the exploit. The first thing that we wanted to know and to play around with the file
416150	425670	was to see what was the operating system running. So we do the curl, put the full URL, the plugin
425670	433970	place, the vulnerable parameter which was the subscriber URL. So we put just to see if it's
433970	441930	running Linux and it was. The response is below. So it's Ubuntu, not the latest version but it
441930	448410	gave us with this operating system, gave us clues to understand the path and the configuration
448410	456490	files for other stuff. So moving forward, so now we noticed that it's running virtual host, so
456490	465210	we do the bash, it's like going through to see how we can get the full path, internal path for
466030	474970	the WordPress installation and get the WP config. Sites enabled, we needed to know the domain
474970	481470	itself, so we tried it and in the end after like experience because sites enabled usually it's the
481470	488550	subdomain, we tried that on the subscriber URL and we got the document root which was this one.
488550	495630	With that we just tried just WP config and we got the database from this high level
496150	503610	manufacturer that in the end decided to tell us good work. And it fixed it.
504150	513210	Another brand, this is my favorite because it's a brand that I'm very close to and we found out
513210	520150	some cool stuff like BOLA, Reflective, cross-site scripting and again components that are vulnerable.
521930	528650	It's very hard sometimes to get Vims from cars as you can see, usually it's placed on the windshield
528650	537490	but you can also try other things like going to Google and search for Vims. And we did that.
538250	546850	Not only that, we decided okay, let's see if we can create on this manufacturer account dashboard
549210	557910	add these cars without any confirmation. So we create a persona which is G1 and we added a bunch
557910	563680	of cars like you can see on the picture. Sorry it's in Portuguese, we are from Portugal so it's
563680	571300	automatic translated but it works in every language. So we added these cars. On other brands
571790	579560	and I can tell you that like on the nine manufacturers that we tried, at least three
580440	587840	you need to confirm on the infotainment inside the car to have the car added to your dashboard
587840	595120	account on the car website. In this case, like you can edit and get information from
595120	602740	this is the information you added without any interaction from the user inside the car.
602740	610240	So that's a big issue. Some brands tell you that no, it's normal but you can see after a while
610240	619940	it's not. So on this information that we get on the UI dashboard, you know that you have an
619940	630480	outdated car for example. You can see the versions from the infotainment system. You can see issues
630480	642060	related to guarantees if you paid for years to have more guarantee on your vehicle. Also more
642060	650200	information that what you need to do when you go to an inspection car. But one thing that we
650200	658680	noticed is that we could get more information on the API that was not present on the UI and this
658680	666200	is cool. Okay? So we tried that. And by the way, with this endpoint which is already fixed,
666200	674380	so disclaimer, you don't need even to be authenticated. This is like public information.
675900	683820	On the API we can get a meter, fuel, battery status if it's electric, oil life, tire pressure
683820	689640	for each wheel, for each tire and et cetera. You can see the screenshot on the API. This
689640	697400	information is not present on the UI by the way. So we get that. It will be cool like to get,
698140	705240	for example, on this manufacturer for a friend and you can go check out his VIN and bet with him,
705240	713000	okay, if I know the exact number of kilometers that your car has, you buy me a beer. So this
713000	723140	is win-win. Other information, I think that's another endpoint that we found using our
723140	730520	intersection only using a proxy was like type of vehicle which is in the car, not that relevant.
731320	738000	So model, one thing, and I put the smileys on, Wi-Fi hotspot, very cool. I love cars with Wi-Fi
738000	745260	hotspots. Also if it's connected to the Internet, even better. And as you can see, we can do a lot
745260	754760	of things, especially with Wi-Fi hotspots. We can wiggle, wiggle. So I got the hotspot from the
756680	764920	broadcast MAC address. I grabbed it and go to wiggle and then we get location from the vehicles
765620	772740	and that's very cool because I'm talking about millions of these manufactured but it works also
772740	784380	for other brands. So this is like crazy. Firmware update is something that we still like a work in
784380	792140	progress because on this specific request, we get information from firmware but not only that,
792140	800000	we can download it, unpack it, and what we did is just I mounted on my operating system, I
800000	805580	noticed what was the operating system running on the infotainment, it was armaments, but I didn't
805580	813660	check for more information so far. I was focused on the API stuff so I moved forward. Recalls,
813660	819780	this is something that the manufacturer was like telling me that this was an acceptable risk.
819780	827000	Again, I don't understand why but I will explain that later. The recalls, it's something that
827000	833380	the information that it comes is very juicy because especially you know if the car was like
834340	841640	had problems with something and get information about that. But not only that, we noticed that
841640	847960	one of the fields returning on the response of this API request was the description part. And
847960	857000	it was maybe used by an operator, a mechanical part, I don't know who used this field because
857700	866020	most of the PYY information that we got was added to this field. So I found out something like
867260	876340	please return the car to the owner at address with his phone and everything. So this is like
877300	886440	public information according to this manufacturer but you can see name, location of the owner of
886440	893600	the car and everything. I communicated that to the manufacturer. He told me it's normal. So
894300	902800	maybe. It's kind of weird to receive sometimes these kind of responses. But okay, so what?
904280	911660	With all this information together we can do a lot of stuff. Okay, we can track devices to
911660	919200	pinpoint locations. We can place for example some antennas on specific spots and try to track
919200	929700	vehicles. Analyzing for example you can create, you can know routines from the habits from the
929700	938500	for example. Insights from everything. How much fuel and you can calculate when the person needs
938500	944680	to go refuel or something like that. A lot of stuff. Recall information gives you PYY information.
944680	954780	So it's crazy but yeah. And by the way, yeah, updated components again. But not only one.
954780	962920	If it's like loading, it takes a while. Because if it doesn't work, okay, this is all for
963630	978040	the same manufacturer. Halfway. And still, done. That's it. They control the documentation
978040	984300	and the third party software very well. So I think that's it. Passing to Paulo.
985020	990040	Okay, from now on it's with me I believe. The point here, this is not a full assessment on
990040	996580	car manufacturers. We are not trying to assess car safety. This was like a free time to assess
996580	1004040	how car manufacturers handle their digital asset security. So we were looking for a few bugs that
1004040	1009900	we could chain together and prove them the impact. So this is why you're going to see a lot
1009900	1017040	that we can chain with something else and prove them the impact and get the system patched.
1017260	1023280	So another manufacturer. I'm not sure how many of you are familiar with the return URI,
1023280	1029020	query string parameter, but when I see one, I get excited. Probably I'm going to get an open
1029020	1035060	redirect. But then I have an additional feeling, maybe I can get the cross-site scripting,
1035680	1043120	and all we have to do is change the URI scheme and change from HTTP or HTTPS to JavaScript and
1043120	1050440	we get a cross-site scripting easily. And chances are that we can access cookies or local storage
1050440	1057880	using our cross-site scripting and probably the ALT token is in there and we can use it to
1057880	1064860	exfiltrate the token. So this is how we prove the impact here. It's a quick demo. So you can
1064860	1073600	use it on a phishing email with a malicious payload and as soon as the victim logins we get
1073600	1079800	the ALT token. So this way it's not only a cross-site scripting that probably no one are
1079800	1089040	willing to fix, there's the impact here to exfiltrate PII and this is a bigger deal for the
1089040	1097500	manufacturer. But usually you also find what's called less interesting stuff, like click
1097500	1108660	jacking or UI redressing. If you're familiar with it or not, what we have on the screen are the
1108660	1114140	same, but there's some red fields and those fields we are loading the login form on our one
1114140	1122000	domain attacker.com and the red ones are fields that we put on top of the legit login form. So
1122000	1127520	this is why redressing is how the attack works. It's not that fancy and probably no one is going
1127520	1135400	to fix UI redressing as long as you can prove the impact it may have. And chances are this is
1135400	1145040	just an hypothesis that the same company or organization has a subdomain pointing to an AWS
1145040	1152200	cloud front and when you request some resources from it, you realize it comes from S3. Not sure
1152200	1159240	whether you're familiar with S3, it's cloud storage, they are called buckets, you can put
1159240	1167860	there whatever you want. One of the features is hosting static websites. But Amazon and S3
1167860	1174700	permissions are not that easy and quite often we choose to go with the star. We allow everything
1174700	1183060	to everyone. S3 has a public API, REST API, you can read the docs online and chances are that we
1183060	1188320	can write to the bucket. I'm not saying that that was the case, but chances are you can write to
1188320	1194440	the bucket and upload whatever you want. And if you have a UI redressing issue, maybe you can
1194440	1203740	even deploy the login form, deploy the malicious login form on their own subdomain. And this is
1203740	1212420	how it would potentially look like to exfiltrate credentials. So you can upload whatever you want
1212420	1223040	to a public S3 or at least internet facing S3 bucket, then you get your UI redressing page
1223040	1229900	deployed on the subdomain, the victims fill the form and you get the credentials on your own
1229900	1240260	server. This is exactly what we have in this demo. So with the impact proof, they fixed it.
1240260	1245860	Otherwise probably they would look like to it like a UI redressing, no one cares. So let's move
1245860	1252880	on to another manufacturer and you may be asking yourselves why didn't you fuzz to find new end
1252880	1261760	points? We did it. And we found something called site minder. We were not aware what site minder
1261760	1271900	was and we asked chat GPT or AI. You may be missing the AI buzz word. And chat GPT told us
1271900	1276720	it's a widely used access management and authentication solution developed by CA
1276720	1283400	technologies. Okay. So it's a third party software but you have a domain pointing to it. So we did
1284000	1290280	what this company was supposed to do. We checked for CVs. One of them was a cross site scripting
1290280	1297060	on site minder. So you may know where this is going to end up. Just crafting a simple payload.
1297140	1302720	It's an image on the user name perimeter. Running some code, some JavaScript code and you get the
1302720	1310440	cross site scripting. But instead of a single site minder, they had tons of them. So tons of
1310440	1317860	chances to exploit cross site scriptings on this car manufacturer. So moving on to another
1317860	1326540	manufacturer. This is another time when I get the 404 not found. My heart starts beating
1326540	1332960	faster. Because this is again an AWS S3 bucket. And when you get the 404 means that someone
1332960	1341380	deleted the bucket. And buckets, the name should be unique across all AWS regions. So if the bucket
1341380	1347060	was deleted but there's still a subdomain pointing to it, you can create the bucket and you're going
1347060	1353580	to get control over the content that's served on this subdomain. So this is a subdomain takeover
1353580	1359200	technically. But we need to figure out in which region the bucket should be created, where it was
1359200	1367240	created before. But this is not magic. You can use several tools to do it. Checking the DNS, you get
1367240	1372900	the region. It's European, Europe central. You just create the bucket, upload the content and
1372900	1378780	from that moment on you're serving content, whatever you want, on the organization's
1378780	1387980	subdomain. This is, to be honest, this is quite common on S3. So keep watching your subdomains,
1387980	1394900	monitor whatever subdomains you have, buckets your assets. But before moving to the next
1394900	1401020	manufacturer, still cross-site scripting on Swagger UI. So you're going to find them deployed
1401020	1407580	everywhere and no one cares about non-vulnerabilities on this software.
1410160	1418600	So let's move on to another manufacturer. We were looking to Portia. It's not a secret here.
1418820	1424500	We found out this website called Portia Experience. We looked under the wood to understand
1424500	1429880	how it worked. It's a single page application backed by a GraphQL API. So this time it's not
1429880	1437440	but we noticed something quite strange. The ALT token was included twice on the GraphQL request,
1437440	1443560	both on the cookies and in the authorization header. It depends how familiar you are with
1444720	1451680	HTTP, but adding the ALT token on the request header is a game changer in terms of cross-site
1451680	1458420	scripting. If the API picks the ALT token from the cookie, cookies are managed by the web browser
1458420	1465520	and they are automatically added to the request. So we came up with the idea maybe we can exploit
1465520	1473540	the cross-site request forgery. Let's see if that happens or not. To do that, the API should get the
1473540	1478340	ALT token from the cookie instead of the authorization header and that was what was
1478340	1485260	happening with the GraphQL API. Then we need the API to be willing to fulfill requests coming from
1485800	1492360	or started from another origin, which the API is also willing to do. So we still have some
1492360	1499200	cross-origin request sharing issue here, misconfiguration on the API. But then browsers
1499200	1506560	include several security features, namely to protect your cookies. And the browser, they were
1506560	1513220	not willing to include the cookie on requests started from external origins. So it was like,
1513220	1520140	there's no way here, it's a dead end. But in fact, cross-site scripting would make this a great
1520140	1525120	issue. So instead of one, we found three cross-site scriptings in different websites
1525860	1531560	and we decided to go with the campaigns.porsche.com for a phishing email. It sounds kind of catchy
1531560	1538980	if you can offer something on a campaigns.porsche.com. So this is the vulnerable URL,
1538980	1548320	you should keep the integer for some reason, but you can then append HTML. So this is the
1548320	1554340	loader we're gonna add to the URL that we're gonna send to victims to load a JavaScript file
1554340	1559920	from a remote server. Then we have to do some encoding because it's not that easy to manage
1559920	1566400	spaces and special characters on the URL. And this is what's fetched from our remote server.
1566400	1573280	We're gonna do a GraphQL query, fetch victims PII and exfiltrate it to the remote server.
1573280	1577740	Then we just need to trick victims to click the URL, so offer them something like a Porsche
1577740	1591260	experience, why not? And this is how it goes. So we are waiting victims' data, so let's email
1594120	1603060	them. We get the click. So as you can see, I read the emails. Then I click them, the links,
1603060	1609880	and from that moment on, we get the PII on our remote server. Again, the point here is not,
1609880	1615200	none of the issues here are that fancy. The point is chaining them together and
1615200	1629460	impact. And this way we get all of them fixed. So we talked about subdomain takeover. So this
1629460	1634740	is another subdomain takeover on a different manufacturer, but here the issue is a bit
1634740	1641760	different. In this case, and sometimes if you want to integrate with some third party, they're
1641760	1649120	point a subdomain to our domain or subdomain. They create a custom subdomain so you can point
1649120	1656980	something to them. But then at some point the company gave up on the product, but your DNS
1656980	1663520	record is still pointing to their one. And if it was a bucket and they just deleted their bucket,
1663520	1668760	we can create the bucket. That was the case here. There was a DNS record pointing to another
1668760	1673920	company and the company gave up on the bucket and we created the bucket and we got our content
1673920	1684780	delivered through their bucket. So again, Swagger UI. So if there's a big takeaway today, go home
1684780	1690480	and check whether your company has Swagger UI deployed or any other third party piece of software
1690480	1697400	and check whether there are known vulnerabilities and patch the systems. So time for another one.
1697400	1707520	Nothing fancy again, just a cross site scripting on Swagger UI. So we've talked about misconfigured
1707520	1718740	AWS S3 buckets. So here's another use case, the same issue, public writeable S3 buckets. So the
1718740	1726920	same thing, you get your own codes running on one of their subdomains and then you can access APIs
1726920	1733880	and other stuff because you're running on their one subdomain. So most of the policies can be
1734540	1745580	bypassed or will be bypassed this way. So we just got our content, again we use a phishing email,
1746180	1751680	I believe we asked ChatGPT to write it, not exactly give me a phishing email because
1751680	1760300	otherwise we won't get it. But as it happened before, with this simple trick we get
1761340	1772460	the auth token that we can then use. This case, I believe we got the, it was PII from the API.
1772900	1778240	But that was not the only one issue with this manufacturer. As David said, you have a vehicle
1778240	1783020	identification number, you can get them from your windshield. So let's call it public because
1783020	1788580	anyone can get it from your car park, from the car park. Or if you're lazy enough as we are,
1788580	1795840	you go to Google, you search and you get 1,890,000 vehicle identification numbers.
1796300	1803800	And then you can add them to your, you can use the API to fetch PII. Driver's PII, owner's PII.
1803800	1810100	There was something interesting here. We were not able to use this API endpoint
1811560	1817980	before adding them, okay just a few seconds, before adding one car. We need to be a owner.
1818000	1823720	But we can be a owner of anyone's car. Just pick the VIN, add to your account, you become a owner
1823720	1830160	and from that moment on you can do thousands of requests to just scrape the data from the API.
1832220	1837880	Maybe you're lucky and you're gonna get again a cross-site scripting from some redirect URI
1837880	1844900	and you can do the same magic we did before. Okay, I'm not sure we're gonna be, we're gonna
1844900	1851260	have time for all of them but those are quick. Let's see if you have SiteMinder, go home and
1851260	1858200	patch it. We have 91 instances of SiteMinder in the same company, so go home and fix it.
1858820	1865800	Very fast, just to tell you, you have the table with all the information. Organizations,
1865800	1870840	subscribe to vulnerability databases of course, create a safe harbor for us, hackers, so that's
1870840	1878480	very cool. Reply to our emails, it's for everyone's security. AI won't make your assets safe
1878480	1885140	but only safer. That's the QR code if you want a promo on API security training, so that's it.
1885140	1885580	Thank you.
