start	end	text
0	8160	Today I will talk about the EV charging points. Basically I will just explain a specific one
8160	15220	that I find in Europe. So, and basically you can use it everywhere in Europe. I will also
15220	21600	show the map, then you can imagine. I'm John Kurnas from KPMG Netherlands. I'm working
21600	25620	as a senior consultant and mostly doing penetration tests on web applications, infrastructure
25620	42450	and sometimes also IOT and ICS. Okay, alright. Great, great. Okay, this is my contact info. If
42450	47970	you want to ask something or discuss about something on IOT or ICS, please don't hesitate.
48870	55030	For a disclaimer, basically I did this research by myself and my company doesn't involve on
55030	63390	that, so if someone wants to sue me, just sue me, not my company. And I'm a little bit
63390	69810	nervous because this is the first presentation, recorded presentation for mine, so that's why
69810	77950	I feel a little bit nervous. Please help me. So on agenda, we will talk about the introduction
77950	83190	of the EV charging points, then I will try to explain the threat that I find, then the
83190	88390	consequences we will discuss, then we will go into the details and I will explain more
88390	94410	details. Then I will show you just a small metasploit module that you can make a denial of
94410	102750	service of this EV charging point. This is a basic small module but you can use it. So let's
102750	109430	start. So this is a 100% Sunsu free InfoSec talk because probably you have a lot of codes
109430	117330	from Sunsu on this presentation on these days, so I will just skip that. For the introduction,
117330	123350	so it's a little bit confusing because EV charging points, electric vehicle charging points
123350	132770	are in somewhere between IOT and ICS KEDA. So basically electric vehicle charging point is a
132770	139410	device that you can supply electric energy to recharge your electric vehicle. So basically
139430	147830	and nowadays manufacturers are trying to connect these devices to the internet and that makes a
147830	157070	little bit trouble for them and also for the clients. And previous research done for charge
157070	164690	point, it's another let's say manufacturer, this research done by Kaspersky lab and for the
164690	170950	Schneider EV Link positive technology has done a couple of research on that. So basically the
170950	178950	idea, they are relatively new on the field and they are just building to work so security is
178950	183990	not a concern in the beginning but since they are connecting to the internet, now it's a
183990	191010	problem. So based on these previous researches and also mine, we are considering the security
191010	199370	maturity is quite major on these devices. So basically I completed an engagement for these
199370	206490	devices last year actually. When I was writing the report, I just wanted to check if I write the
206490	212730	name correctly. I just googled the name of the device as you can see over there and it showed
212730	220990	up on the first page. Then I said, what? Yeah, basically I just googled the name of the device
221010	225470	and I mean you are not expecting these kind of devices are connected directly to the internet
225470	234150	and indexed by the Google, right? So let's discuss about the threats. So after that I checked
234150	243810	Shodan and I realized with this map, so basically on the beginning of 2018, there were 200
243810	249570	devices connected directly to the internet and indexed by Shodan. After in the middle of
250170	260150	2018, it come up 300 and as you can see on the map, it's all around the Europe. So basically if
260150	265070	you create a smart map, you can travel around by using these charging points, you can travel
265070	269950	around freely because basically you can compromise the device on the internet and you can charge
269950	279070	your car and I will also show that later. So now this is a new one. They are appearing on the US
279610	285850	also now. Maybe, I don't know, at the end of this year or next year, you can also do it in
285850	296510	here. So the consequences. So what? Basically you can compromise a device and you can get root.
297170	307470	So if you want to create your next Mirai by using these devices, you can. And the details. So the
307470	312170	first vulnerability that I find on this device is authentication bypass with direct request. So
312170	316650	the web applications of these devices mostly are not secure enough. So it's a quite
316650	321090	straightforward vulnerability as you can imagine. So application was not that good. It's
321090	329590	basically broken. So the access control was only on the login page and the rest is not that
329590	337230	secure. It wasn't covering by the authentication scheme. So it can be easily bypassed. So as you
337230	344070	can see in here, there is a login screen over there for the setup.html page. It's the, let's
344070	349210	say the first page that you, when you try to connect to the device after you find the IP,
349210	357130	you'll see this. So, I mean, you can also guess the password of course, but I decided to take a
357130	365110	look to the source code of the web application. And yeah, basically by force browsing, you can
365110	373050	go to the other pages of the web application. I will show you later. Then you can have access
373050	378650	on the other pages. Basically, it will also affect the management interface of that device.
379070	384050	So when we check the, when we check the source code, we are realizing there are a couple of
384050	393010	pages except setup.html, like index.html, and also there's a java file, appletscale.jar, and
393010	401290	also a couple of, let's say, informational subpages like repository device ID and logs. You
401290	406090	can also check the logs, but I'm not considering to check that because it's just an
406090	415530	information disclosure. So, I tried to, I tried to connect to the management interface by using, as
415530	422990	you can see in here, appletscale client. It's in index.html. So, yeah, it was successful. So,
424410	432250	there, there were no authentication for this page specifically. So, even if the device has some
432250	438430	password for the setup.html page, you can just for, uh, browse the other page, like index.html,
438430	444170	then you can connect to the device and you can control the device. So, basically, if you can
444170	451890	see on the screens, there are two plugs, A and B, and you have the full control of these two
451890	459970	plugs. So, what can be done with this? And, I don't know, you can put it to the remote start,
459970	466110	click to the remote start, then you can charge your car freely. Then attacker may abuse this
466110	476170	to, uh, get some, let's say, uh, power from that and also charge the car. And what if, if they
476170	482410	click to remote stop? Let's, let's think about it, someone is connected to the, uh, EV charging
482410	487470	point and charging their car and you are just clicking remote stop and after he come from his
487470	495950	work, his office, he's realizing his car has not been charged. And also, you, you have an option
495950	502190	that you can disable the plug. So, basically, if you click to disable, then the charging point
502190	511090	will be turned off. So, it will be disabled. It's sort of a denial of service. And, sometimes,
511090	517590	it's also another possibility that you can lock the connector. So, when you lock the connector,
517590	523250	it will just stop connecting to the device. So, basically, it has some sort of a, I don't know
523250	529610	how you call it, hook on the, for the connector that, because someone, we don't want someone
529610	535930	steal the cable when we are charging. So, if you lock that connector, someone else also would
535930	546150	not plug in. So, as you can see in here, these bolts are now open, quite ready for charging. But,
546150	554190	if I click to the remote start, as you can see, it's starting the charging and also locking the
554190	562290	device. And, at the same time, you can also stop it. So, let's come back to the source code, web
562290	570990	application. Then, you're realizing we have a Java code over there, right? So, for the, for
570990	575450	downloading this Java application, also there is no authentication. So, if there is
575450	581330	authentication on the web, web server, web application, you can freely download this
581330	589030	application and then you have control for all these charging stations. You only need to
589030	594310	supply, you only need to provide the IP address of the other charging points because Java
594310	600790	application doesn't have any authentication, it just gets the IP, then you can control the other
600790	610090	devices. So, you can hack all these devices by using this Java application. So, yeah, there I am
610090	619050	downloading the Java application and I'm just running it. Then, it asks me IP address of the
619050	627370	device, then you are connecting any device. And you can freely control it. So, the other
627370	632570	vulnerability that I find on these devices is also quite straightforward. It's OS command
632570	638550	injection on the web application. And the thing is, you need to provide the password for
638550	643670	connecting the setup HTML. I mean, if there is a password and you couldn't get, you couldn't
643670	648990	guess it or you couldn't find it, it doesn't work of course. But, mostly these devices doesn't
648990	655190	have any password. They are not setting this up. So, the pink feature, of course, as you can
655190	661830	imagine, is vulnerable to OS command injection attacks. And the attack surface, as you can see
661830	670410	before, connected ones are already indexed by showdown, by Google. It's really easy to find
670410	677830	these devices basically. So, let's increase the attack surface. Most of the EV charging
677830	683610	stations doesn't have any authentication on the setup page. So, they are not, as I mentioned
683610	691090	before, they are not setting up the passwords mostly. And after accessing this setup HTML
691090	697290	page, somehow, if you provide a password or if you find it without a password, it's really
697290	706770	quite straightforward to exploit it by using the ping IP feature. So, I am just using the
706770	714650	backticks to run my command. I just try to create another page for the web application to see if
714650	723150	my command works. And it works. And I realize I can run commands on these devices basically. I
723150	729190	just use the backticks. As you know, everything you type between the backticks are executed
729190	734450	by the shell just before the main command. So, the main command was the ping, but when you
734450	742670	are writing the backticks, it was running the command that you write over there. So, let's
742670	749330	double the attack surface, increase attack surface. So, using a default password is
749330	754490	encouraged by the vendors because it's written on the vendor's manual that I will show you
754490	760010	later now. Let's check this. It's recommended leaving the default settings according to the
760010	772650	table below. Default password is admin and password is 1, 2, 3, 4. It was in the owner's
772670	783870	manual. And then I see it. It's also possible to find it online. And then I see it. So, let's
784480	790910	give some more details. So, I try to run some commands and I succeed. Then I created my
790910	797730	reverse shell by using MSF Venom. The device was using the ARM processor, so I created it
797730	806610	for ARM. And created the executable Linux file because it was quite easy to run it. Then I
806610	811190	tried a couple of times. Of course, I failed a couple of times before. Then somehow it
811190	819190	worked at some point. And I just also created a Python simple HTTP server to download my
819990	827710	payload to the device. And I also created a listener to get a connection back to me. And
827710	835910	I used curl to download my payload to the device. And, yeah, after a couple of trials, I
835910	844130	succeeded. Then I run the executable Linux file. Then I got the shell. Like that. Quite
844130	855890	smooth. And then I realized it's instantly a root shell. So, yeah, the rest you can imagine.
855890	861990	You can create your own boats by using these devices. Or, I don't know, you can use for
861990	872230	something else. Then I reported that to ICS Search. In the middle of 2018, I reported it took
872830	878050	almost five months to get the response. After this discussion, ICS Search acknowledged and
878050	885550	also discussed with the vendor. They fixed it somehow. They fixed it for, uh, for, uh, for
885550	890610	not, not all the vulnerabilities, not for the remote code execution. Because I think they
890610	898110	couldn't do it. They told me they fixed it. I also tried again with a new firmware. I did it
898110	903270	again. At least I bricked the device again. So, I, I couldn't get the shell back but I just
903270	913910	bricked the device. But they told me they fixed it. I, I already warned them. Yeah. So, the
913910	919290	bonus, as a bonus, uh, I created a Metasploit module for denial of service because denial of
919290	926370	service is quite easy. You just write reboot by using the backticks. That's all. So, yeah,
926370	931210	because I'm quite lazy, I didn't want to create a whole remote code execution, uh, module
931210	938770	for that. So, I just saved my POST request and I created a module by using the POST request.
939170	947770	And that's all. Uh, I'm planning to share the POST module, uh, end of, uh, Defcon. And this is
947770	953870	all what I have. Thank you very much for joining me. And if you have any questions or if you
953870	957130	want to contact me, please don't hesitate. Thank you very much.
