start	end	text
8480	15780	Welcome to my talk, Gridlock, the dual-edged sort of EV and solar APIs in grid security.
17460	24360	Fair warning, this talk is PG-17, which means I love saying fuck and shit.
24920	29180	So if you're not comfortable with that, can you please raise your hand?
30700	31900	Everyone's okay with that?
31900	32260	Really?
32260	33460	Thank you for that.
35340	48920	That's me, I'm Vagelis Thikas, I'm the CTO at a penetration testing firm which specializes in green energy, energy renewable and everything else, EV and PV penetration testing.
49920	51360	What?
52080	53360	Okay.
53400	59240	That's me, I'm Vagelis Thikas, I'm the CTO of a penetration testing firm called Atropos.
59240	62200	We're testing mainly EVs and PVs.
62200	71360	My research interest is mainly APIs for IoT and for the past couple of years, malware, ransomware and other things that might get me killed.
71360	73260	But yeah, that's just me.
74000	76700	So this talk is about solar panels.
76700	79740	I'm gonna be honest, I have no idea how they work.
79740	82300	I'm not a solar panel specialist.
82300	84500	I'm an API specialist.
84500	86320	This talk is about APIs.
86320	94120	If you thought that you're going to see any kind of solar shit or, I don't know, firmware things, you're on the wrong talk.
94120	95340	Sorry about that.
95760	97240	Quick intro.
97300	99820	There are two kinds of installations of solar panel.
99820	103920	The one is home panels, which is from one kilowatt to 10 kilowatts.
103920	108460	And then there are plants, which is from 200 kilowatts to 20 megawatts.
108460	112960	The home are usually on roof and they're integrated there.
112960	118480	The plants are maximizing profit and minimizing cost because, yeah, capitalism and shit.
119720	123460	The solar market, it has several big players.
123460	125240	They're mainly Chinese.
125400	130120	Lots, and I mean lots of white label providers that provide generic implementation.
130120	133260	We are going to see that they're really rushing to market.
133420	139780	And they have over 30 million current installations the past week that I checked.
140800	149820	Yeah, you can see that we are moving towards solar panels, so more and more solar panel energy is being used.
152080	154580	Yeah, that's what the solar panel is.
154580	163200	It consists of many cells, blah, blah, blah, things I don't understand, things that if you understand, I'm really happy with you because you're really smart.
165140	168460	But do you know what that is?
169680	172020	So that's Fortnite.
172020	175880	My older son is playing Fortnite and he loves it.
176340	183000	And apparently, everyone who wins him either is a cheater or, I don't know, a hacker.
183020	191320	And once upon a time, there was a guy, Tesla 2004, that kind of kicked his ass.
191640	198420	So we went after him for no apparent reason other than me being petty.
198500	200460	So what's the solar market?
200460	203660	The solar market generates more than a terawatt globally.
203660	210360	A terawatt is a little bit less than what the states, the USA, is consuming every day.
210440	215340	It's cheaper to produce, it has low maintenance, and it can run unsupervised.
215340	233260	But as it is expensive to store, it is easier to throw it to the grid, which, they are just throwing independent stuff that is not there every day.
233800	235860	I'm introducing you to Horus Scenario.
235860	245080	The Horus Scenario was a scenario that was built by a really smart guy that I cannot really pronounce his name because it has too many syllables.
245080	246880	Sorry about that, Marcus.
247060	248160	I'm gonna read it.
248160	250380	It's the only wall of text that I'm going to read.
250380	254160	The power grid needs to maintain a constant balance between supply or power.
254160	256620	Its supply exceeds demands.
256620	258800	There is, however, a limit to these countermeasures.
258800	260840	So they're doing some countermeasures.
260980	276060	We need to maintain balance, but especially in Europe, power grids are in their wind, which means that nations are constantly exporting and importing power to each other, and power grid regulators have made agreements, blah, blah, blah.
276060	285720	What that means is that if you take down Germany, you're probably going to take down France, you're probably going to take down Spain, probably the whole continent.
285720	288950	So yeah, that doesn't sound good to pretty much anyone.
289400	308000	This is a practical solar power supply during the eclipse in Germany and how it was theoretically proven with some math I don't really understand, that if you take down enough solar panels, you are going to take down the power grid for enough time.
308760	325320	Again, mathematical models, I'm a simpleton, I don't understand what they're doing, but it says that at least Germany and France, for as far as I know, cover 35 to 50 percent of its power using only PV installations, which means if you take them down,
325320	327460	they would have huge problems.
327900	333620	Our scenario had several CVs on one inverter, SMA.
333620	335680	They changed them for RCE.
335680	340760	They RCE on those devices and they interfere with the devices to destabilize the grid.
342300	348600	What we are going to see today, we are going to see whole scenario on steroids.
348720	355040	We unfortunately, we're not going to get any CVs because everything is going to be done with APIs.
355420	358680	Cloud doesn't give you any CVs, you know that.
358680	360720	We don't need any physical access.
360720	362240	We don't need to be nearby.
362240	366680	We can be in our beach house in Greece while hacking PVs.
366680	369620	We could brick and muds.
369860	377960	We're inverter agnostic because we are just using the cloud and we're looking at more or less a little bit over 500 gigabit hours.
379220	396140	Quick intro on my tool set, DeerSearch, Burpsuit, ZXD compiler, APK, Lab IO, which unfortunately is no longer working, one small droplet on DigitalOcean, Sudan IO, so that I could find more people, and basic web application penetration testing.
397740	401640	Steps that I was doing, I followed.
401760	404260	I tried to find the demo account.
404460	410880	If I couldn't find the demo account at the register a new account, I would find obvious, and I mean really obvious, web issues.
410880	422100	I try to control devices by exploiting those obvious issues, and I would really want to hack Tesla 2004 because he kicked my son's fortnight.
423020	433580	My results, Solarman, Sunsync, Solax, Growad, Ingecom, Foxes, everyone, platform admin, Solarman, I couldn't upgrade the firmware.
433580	440940	The other thing is, I don't know who of you are a researcher in here, but you're going to get a lot of those ads.
440940	445120	So if you are researching for PVs, you're going to get a lot of PV ads.
445120	453920	If you are researching for, I don't know, sex toys, you're going to get a lot of ads for sex toys, and this goes to all your house, so yeah, not a great thing.
455380	458680	The disclosure was a train wreck.
458820	463460	I have been trying for the past three and a half years to disclose.
463460	468400	Only one and a half vendors responded and acted on the disclosure.
468400	471880	The disclosure had everything that they needed to do.
471920	475160	I tried really, really hard to get any reaction.
475160	478440	I emailed, I tweeted, I called them on their phone.
478440	484240	I couldn't do anything else other than drive there and talk to them, but that's not feasible, I guess.
485380	486040	Okay.
487060	488380	The responses.
488420	490560	Solarman fixed in five days.
490560	492480	Sunsync responded after three years.
492480	493920	It's no longer no response.
493920	497820	After my OWASP talk, they did respond and try to fix it.
497820	499620	Solax auto-responded.
499620	503120	They responded to Twitter DMs and then they went well.
503320	510700	Growad asked me where I'm from, because that makes sense, and Ingecom didn't do anything.
512140	514280	So I know you're here for the zero days.
514300	522460	I'm not legally allowed to release the zero days, but I can talk about them, and if you have common sense, you can find pretty much everything.
523600	524700	What's the plan?
524700	526860	I really want them to fix it, really.
526860	529180	I just want to act on it and fix it.
529480	543560	I want to prove that you can control gigawatts of power effectively, destabilizing country power grids, help avoiding global outages, and, I don't know, make the whole world a safer place, I guess.
544680	546000	What did I find?
546000	554340	EIDR, RCE, broken authentication, broken authorization, EIDR, EIDR, EIDR.
555840	557660	What did I get?
557700	571410	Lots, and I mean lots, I mean couple of million, couple of tens of million of personal data, access to administrative accounts and panel, ways to manipulate and break panels, access to internal networks.
573400	578560	You can see how many gigawatts you could control from their panels.
578560	579900	I'm not going to list them.
580960	595780	And yeah, I know there are more clouds, but yeah, I couldn't hack some of them, and also my wife didn't allow me to buy any more inverters because, I don't know, reasons.
597540	598660	Solarman.
600280	602160	Pretty huge player.
602160	604680	EIDR on the user ad functionality.
604760	607620	I could add a user with any privilege on any group.
607620	615620	Groups and organizations were consecutive integers, which means I could pretty much add the user to every group with admin privileges.
616440	617640	What did I get?
617640	621100	Full functionality, potential GDPR violation.
621100	630980	I love that I should say potential because I didn't get it, but this was GDPR violation with lacking user and company data, information on plants and power generated.
631600	633620	Really good response.
633620	635040	They fixed it in five days.
635040	639220	They chased for verification, so all in all, good for them.
639780	643800	Sunsync is probably one of the biggest players.
643800	653800	You don't know them because they're white label, so yeah, you might, if you have FPV, you might have this back-end, but with another label in front.
653940	663660	And their issues were, there was missing the whole point of authorization altogether.
665040	672620	If you're taking pictures, take that picture because you're gonna see that slide a lot for a lot of platforms.
672620	674220	Full functionality of the application.
674220	679440	Again, potential GDPR violation because we're not violating the GDPR.
679440	686000	Information on plants, interact with the plants, firmware update, because who doesn't want a firmware update on everyone?
686020	688580	Backdoor to the network, platform admin.
689860	691960	That's all the gateways.
691960	698700	You can see we're looking at half a million gateways, and that's all the firmwares.
698700	704640	So you could just upload the firmware and do whatever you want with that.
704700	705860	The disclosure.
708320	720440	But I want to say that after my OWASP talk, their CISO reached out, and he was pretty furious that my emails, phones, and everything else didn't reach to him.
720440	722000	He was pretty cool.
722140	724060	They said they fixed it.
725200	726860	They did not.
727720	733040	I reached out last week and told them that I'm gonna say that, and he said no, we fixed them.
733040	737080	So yeah, you do what you want with that information.
737640	742500	Grobat is probably the biggest, and I mean the biggest player in there.
745580	747780	I wasn't allowed to buy a Grobat
750860	758280	device because it was like 5k, and my wife told me that you're not allowed to spend 5k for personal research.
758520	764180	So I had to google some serials, and then me being me, I'm doing that.
764180	764820	I don't need it.
764820	765360	I don't need it.
765360	773880	I find some broken one for 200 euros, so I bought it, and then I had full functionality on everything.
773880	775320	What was the vulnerability?
776000	776940	I don't know.
776940	778060	Pretty much everything.
778060	779280	They didn't check anything.
779280	791820	So full functionality of the application, potential GDPR violation, interact with the plans, firmware update on gateway, back to the network, platform admin, all in all, you know, terrible shit.
791940	795780	How did the disclosure go?
795780	800080	Dear customer, due to the spring festive holidays, we can't reply in time.
800080	801600	Thanks for your understanding.
801600	808520	That was January 26th of 2022.
809500	814940	They do have a lot of spring festive holidays in China, I guess.
816000	819440	Would you please advise which country you are from?
819440	820860	Because it makes sense.
820860	822460	If I'm from Greece, they shouldn't fix it.
822460	828960	But if I'm from, I don't know, the States, and then, while I was researching, I also found that.
829660	840780	Three years later, Growbot vulnerability disclosure policy, Growbot takes product security very seriously and is committed to protecting our users and their data.
841220	842220	You know what?
842220	843900	Fuck off Growbot.
843900	848240	Grow a pair, respond to the disclosure emails, and do something.
848240	849680	They're the same thing.
849680	851240	They didn't respond.
851320	853940	They can go do a thing, I don't know.
854740	864460	Solux is the fifth bigger or fourth there in the fifth, one of the five biggest providers in there.
864800	867560	They were pretty good, and I mean pretty good.
869040	874760	They had only one either, but that either was really, really good.
874760	882780	So, when you were editing your user, you were also passing your user level.
883320	894560	So, when you see user level user, you usually end up writing, I don't know, user level administrator, user level super administrator, or user level root.
894560	897080	So, remember that slide?
897920	907320	Full functionality, potential GDPR violation, information, interact with the plans, firmware update, backdoor to the network, platform admin.
907320	909420	You're going to see it a little bit more.
909420	910140	Sorry about that.
910140	912140	Sorry for repeating, but they're all shit.
913600	919000	Yeah, that's 21,000 pages of installations.
919020	920760	You can do the multiplication.
920800	923700	That's a lot, and I mean a lot of devices.
926060	934180	That's some EV chargers that they're still not there, but you can see the demo in there because I'm admin, as I said.
935520	938580	Thank you for conducting Solux cloud support.
938580	944960	We are extremely busy at the moment, and that moment has taken them three years.
945780	947220	They're going to respond to me.
947220	949560	Then I was starting calling.
949560	951340	They didn't answer my calls.
951360	961580	Finally, I just tweeted because it's Twitter, no text, fuck Elon Musk, and I just tweeted, can someone tell me what I should do with Solux?
961580	964720	Then they said that, so is there a problem with that?
964720	967120	Can you tell us what the issue is?
967120	970660	I told them, yeah, I sent an email to that, that, that, that, and that.
970880	972240	Let me check.
972240	973660	That was their answer.
973660	977760	If you can see, I don't know if it's possible, that's 2023.
978140	982160	So they're either checking really hard or they're just ignoring me.
982620	984600	Again, Solux, not cool.
985400	992140	In Gecko, there are small lists, just 30,000 or 40,000 installations.
993460	997720	They're based in Spain or Italy, I don't remember, sorry about that.
997780	1001220	They were missing the basic concept of authorization.
1001280	1011720	All IDs were consecutive integers, and again, full functionality, potential GDPR, interact with the plans, firmware update, backdoor, platform admin.
1011720	1015000	Sorry for repeating myself, but they're shit.
1016280	1023920	You can see that we can also see the RAM, the storage, and there is a really, really small button at the top.
1023920	1024640	Can you see it?
1024640	1026620	It says sell.
1026940	1032680	So you can just click on there and get a sale on each device.
1034180	1052240	Again, you can also do, I don't know, reports, stop it, and you could also disable all their protections, which means that if you were someone who wants to do harm, you could make that thing be on fire.
1052240	1056800	You could literally burn shit up remotely.
1057980	1061620	Does anyone want to guess how the disclosure went?
1069130	1073770	I called them and they just dropped the phone on me.
1073770	1079810	When I said I want to do a vulnerability disclosure, I just heard the toot, toot, toot.
1080570	1082890	They could also say fuck you, but okay.
1083630	1085530	Foxes is the last one.
1085530	1097410	These have only been around my disclosure for six months, so yeah, it's way above my 90 days, but yeah, still not good.
1097590	1099510	They were pretty good, too.
1099510	1101790	They had only one issue.
1104370	1117210	Their password reset was not that good, so they had, I don't know, most of the Chinese companies nowadays have a password reset that says we send you a four-digit PIN.
1117210	1128790	That PIN was brute forcible and the user ID was consecutive integers, which means you could pretty much reset everyone's password with a Python script with for loop.
1129690	1132310	Same thing, sorry about that.
1132310	1140530	Full functionality, Yada, Indirect, firmware update, backdoor to the network, platform admin, you name it, they have it.
1140850	1144190	Again, anyone want to guess the disclosure?
1150980	1155360	So enough with the photovoltaic, let's go to EV chargers.
1158700	1167000	Just a reminder, we are not after the power grid, we're after a guy who is named Tesla 2004.
1167000	1175980	He probably doesn't own a panel, but he or his mom has a Tesla, so let's go after some EV chargers, right?
1178160	1188640	Project EV, 2000 installation in the UK, Growat based again, Department of Transport approved, that's in the UK, Growat and Shenzhen are China-based companies.
1190620	1196600	Can you see the issue in this request?
1196680	1197480	Anyone?
1199100	1200660	No, it's not an either.
1200660	1202960	You would wish it was an either.
1203900	1207020	There is no authentication at all.
1207120	1222040	So you were authenticating on the application, you were saying, yeah, I'm demo with a demo password, and then all the other requests didn't have any kind of authentication, any kind of JWT or cookies, they were just doing, yeah, he said he was that, let's go with our lives.
1222040	1233000	Fully lacking authentication, check for a valid combination, only once on login, charger IDs were consecutive numbers, so it could be easily, and I mean really easily brute-forced.
1234940	1235860	Yeah.
1235920	1241820	Full functionality, lock and lock, remote, backdoor, brick all the devices, platform admin.
1242880	1243600	Disclosure.
1243600	1245840	Oh, my lovely disclosure.
1246760	1253520	Did not respond for weeks, only responded when I had to reach out to BBC, eventually fixed after a failed first attempt.
1253520	1258960	You really don't want to have to resend the message and say, yeah, you know that fix?
1258960	1261620	That's not actually a fix, so you have to try harder.
1261760	1266100	They have a stateless login, or whatever the fuck that means.
1267160	1269680	I'm not going to test it anymore.
1269680	1273860	Also, do you remember the robot PV?
1273860	1277160	They have the same thing, they just fixed it for the EV.
1277340	1278700	I don't know why.
1282200	1289700	I don't know.
1289700	1291320	They're based in Amsterdam.
1291400	1295780	They were really, really, really good.
1295780	1298040	They had a pretty solid API.
1300420	1301520	Want to guess?
1301520	1302740	Let's play a guess game.
1302740	1304220	What's the issue in here?
1306080	1307220	No one?
1307600	1308620	Come on.
1312500	1317560	It says when you update your user, you are also passing your role.
1317660	1319400	Why would I pass my role?
1319400	1327320	So let's try admin, account owner, and then admin, because I also want the fucking server.
1327320	1335860	I just don't want only the EV chargers, which means I had access to pretty much everything.
1335880	1344840	Total compromise of everything, potential GDPR violation, full admin functionality, which means I could give money, I could charge back, I could do financial shit.
1345020	1348040	It was really, really bad.
1348040	1351300	But responded in just two hours.
1351300	1355180	They fixed it in 24 hours, double-checked that everything was fixed.
1355180	1356440	Excellent response.
1356440	1359780	I'm happy when I see this kind of responses.
1361520	1363600	Oh, my lovely wallbox.
1363600	1367920	I don't know how many of you are familiar with EVs.
1368120	1373900	I personally got that banned in the UK, so they probably hate me.
1374220	1382380	So 200,000 users, they're based in Barcelona, merged with Kensington, and their aim to raise 300 million USD.
1382680	1385220	Probably not because they're banned now.
1386220	1390940	I had a second-level IDOR, anything in the request body was not validated.
1391220	1402240	I had found four different instances on this in the API, which means I found something, they fixed it, then I went to something else and said, fix that too.
1402340	1405860	And then I said, I'm not doing a free penetration test for you.
1405860	1406820	Fix your shit.
1406820	1410200	Check your proper authentication.
1410780	1413000	Total control over all chargers.
1413000	1414140	Lock and lock.
1414200	1416500	No way to update firmware.
1416500	1418560	Potential GDPR violation.
1418580	1420620	Unfortunately, no platform admin.
1420720	1424720	They responded the next day.
1424720	1426560	They fixed it in a couple of days.
1426560	1429180	They re-engaged after a month.
1429180	1430760	Found the second issue.
1430920	1433600	They fixed it in a couple of days again.
1433600	1444820	Then they wanted to engage to provide the site of their new hardware platform, which meant I had to sign an NDA and not talk about it, which, no thanks.
1444820	1446800	I don't do NDAs.
1447120	1454200	And then, as I said, charger pulled amid warnings, hackers could attack national grid.
1454200	1456480	So yeah, we're getting there.
1456480	1458880	Kudos to the UK government.
1460600	1464600	I think that's the last of the private ones.
1464640	1468240	EoCharger, EoHub, it was the first charger in the UK.
1468240	1471440	It had a lot, and I mean a lot, of teething problems.
1471660	1480760	It had around 15,000 users estimated, and it's a fucking raspberry pi, which can be easily rooted.
1480940	1501760	It had no bootloader security, and I was able to recover, not only me, my good friend who is now not with us, Mike Polidoro, the full source code, and I mean two Python scripts because that was their source code, with hard-coded credentials and full documentation.
1502160	1504540	Okay, let me show you something in there.
1523390	1537010	Full decryption, total control, you could mimic the server communication, you can make the device be part of a botnet, potential GDPR violation, credentials leak, and send platform admin.
1539790	1543730	They tried, I'm not going to be bad with them.
1543730	1556150	They responded in a timely function, they worked hard into reworking pretty much everything, and then they introduced their new and improved EoMini, which was still a raspberry pi.
1556150	1559390	So all in all, they tried at least.
1561910	1568850	My personal opinion, I take it with a pinch of salt because I'm not a hardware expert.
1568870	1574390	Raspberry pi are a valid prototyping device, but not good to put into production.
1574610	1580390	They're easily extracted all their data, they're easily routable, and there's no secure bootloader.
1580770	1583370	Last one, and we should be off.
1583370	1584810	Public chargers.
1584970	1588990	I have looked after ChargePoint, which is an American electric vehicle.
1588990	1592970	It's one of the top three public chargers providers in the world.
1593130	1598190	A good friend told me that when someone says he's one of the top three, he's the third.
1598210	1610310	They went public in 2021, and they had a publicly exposed unauthenticated GraphQL endpoint with introspection enabled.
1610690	1616530	It was potentially leaking their full schema, and no authentication parameters were to be seen.
1616530	1625170	You could pretty much do whatever you want, but CMA and crime alert.
1625170	1629190	API research is really, really, really tricky on that.
1629190	1632170	Never ever interact with a device that you don't own.
1632170	1640890	If you mistakenly do it, notify the vendor immediately and stop doing whatever you are doing because you don't want to end up in jail.
1640890	1643330	At least I don't want to end up in jail.
1643890	1645470	They responded in an hour.
1645470	1647910	They fixed it in the same day.
1647970	1649410	Excellent response.
1649650	1651350	They acknowledged the issue.
1651470	1657630	I could have checked further, but as I said, my goal is to stay outside of prison.
1657630	1660490	So yeah, that was probably a wise choice.
1663510	1669850	For your takeaways, go with a provider that will act on problems.
1669910	1672370	So no random white labels.
1672370	1676430	Try to isolate IOT devices on their own villains.
1676470	1680270	Vulnerabilities will happen, and expect them to happen.
1680270	1687510	Also, just a heads up, if your device will be on fire, your private villain will not really help.
1687510	1690450	So take that under consideration.
1690530	1697630	And for those being vendors, know that authorization is not equal to authentication.
1698090	1700430	Push to market cannot always be the excuse.
1700430	1714290	I understand that you have to rush to market because you are a startup, but after you are in the market for five years, you have to secure your seat or you will end up in one of your really bad lists.
1714330	1715510	And pen test your things.
1715510	1717290	Not by me, by anyone.
1717390	1719830	Do try to secure yourself.
1719830	1723230	So , that was me.
1723230	1724170	Thank you.
