start	end	text
7930	9990	Thank you for joining.
9990	12150	It's a great pleasure to be here today.
12570	20850	I'm not sure how many of you have a driving license, but I kindly ask you to fasten your seat belts because this is going to be a quick one.
21370	22830	My name is Paul Silda.
22830	28450	I'm a security researcher and pen tester at Chart49, but I've started as a software developer.
28450	33610	I did it for more than 15 years, but it was plenty of time to do all sorts of mistakes.
33750	43050	I'm also co-author of something that you may have heard about, like the OWASP API security top 10, but the topic here today is another one.
43050	44890	With us we have David.
45630	48910	Yeah, so my name is David Sopas.
48910	54830	I'm a security researcher for a long time, more than 15 years.
54830	62570	I especially like research and focusing also on high-level pen testing.
62830	69890	I already spoke on events like RSA, DEF CON.
69890	78170	This is my first time here in Vegas because the first time I spoke on DEF CON it was on safe mode, so I was at home.
78170	83930	Not that fun, but still I did the shots with my friends, so shot the knob.
84550	92630	And besides, and props to Lisbon with some guys over here, I did some API security methodology.
92630	95170	I don't know if you guys know it, MindAPI.
95170	99170	It's part of my open source work, and that's it.
99170	100130	Let's start.
101310	115630	Before some of the work that we, research that we are presenting, I would like to say that this is not, we will not teach you how to hack web applications or APIs.
115630	123290	All the target manufacturers you presented have a bug bounty program, responsible disclosure program, or whatever.
123290	129130	So this is, everything was reported to the organizations.
129130	134670	Some of them were like late to respond, but in the end we did it.
137780	142140	We will focus this presentation with nine brands.
142140	149320	I hope that at least one of them is your car manufacturer.
150120	153040	But let's start with this one.
153360	157540	I don't know if you know this brand, but we will not mention it.
157540	160220	It's a vulnerable updated component.
160220	173080	But before that, I would like to tell you a little bit about the API and the API world, which means you have a lot of API architectures.
173080	179740	I'm talking about the most popular ones, like REST, GraphQL, RPC, you name it.
179740	188540	All of them make sense to mention that most of the vulnerabilities that were present was focused on these architectures.
191540	195200	Open API is one of the most common ones.
195460	200580	Usually it's like connected in a way to Swagger.
200580	202780	I hope anyone knows Swagger.
202780	204760	I believe everyone knows Swagger.
204840	223480	The problem is that it helps out developers and even pen testers and researchers because it documents everything and it will help you not to make any mistakes and leave the documentation open.
223520	232480	But one of the things that... because usually individuals like shiny things and web interfaces, Swagger UI is one of them.
232480	238100	It's the most popular one and usually is left publicly available.
238100	241820	This is the example of Swagger pet star.
241820	246180	But like every software, it also has vulnerabilities.
246180	269120	So especially the vulnerability from 3.71, which is the cross-site scripting, which allows you to put a specially crafted JSON file that you can control and put cross-site scripting payload and you can do a lot of stuff with that.
269700	277600	This is the classic example of a Swagger UI, which is presented on the brand that I showed you.
277700	295140	This is coming to a reminder that if you use third party software, please keep it updated because it can be a way that attackers can achieve to get into your organisation.
296420	305140	This brand, which is... I'm guessing nobody here has this brand in their garage.
305140	306920	If so, kudos.
307020	310300	It has a vulnerable outdated component.
310300	329560	This time it's not Swagger, but we found that a subdomain on this company immediately caught our attention because we saw a form and we're like, okay, let's try to approach the security research way.
330540	336840	We immediately went to the inspector, because it's faster than trying to do some proxy stuff.
336840	344120	We noticed that it was a WordPress, because it has a lot of tips like WP content, WP plugins.
344120	357480	You can use, for example, for enumeration tools like WP scan, but in this case we immediately saw that the plugin that we wanted and we could see if any vulnerability could be in place.
357580	359160	And it was.
359180	366520	This subdomain from this manufacturer uses W3 total cache.
366520	382360	It was a vulnerable version and this was very cool for us to test, especially for this manufacturer that I don't know if they could offer a good reward like a car.
383160	385940	This is the CVE from the plugin.
386420	387120	It's very cool.
388500	407600	You could read arbitrary files from the subdomain and the main goal here, okay, let's create the POC and to respect the responsible disclosure program, let's grab WP config and drop the database details and tell them, hey, this is your database, okay,
407600	409740	so at least the credentials.
410080	411640	And that's what we did.
411640	414300	So this is the exploit.
414300	422520	The first thing that we wanted to know and to play around with the file path was to see what was the operating system running.
422520	433820	So we do the curl, put the full URL, the plugin place, the vulnerable parameter which was the subscribed URL.
433820	438980	So we put ETC issue just to see if it's running Linux and it was.
438980	441300	The response is hello.
441300	444460	So it's Ubuntu, not the latest version, but it doesn't matter.
444460	453500	But they give us with this operating system, give us clues to understand the path and the configuration files for other stuff.
453500	455140	So moving forward.
455140	461740	So now we notice that it's running virtual host, so we do the bash call.
461740	473780	It's like going through to see how we can get the full path, internal path for the WordPress installation and get the WP config.
473780	480040	Sites enabled, we needed to know the domain itself, so we tried it.
480040	491620	And in the end, after like experience, because sites enable usually it's the subdomain, we tried that on the subscriber URL and we got the document route which was this one.
491620	504860	And with that, we just tried just WP config and we got the database from this high level manufacturer that in the end decided to tell us good work.
505200	506740	And it fixed it.
507280	508200	Another brand.
508200	514420	This is my favorite because it's a brand that I'm very close to.
514840	523500	And we found out some cool stuff like BOLA, Reflective, cross-site scripting, and again, components that are vulnerable.
523740	529620	But it's very hard sometimes to get VINs from cars, as you can see.
529940	538620	Usually it's placed on the windshield, but you can also try other things like going to Google and search for VINs.
538840	540460	And we did that.
541480	555340	Not only that, we decided, okay, let's see if we can create on this manufacturer account dashboard, add these cars without any confirmation.
555740	564100	So we created a persona, which is G1, and we added a bunch of cars, like you can see on the picture.
564100	565200	Sorry, it's in Portuguese.
565200	568320	We are from Portugal, so it's automatically translated.
568320	571320	But it works in every language.
571320	573120	So we added these cars.
573400	593820	On other brands, and I can tell you that, like, on the nine manufacturers that we tried, at least three, you need to confirm on the infotainment inside the car to have the car added to your dashboard account on the car website.
593820	605920	In this case, like, you can add it and get information from the information you added without any interaction from the user inside the car.
605920	607620	So that's a big issue.
607620	610880	Some brands tell you that, no, it's normal.
610880	615040	But you can see after a while that it's not.
615080	625320	So on this information that we get on the UI dashboard, you know that you have an outdated car, for example.
625480	630440	You can see the versions from the infotainment system.
631320	635700	You can see issues related to guarantees.
635700	650940	If you paid for years to have more guarantee on your vehicle, also more information that what you need to do when you go to an inspection car.
651820	661320	But one thing that we noticed is that we could get more information on the API that was not present on the UI.
661320	662860	And this is cool.
662860	663380	Okay?
663380	666220	So we tried that.
666220	675420	And by the way, with this endpoint, which is already fixed, so disclaimer, you don't need even to be authenticated.
675420	677860	This is, like, public information.
679260	691020	On the API, we can get over meter, fuel, battery status if it's electric, oil life, tire pressure for each wheel, for each tire, and et cetera.
691020	692780	You can see the screenshot on the API.
692780	695620	This information is not present on the UI, by the way.
695620	697620	So we get that.
698280	715660	It will be cool, like, to get, for example, on this manufacturer, for a friend, and you can go check out his VIN and bet with him, okay, if I know the exact number of kilometers that your car has, you buy me a beer.
715660	717360	So this is win-win.
717360	733880	So other information, I think that's another endpoint that we found using our intersection, only using a proxy, was like type of vehicle, which is in the car, not that relevant.
734660	739820	So model, one thing, and I put the smileys on, Wi-Fi hotspot, very cool.
739820	742360	I love cars with Wi-Fi hotspots.
742380	745820	Also, if it's connected to the internet, even better.
746420	751520	And as you can see, we can do a lot of things, especially with Wi-Fi hotspots.
752620	754880	We can wiggle, wiggle.
754880	768860	So I got the hotspot from the broadcast MAC address, I grabbed it, and go to wiggle, and then we get location from the vehicles.
768860	777860	And that's very cool, because I'm talking about millions of these manufacturers, but it works also for other brands.
777860	780740	So this is like crazy.
783300	807320	Firmware update is something that we still like a work in progress, because on this specific request, we get information from firmware, but not only that, we can download it, unpack it, and what we did is just I mounted on my operating system, I noticed what was the system running on the infotainment,
807320	811200	but I didn't check for more information so far.
811200	815680	I was focused on the API stuff, so I moved forward.
816040	817060	Recalls.
817060	823180	This is something that the manufacturer was like telling me that this was an acceptable risk.
823300	827460	Again, I don't understand why, but I will explain that later.
828140	842320	The recalls, it's something that the information that it comes is very juicy, because especially you know if the car had problems with something, and get information about that.
842320	851040	But not only that, we noticed that one of the fields returning on the response of this API request was the description part.
851040	857200	And it was maybe used by an operator, a mechanical part, I don't know.
857200	866860	I don't know who used this field, because most of the PYY information that we got was added to this field.
866860	877840	So I found out something like, please return the car to the owner at address with this phone and everything.
877840	892140	So this is like public information according to this manufacturer, but you can see name, location of the owner of the car, and everything.
892180	895160	I communicated that to the manufacturer.
895160	897060	He told me it's normal.
897060	899040	So maybe.
899100	904140	It's kind of weird to receive sometimes these kind of responses.
904140	906280	Okay, so what?
907840	912400	With all this information together, we can do a lot of stuff.
912400	916200	Okay, with all that, we can track devices to pinpoint locations.
916200	924200	We can place, for example, some antennas on specific spots and try to track vehicles.
924940	934880	Analyzing the meter, for example, you can create, you can know routines from the habits from the victim, for example.
934980	944600	Insights from everything, how much fuel, and you can calculate when the person needs to go refuel or something like that.
944600	945480	A lot of stuff.
945480	948200	Recall information gives you PYY information.
948200	952240	So it's crazy, but yeah.
952240	956440	And by the way, yeah, updated components again.
956560	958240	But not only one.
958240	964160	If it's like loading, it takes a while because it doesn't work.
964160	964620	Okay.
965020	969180	This is all for the same manufacturer.
970620	971980	Halfway.
972660	975640	And deal.
975640	976840	Done.
977020	978660	That's it.
979040	984140	They control the documentation and the third party software very well.
984740	986660	So I think that's it.
986660	987740	Passing to Paolo.
988560	991040	Okay, from now on it's with me, I believe.
991040	994480	The point here, this is not a full assessment on car manufacturers.
994480	997380	We are not trying to assess car safety.
997700	1003980	This was like a free time to assess how car manufacturers handle their digital asset security.
1003980	1010300	So we were looking for a few bugs that we could chain together and prove them the impact.
1010300	1020540	So this is why you're going to see a lot cross-site scripting that we can chain with something else and prove them the impact and get the system patched.
1020660	1022260	So another manufacturer.
1022260	1028220	I'm not sure how many of you are familiar with the return URI, query string perimeter.
1028220	1030820	But when I see one, I get excited.
1030880	1033440	Probably I'm going to get an open redirect.
1033460	1036620	But then I have an additional feeling.
1036620	1039960	Maybe I can get the cross-site scripting, which is even better.
1039960	1049620	And all we have to do is change the URI scheme and change from HTTP or HTTPS to JavaScript and we get a cross-site scripting easily.
1049740	1057540	And chances are that we can access cookies or local storage using our cross-site scripting.
1057540	1062900	And probably the out token is in there and we can use it to exfiltrate the token.
1062900	1065800	So this is how we prove the impact here.
1065800	1067240	It's a quick demo.
1067640	1073620	So you can use it on a phishing email with the malicious payload.
1074320	1078500	And as soon as the victim logins, we get the out token.
1078500	1085600	So this way it's not only a cross -site scripting that probably no one are willing to fix.
1086340	1093740	There's the impact here to exfiltrate PII and this is a bigger deal for the manufacturer.
1095280	1103420	But usually you also find let's call it less interesting stuff like click jacking or UI redressing.
1104860	1112560	If you're familiar with it or not, what we have on the screen are the same.
1112560	1125640	But there's some red fields and those fields we are loading the login form on attacker.com and the red ones are fields that we put on top of the legit login form.
1125640	1128660	So this is why redressing is how the attack works.
1128660	1137360	It's not that fancy and probably no one is going to fix UI redressing as long as you can prove the impact it may have.
1137360	1155600	And chances are, this is just an hypothesis, that the same company or organization has a subdomain pointing to an AWS CloudFront and when you request some resources from it, you realize it comes from S3.
1155600	1157840	Not sure whether you're familiar with S3.
1157840	1159840	It's a cloud storage.
1160020	1162580	They are called buckets.
1162580	1164500	You can put there whatever you want.
1164500	1167380	One of the features is hosting static websites.
1169060	1173500	But Amazon and S3 permissions are not that easy.
1173880	1177640	And quite often we choose to go with the star.
1177640	1179680	We allow everything to everyone.
1180220	1183180	And S3 has a public API, REST API.
1183180	1185160	You can read the docs online.
1185440	1188380	And chances are that we can write to the bucket.
1188440	1194720	I'm not saying that that was the case, but chances are you can write to the bucket and upload whatever you want.
1195160	1206700	And if you have a UI redressing issue, maybe you can even deploy the login form, deploy the malicious login form on their own subdomain.
1206860	1213060	And this is how it would potentially look like to exfiltrate credentials.
1213220	1222760	So you can upload whatever you want to a public S3 or at least internet facing S3 bucket.
1222940	1228900	Then you get your UI redressing page deployed on the subdomain.
1229300	1234740	The victims fill the form and you get the credentials on your own server.
1235360	1237960	This is exactly what we have in this demo.
1237960	1243900	So with the impact proof, they fixed it.
1244320	1247480	Otherwise, probably they would look to it like a UI redressing.
1247480	1248580	No one cares.
1249180	1251300	So let's move on to another manufacturer.
1251800	1257140	And you may be asking yourselves, why didn't you fuzz to find new endpoints?
1257140	1258180	We did it.
1259480	1264000	And we found something called SiteMinder.
1264000	1266640	We were not aware what SiteMinder was.
1266860	1270060	And we asked ChatGPT, or AI.
1270060	1274180	You may be missing the AI buzzword.
1274440	1281760	And ChatGPT told us it's a widely used access management and authentication solution developed by CA Technologies.
1281760	1286460	Okay, so it's a third party software, but you have a domain pointing to it.
1286460	1290640	So we did what this company was supposed to do.
1290640	1292400	We checked for CVs.
1292400	1295560	One of them was a cross site scripting on SiteMinder.
1295620	1298420	So you may know where this is going to end up.
1298420	1300780	Just crafting a simple payload.
1300780	1308060	It's an image on the username parameter, running some code, some JavaScript code, and you get the cross site scripting.
1308580	1313540	But instead of a single SiteMinder, they had tons of them.
1313540	1319200	So tons of chances to exploit cross site scriptings on this car manufacturer.
1319760	1322660	So moving on to another manufacturer.
1323260	1328680	This is another time when I get the 404 not found.
1328680	1331740	My heart starts beating faster.
1331740	1334800	Because this is again an AWS S3 bucket.
1334800	1338820	And when you get the 404 means that someone deleted the bucket.
1338820	1344440	And buckets, the name should be unique across all AWS regions.
1344480	1350420	So if the bucket was deleted, but there's still a subdomain pointing to it, you can create the bucket.
1350420	1355980	And you're going to get control over the content that's served on this subdomain.
1355980	1358460	So this is a subdomain takeover technically.
1358820	1365600	But we need to figure out in which region the bucket should be created, where it was created before.
1365600	1367600	But this is not magic.
1367600	1369680	You can use several tools to do it.
1369680	1371780	Checking the DNS, you get the region.
1371780	1374580	It's European, Europe central.
1374760	1383700	You just create the bucket, upload the content, and from that moment on, you're serving content, whatever you want, on the organization subdomain.
1383700	1387500	This is, to be honest, this is quite common on S3.
1387960	1396060	So keep watching your subdomains, monitor whatever subdomains you have, buckets your assets.
1396860	1402700	But before moving to the next manufacturer, still cross-site scripting on Swagger UI.
1402700	1411920	So you're going to find them deployed everywhere, and no one cares about non-vulnerabilities on this software.
1413200	1418960	So let's move on to another manufacturer.
1418960	1420760	We were looking to Porche.
1420760	1422580	It's not a secret here.
1422820	1426520	We found out this website called Porche Experience.
1426520	1429340	We looked under the wood to understand how it worked.
1429340	1432820	It's a single-page application backed by a GraphQL API.
1432960	1437700	So this time it's not REST, but we noticed something quite strange.
1437720	1444800	The ALT token was included twice on the GraphQL requests, both on the cookies and in the authorization header.
1444860	1456480	It depends how familiar you are with HTTP, but adding the ALT token on the request header is a game-changer in terms of cross-site scripting.
1456480	1465520	If the API picks the ALT token from the cookie, cookies are managed by the web browser and they are automatically added to the request.
1465840	1472080	So we came up with the idea, maybe we can exploit the cross-site request forgery.
1472080	1474900	Let's see if that happens or not.
1475040	1484340	To do that, the API should get the ALT token from the cookie instead of the authorization header, and that was what was happening with the GraphQL API.
1485180	1501840	Then we need the API to be willing to fulfill requests coming from or started from another origin, which the API is also willing to do, so we still have some cross-origin request sharing issue here, misconfiguration on the API.
1502100	1516020	But then browsers include several security features, namely to protect your cookies, and the browser, they were not willing to include the cookie on requests started from external origins.
1516200	1520160	So it was like, okay, there's no way here, it's a dead end.
1520160	1525100	But in fact, cross-site scripting would make this a great issue.
1525180	1534160	So instead of one, we found three cross-site scriptings in different websites, and we decided to go with the campaigns.porsche.com for a phishing email.
1534160	1539780	It sounds kind of catchy if you can offer something on a campaigns.porsche.com.
1540040	1550540	So this is the vulnerable URL, the parameter, you should keep the integer for some reason, but you can then append the HTML.
1551260	1560020	So this is the loader we're gonna add to the URL that we're gonna send to victims to load a JavaScript file from a remote server.
1560020	1566930	Then we have to do some encoding because it's not that easy to manage spaces and special characters on the URL.
1567550	1570530	And this is what's fetched from our remote server.
1570530	1577390	So we're gonna do a GraphQL query, fetch victims PII and exfiltrate it to the remote server.
1577390	1580190	Then we just need to trick victims to click the URL.
1580190	1583710	So offer them something like a Porsche experience, why not?
1583770	1586350	And this is how it goes.
1587490	1594470	So we are, oops, we are waiting victims data.
1594470	1600530	So let's email, mail them, we get the click.
1601130	1611750	So as you can see, I read the emails, then I click them, the links, and from that moment on, we get the PII on our remote server.
1611750	1617370	Again, the point here is not, none of the issues here are that fancy.
1617430	1620630	The point is chaining them together and prove the impact.
1620750	1623210	And this way we get all of them fixed.
1625610	1629350	So, yes, I know you.
1629910	1633290	So we talked about subdomain takeover.
1633290	1639910	So this is another subdomain takeover on a different manufacturer, but here the issue is a bit different.
1640090	1650570	In this case, and sometimes if you want to integrate with some third party, they're going to say point a subdomain to our own domain or subdomain.
1650570	1654810	They create a custom subdomain so that you can point something to them.
1654810	1663810	But then at some point the company gave up on the product, but your DNS record is still pointing to their own.
1663850	1669050	And if it was a bucket and they just deleted their bucket, we can create the bucket.
1669050	1670990	That was the case here.
1670990	1680590	There was a DNS record pointing to another company and the company gave up on the bucket and we created the bucket and we got our content delivered through their bucket.
1682950	1685670	So again, Swagger UI.
1685670	1699570	So if there's a big takeaway today, go home and check whether your company has Swagger UI deployed or any other third party piece of software and check whether there are known vulnerabilities and patch the systems.
1700170	1706750	So time for another one, nothing fancy again, just a cross-site scripting on Swagger UI.
1708290	1714370	So we've talked about misconfigured AWS S3 buckets.
1714370	1722170	So here's another use case, the same issue, public writeable S3 bucket.
1722630	1736330	So the same thing, you get your own codes running on one of their subdomains and then you can access APIs and other stuff because you're running on their one subdomain.
1736330	1742390	So most of the policies can be bypassed or will be bypassed this way.
1743750	1748070	So we just got our content.
1748070	1749910	Again, we use a phishing email.
1750190	1758630	I believe we asked ChatGPT to write it, not exactly give me a phishing email because otherwise we won't get it.
1760370	1768970	But as it happened before with this simple trick, we get the auth token that we can then use.
1769490	1776990	This case, I believe we've got the, it was PII from the API.
1777330	1780690	But that was not the only one issue with this manufacturer.
1780690	1785830	As David said, you have a vehicle identification number, you can get them from your windshield.
1785830	1790370	So let's call it public because anyone can get it from the car park.
1790370	1800390	Or if you're lazy enough as we are, you go to Google, you search and you get 1,890,000 vehicle identification numbers.
1800830	1806050	And then you can add them to your, you can use the API to fetch PII.
1806050	1808250	Drivers PII, owners PII.
1808250	1810550	There was something interesting here.
1810550	1821010	We were not able to use this API endpoint before adding them, okay, just a few seconds, before adding one car.
1821010	1825210	We need to be a owner, but we can be a owner of anyone's car.
1825210	1834610	Just pick the VIN, add to your account, you become a owner and from that moment on you can do thousands of requests to just scrape the data from the API.
1836650	1846150	Maybe you're lucky and you're gonna get again a cross-site scripting from some redirect URI and you can do the same magic we did before.
1847170	1851910	Okay, I'm not sure we're gonna be, we're gonna have time for all of them, but those are quick.
1852850	1856650	Let's see if you have SiteMinder, go home and patch it.
1856790	1862710	We have 91 instances of SiteMinder in the same company, so go home and fix it.
1863410	1876310	Very fast, just to tell you, you have the table with all the information, organizations, subscribe to vulnerability databases, of course, create a safe harbor for us hackers, so that's very cool.
1876310	1880350	Reply to our emails, it's for everyone's security.
1880590	1884930	AI won't make your assets safe, but only safer.
1884930	1889570	That's the QR code if you want a promo on API security training, so that's it.
1889570	1890390	Thank you.
