start	end	text
8410	17230	We would like to say, first of all, thanks to everybody that made it possible to be here. To the
17230	28050	DEF CON staff, the Baidu, everybody. This is a dream. Thank you very much. Well, we both are a
28050	41570	big bag of nerves, so we will try to do our best. Well, presentations. My partner, my colleague, he
41570	53650	comes from Argentina. He's one of the members in the red team in ASEC Auditors. We work together.
53650	68670	And he is a bug bounty hunter since a long time ago. Well, this is his Twitter account. And me. I am
68670	76410	Gonzalo Sanchez. I come from Spain. I'm the red team leader in ASEC Auditors. And well, this is my
76410	84230	LinkedIn account, in case anybody wants to contact. Yeah.
85010	97510	Hello, DEF CON. Today we present how to use Google with different compression formats.
97510	109390	Well, what we are going to talk. We bring to the account a vulnerability in Google Earth. Why
109390	122210	Google Earth? Well, because Google is a challenge. A very huge company with fantastic products, with a
122210	132270	very good reputation, with reliable levels of security in their products. Many people use Google products.
132270	143690	And if you are able to have a vulnerability, find a vulnerability, and use it to spread malware, you are
143690	155070	using a platform with a spreading potential. Very huge, very big. So in this case, for malware
155070	164470	application, it's perfect. Nice Kilombo. This is the name of the account.
165360	176990	Nice Kilombo. Kilombo is a very popular phrase in Argentina, which refers to have one or more problems.
177590	189970	Confusion, problem, mess. This is Kilombo. Well, the attack vector, KML files. What is a KML file?
189970	202690	It's a file with a very similar format to XML, with graphical information inside. This is the key import
202690	214050	table in Google Earth. We are going to work with the description file of the KML file. We are going to
214050	231450	show an example of a file. Please guys, can you connect the screen? We are going to show a file, an
231450	242790	example of KML file with a location that is this hotel. Wow. Easy. It's a very similar format
243010	254310	comparing to, sorry, with XML file. The key here is that we have field files with the location of the
254310	262110	hotel, name, swap, and here the magic, the description file. This is the file that we are going to use
262110	270290	in the next vulnerabilities. Another kind of file for attack vectors came in set. It's the same of
270290	279030	KML file, but compressed with zip format. If you take the same file that we have seen, you compress it
279030	288810	in zip file and you import it in Google Earth. Google Earth renders the file and shows the location.
288810	301750	Easy. There is no need to waste time. There is an advantage when we talk with KML file, that is the
301750	312090	obfuscation because the file is compressed and it complicates to identify the payload of the file.
312090	318150	They are not suspicious files. We are familiar with executable files talking about malware, but
318750	328930	probably if you see a KML file, you don't suspect about this file. This is an advantage for us. It's
328930	334830	obfuscated because it's compressed and it's very common in Internet. We can find a lot of files in
334830	352890	Internet. Where can we find this kind of files? Forums, for example, Pokemon Go, sites of
353590	363150	bicycles routes, official sites with geographical information, airquakes, fires. This is an example
363150	373050	of NASA. There's a lot of sites sharing information in this kind of formats. This is the
373050	384230	victim and host with Google Earth. The victim imports a KML file and into this file comes the
384230	392210	downloader. The downloader is executed and communicates with an intermediate server that is
392770	398990	communicating with the real attacker, with the real payload that is downloaded by the intermediate
398990	407390	server and it's delivered to the victim. And after that, the connection directly with the
407390	418830	attacker. We have detected this problem with the current versions of Google Earth for Windows
418830	432370	and Linux. In this presentation, we are focused on the Windows version. Summary. Location. The
432370	439250	vulnerability is present into the JavaScript core of Google Earth. And we are talking about a
439250	447870	null pointer and also an injection of JavaScript. We are going to see this in detail. Well, we
447870	455010	bring three impacts to show. A remote cell and a Google cookie takeover using the null pointer
455010	462490	vulnerability and a Monero mining using the JavaScript injection. This is a virtual machine that
462490	474390	will be the attacker. And the victim is my computer. And my computer is Windows. Okay. And this is
474390	488470	the virtual machine with the real attacker. Well, the victim has Google Earth and he has
488470	501190	imported a site with an arbitrary name that is in this case is Google One. Well, we have to start
501190	509590	the server. The server is the intermediate server. In order to make easy the presentation,
509590	514930	the intermediate server and the attacker will be the same machine. This one. Okay? The
514930	525170	intermediate server is the attacker. Okay. This is the intermediate server. The victim has
525170	535170	imported and clicked on the site and the connection has received into the intermediate server. So,
536050	547270	we have it. And we are going to show the remote cell. The impact one. Okay. First of all, basic
548030	556430	execution. We will show and we will show the exploit. Um, well, Defcon has the exploit and
556430	566190	probably will show when Google fix this, this problem. But, uh, this is a help to, to use it. Um,
566190	581390	we are going to execute the command. Remote command. Basic operation like, uh, sample and
581390	590250	it's received. And now we can access to files in the victim. The file is downloaded and we have
590250	598890	it into the attacker machine. We have access to the victim's file. The file is downloaded and we
598890	609270	can check it. Bingo. Okay. This is for the impact one. Remote cell and file access into the
609270	621870	victim's file. Okay. Um, okay. Um, guys, please return to presentation. Impact two. We are
621870	639250	going to use the victim's computer to mine Monero. Um, here we have a problem because, uh,
639250	647610	we can not connect to this site with, uh, internet connection, but we can show at least the
648230	655590	Kman file. Here we are not exploiting, uh, the null pointer vulnerability. Uh, here we are
656530	665150	injecting JavaScript code into, um, description file. What we are doing here is connect with
665150	674350	coin hive and downloading the JavaScript code for the Monero mining. Um, when you import
674350	682070	this file in Google Earth, machine starts mining and resources collapse and what? You have a
682070	689530	problem with your, with your computer. But as I said, uh, we can not solve this, this, this
689530	697210	problem because there is a problem with the internet connection in, in, in this case. So we can
698110	709570	continue with the presentation. And the last impact is the Google account hijacking. Um, what we
709570	718290	are going to do is to take over the cookies of the victims. What we are doing now, because we
718290	726470	have access to the files in the victim's computer, we are accessing for, um, for the cookies that
726470	740170	SQLite file in the Firefox, uh, folder where the victim stores its own, um, Gmail cookies. What do
740170	748030	we need in this case? This is a type of social engineering, uh, attack because we need that the
748030	758110	victim has opened the Firefox browser with a open session in Gmail. With this, uh, file with the, the
758110	765730	credentials inside. In this attack, the victim with the browser open, with the, uh, Gmail account
765730	778010	opened, imports the KML file in Google Earth and we have access to its cookies file. Now we go to
778010	787710	our browser. This is the, uh, folder of the attacker because we are going to, uh, open the Firefox
787710	801730	browser in the attacker PC, opening the, the cookies of the victim. We delete any cookie in the
801730	975900	attacker's browser. Import the file. Again, we have the cookies file. We are going to export
976780	1014000	information in CSV, CSV format. And once it's exported, we are going to import. We are using
1014000	1093710	CSV format in order to make easy the transport between, between files. To repeat, in this case, sorry,
1093710	1129540	we are a little bit nervous. Um, this is the server. Uh, start from the beginning. The victim clicks on
1129540	1194740	the malicious, uh, site. Oops. Victim clicks. Something is wrong. Uh, what? Something is going wrong. Uh,
1203620	1217020	better. If you can see this, this is a virtual machine. Windows of the victim. The victim has opened
1217560	1228020	Firefox. Now we are starting the server. Same that we did some seconds ago. And the victim clicks on the
1229260	1241880	malicious file. Here the connection is received. And now we execute with the get cookie option. Here we
1241880	1255860	have exported the, the file. And here we are export in CSV format. Select all from the Mozilla cookies
1255860	1269360	table. This is the cookies file of the Mozilla Firefox of the attacker. We are going to drop the table
1269360	1276860	with the cookies of the attacker. And we are going to import here the victim's cookies. Drop the
1276860	1291440	current table of Mozilla cookies and import with the file generated. And open Firefox. And we have
1291440	1302980	the session of the victim. Please excuse that we didn't achieve this in live show, but it's so
1302980	1312380	difficult to achieve it. So, these are the three paths that we wanted to, to show. It's a short
1312680	1319400	description in order when they've conserved the, the, the exploit to everybody. The malicious game
1319400	1329440	file we have seen so many times this morning. This is the server, the internet server that receives the
1329440	1338500	communications from the victim. And this is the attacker. This is the, the Python that has mainly all
1338500	1348280	the functionality. Everything is developed in Python. And well, this is uh, the structure of the
1348280	1362670	exploit. And well, many thanks for everything. Incredible hard two days with a lot of problems with
1362670	1373450	connections and what it was hard for us to, to bring, but at least we could show you this, this
1373450	1382070	material. So thank you very much for everybody, especially for the guys that helped us in the last
1382070	1392310	hour. Hector Paulino, uh, well, a lot of people. Raiko. And thank you everybody to be here and give
1392310	1400850	us the opportunity to tell this and show this. I hope to, you enjoy with the material. Thanks.
