start	end	text
0	5740	Hey everyone, as you start moseying in, we're going to have Bertin. He is an independent security researcher.
5780	9640	He's going to talk to you guys about industrial protocols. It's going to be a really fun talk.
9640	14960	I hope you all enjoy it. And yeah, as you start moseying in, I see the camera guy has given me
14960	20640	the okay. We'll just start kicking things off. So please give Bertin a warm welcome and everyone
20640	32670	enjoy themselves. Thanks. Okay, cool. Hello everyone. Welcome to my talk. This is about
32670	42110	um, well, as the title says, mixing industrial protocols with web application floss. In order
42110	48870	to exploit devices in the internet. Which is a thing that I used to do all the time for like uh,
48870	62350	ten years ago. I mean, something really crazy. Um, let me, that too. Okay, here we go. So okay,
62350	75700	oh, why is it so fast? There it is. So fast. Okay. Okay, hello, uh, my name is Bertin, as uh,
75700	81540	they present me. Uh, this is my tutor. I'm uh, working as a security consultant. Uh,
81540	87860	professionally in network engineering, security research, device security, protocol security,
87860	93700	uh, basically all of my uh, research is based in remote exploitation all the time. I mean,
93700	99380	all the things that I do is remote. And always, all the devices that I use to exploit are
99380	107660	connected to the internet. All the time. Okay, agenda for today, uh, the motivation for this
107660	114080	research, how it started, how I found this, and how I developed exploit and all this stuff.
114340	120240	Uh, I'm gonna be talking about modern, modern magnet devices. The security problem in those
120240	127780	devices. And then I'm going to be explaining how to use magnet protocol itself as an attack
127780	133000	vector for this kind of devices. Uh, the fundamentals for magnet, because in order to
133000	137240	understand this, we need to recap all the things about magnets, how it works, how it's
137240	143020	designed, and all this stuff. The theory and the technique, and the exploits and the
143020	148360	conclusions. At the end, uh, there is a bonus track that I decided to include in this talk.
148360	157100	It's an RCE, an, uh, industrial router. Yeah, that's critical, as usual. So, the motivation
157100	164640	about this. There is a lot of fun, a lot of fun, in industrial protocol security. Usually you
164640	172400	can, uh, on off things, uh, start stuff, uh, start and stop stuff, read critical data, uh,
172400	179620	modify critical data, inject malicious data, execute malicious stuff, and so on. All these
179620	186440	remotely, from your home, from your, I mean, your hotel room, everywhere in the world. So, I
186440	192620	start playing around with many of them, of these protocols, visible for search engines. And
192620	200020	some of them are invisible. That is a fun fact that many researchers, uh, ignore, because they
200020	206040	think that current, uh, search engines are indexing all the industrial protocols. No, but that
206040	212160	is not true. Because, uh, there are a lot of new technology, there are new, there are a lot of
212160	220400	new devices with proprietary protocols. And these protocols are based usually in UDP TCP. So, you
220400	227340	can, of course, scan the internet for these, uh, new protocols, and, uh, have some fun with
227340	235560	them. So, uh, please, uh, keep in mind that thing, that there are security, I mean, there are
235560	241460	industrial security protocols, or industrial protocols that, uh, are not being indexed by
241460	247920	current search engines, like Shodan or Sumai. And people don't know that. So, the following
247920	253000	is the result of hours of reading documentations, analyzing servers in the internet, and
253000	258500	testing on common things, trying to find out new paths for remote injection and web
258500	266620	application services for specific devices using the BACnet protocol. Okay, BACnet previous
266620	272960	research. There are a lot of talk about BACnet. I mean, um, several talks about that. You can
272960	279220	find out, uh, it's always the same thing, like, uh, on, off, start, stop attacks. Uh, we know
279220	284600	that there is no security in this protocol. It's basically plain text. Uh, there is no
284600	292300	authentication method. Um, you can perform, actually, BACnet network scans remotely to the
292300	299980	BACnet topology infrastructure. No web applications issues find, found, until today, in
299980	306960	this talk. I was, uh, trying to figure out if someone else, years before, tried to do
306960	312500	something that I, uh, am going to show you today, but I had no luck. So, basically, this is
312500	318360	something new. Okay, today, I am introducing a new attack vector in BACnet devices. This is
318360	325200	remote. And last night, I found another brand affected by this, curiously. So, this is a
325200	329940	travel touch thing. I mean, there are several brands affected by this thing, but I don't
329940	334980	know, and we don't know exactly which they are. We need to find out. Um, you don't need tools
334980	340440	to do this. It's just a simple script. It's a crafted attack, very, very crafted attack. It's
340560	347340	a stealth, uh, UDP base, and you can get persistence. And finally, code execution in
347340	354360	browser, which is really cool. This thing doesn't work here. I mean, we're talking about web
354360	360240	application, but this thing is not capable of, uh, find these kind of things. So, if you
360240	365620	think that this is the thing, you are wrong. I'm gonna prove that today. So, please, keep in
365620	372140	mind that this thing doesn't work here. It's not prepared, yet. Okay, so, brands affected by
372140	377720	this issue, discovered until now, this is a traversal issue, as I mentioned. The first, uh,
377720	385900	brand is called RLE Technologies. This is a brand who manufactures devices for industrial
385900	392840	purposes. Uh, protocol converters, industrial routers, blah, blah, blah. They can, which, I
392840	398460	don't know which is the relationship with MyQi, which is a Hong Kong company. Uh, they are
398460	405000	using the same kind of server in both, uh, brands. So, they have, uh, one device here and
405000	408820	another device here, and they are using the same technology, so they are affected by the same
408820	415280	issue. Two brands, uh, using the same technology. There is another brand which is not
415280	420120	included here, that I found last night, which is called KMC Controls. It's affected by the
420120	428800	same, but it was found last night, so, it's, uh, new. Okay, this is the, the first device that,
428800	435280	uh, I was able to exploit with this thing. Everything started here with this thing, the RLE
435280	442500	protocol converter. Uh, what this, this thing does is, uh, trying to, well, actually, not
442500	448500	trying to, okay, it converts, uh, Bagnet protocol to Modboost protocol. This is a protocol
448500	454240	converter. When you don't have, um, a way to communicate with devices, this thing helps you
454240	460020	to, uh, modify this kind of protocol conversion, and you will be able to reach devices through
460020	468280	this thing. Okay, the devices affected by this issue are this one, graphically, uh, Daikin
468280	476260	and McQuay. They, uh, manufacture chilling, big chilling, big chillers, chillers, that's it,
476260	481840	chillers. And those devices are connected to the internet, they have a web application in order
481840	489840	to, uh, manage, configure, set up the whole thing. And things are just getting bigger and bigger.
490780	497200	Okay, uh, this is an example of a Bagnet topology, how a Bagnet topology is, is, um,
497200	506920	deployed in infrastructure. So our goal today is, or an attacker goal, is, uh, infect the
507820	513340	engineer web browser. Why the engineer web browser? Because he's going to be connected to
513340	520340	these kind of devices in every time. So usually those engineers, or these technicians, has
520340	527980	access to another, uh, set of devices. So if we are able to, uh, execute code in their machine
527980	533160	browser, probably we could steal, uh, other things that could be more interesting in, in this
533160	539060	kind of, uh, particular attacks. Uh, we're talking about like an APT attack or some kind of
539060	549440	thing, I don't know. But if you get persistent and the technician machine, you could probably,
549440	553960	uh, steal other more critical devices in that infrastructure, or probably another, uh, more
553960	562000	critical computer. This, this idea that I have with this. Okay, this is, this is taken from the
562000	572540	Bagnet.org tutorial, um, basically the, the official documentation from Bagnet. And there is a
572540	579420	little note, uh, about security. Because when I started this, I was, you know, interested in,
579420	585880	uh, how the security of this thing works. But I found this. So there is a little discussion of
585880	591240	security in this presentation. We have assumed that all nodes are trusted. Security will
591240	597340	obviously be an important future consideration. For now, assume that all devices are sitting
597340	601420	behind a firewall. That does packet filtering and the environment has well implemented
601420	607380	restrictions on the software that can run inside a firewall. This is all the thing that this
607380	613380	guy said about Bagnet security. You can find out in, in, in that link. This is all that you
613380	617940	will have, uh, that you will find about, uh, security implementations and the protocol
617940	624840	itself. So it means that there is no authentication methods. There is nothing, uh, to protect
624840	630180	the, the protocol itself if there is no, uh, firewall, uh, very well implemented. And
630180	636380	infrastructure. So our goal today will be the following. Uh, remote attacker from the
636380	644840	internet, uh, has access to the device, but has no access to the web application. But has
644840	652820	access to the Bagnet protocol. And he can read and modify things using just the protocol. So
652820	658800	let's start with the Bagnet specs. In comparison with the OSI layers, uh, the Bagnet works
658800	666360	in the application and network layer. And of course, IP. IP protocol. So let's start with the
666380	676340	Bagnet protocol. It's, uh, the port is 47808. It's UDP based. No complex security mechanism,
676340	683920	as, as I said. No CRC, no integrity checks, no hash, blank text, read write capabilities, and
683920	689480	it's completely open in the internet. You just need to perform a query in some extensions and
689480	696360	you will find out that, um, there are a lot of devices connect, connected. Okay, uh, so
696380	704680	the Bagnet structure is basically Bagnet, Bagnet IP. The first layer would be the VUVLC or
704680	712940	Bagnet virtual local control. The third layer, the second layer would be the MPDU, uh,
712940	719780	network protocol data unit. And the last layer would be the application data unit, which
719780	726360	contains all the information that we need to inject to the device. The magic happens there.
726980	733120	Okay, let's talk about the first layer, the Bignot, Bagnet virtual link control. It's
733120	740840	basically two bytes. Oh, excuse me, four bytes. It's four bytes. The first byte defines the
740840	748960	type. In this case, Bagnet IP, which is, um, A1 and hex. The second one defines the
748960	755640	function. In this case, uh, which function we, we would like to execute in, in, in the
755640	761940	communication. And the last two bytes define the length of the whole packet. So you need to
761940	769100	sum the three layers and put the result in that first layer in order to create a correct, uh,
769100	775240	Bagnet packet. And then send it to, to the network and get the response. If that number is
775240	782500	not correct, uh, you will get a more firm packet. So it's not going to work. This is a
782500	787440	graphical representation in Wireshark about the first layer. The Bagnet virtual link
787440	795260	control. You can see the function. This is our original unicast, unicast communication. And
795260	804280	the two bytes are the length. Then we have the Bagnet network protocol data unit. This is a
804280	810740	representation according to Bagnet wiki, but in practice it's just two bytes. Like this. So
810740	817080	it's just telling you the version that you need to use and the control. So in this case, we
817080	825020	set up the, the byte to four. Which means we are expecting reply from the device. So if you
825020	831340	don't configure this control byte, uh, you probably, you could, uh, you can, you can get the
831340	835620	reply back to you. If it's not properly configured. So you need to read the documentation
835620	843160	and start constructing the packet byte by byte. And the last header is the Bagnet application
843160	852380	data unit. Uh, this thing, uh, is the last header and contains, uh, variable length that also
852380	858520	should be specified in that, in that header. Otherwise, you will face, uh, more phone packet
858520	865600	issues again. This is how it looks like in Wireshark. Uh, this is a graphical representation
865620	873720	of Wireshark. One important thing here is, uh, the service choice. The service choice is the,
873720	882380	the byte that allows you, uh, read or write things in the Bagnet device. Okay? The magic is
882380	888200	in the APU header that allows you to read or write values in the Bagnet data, uh, structure.
889920	897380	Okay, here's what I'm talking about, the Bagnet service choice. So, you have all those values
897380	904060	and bytes that allows you to set up how the communication is gonna be executed. So, in this
904060	911580	case, we're gonna be using, uh, the 12 number value, which is 0C and hex, in order to read.
911580	919020	Just read. Right? In order to read write, you need to set up correctly the service choice
919020	924740	byte. At this point, probably you're thinking, you're taking a look into the 14 byte, because
924740	934400	the 14 byte here, allows you to, uh, restart the device. If you send that byte, uh, the device
934400	939340	will just restart. But we're not gonna be talking about this today, but keep in mind that this
939340	949000	can be possible. Just sending a single packet to the network. So, in order to read, we'll be,
949000	960700	and for write, it would be 0F. That's it. This is how, uh, a read packet looks like. You will see
960700	969840	the read property configured there, and the number 12 in decimal. Okay, the values that we
969840	976200	need to read and write will be the Bagnet objects. A Bagnet object is, uh, unique in a given
976200	984180	device. It's a combination, uh, with many, uh, properties. Specifically, when you create a
984180	993780	device in a Bagnet device, it means that every sensor, every in-out output, input output, will
993780	1000040	be created in a single device. This device has a name, and this device has, uh, his own
1000040	1006180	properties. Every, every sensor in the Bagnet device has this, uh, segmentation, like, uh,
1006960	1016380	specific, uh, may I compare this with, uh, profiles, would be kind of a specific profile, and
1016380	1024500	the property of each profile can be modified, remodeled. Okay, the object identifier
1024500	1030020	contains the property identifier. Basically, the string values represent the unary and
1030020	1035100	readable strings like location, device model, device name, and so on, in a few words, or
1035100	1043880	targets today. So, in this case, we are reading, uh, that specific object, the object
1043880	1050260	identifier, which is a property identifier. It's kind of confusing, but one thing is upon the
1050260	1059880	other. A property identifier has an object identifier. So, if you see, this is encoded as a
1059880	1066080	character string. The object name, uh, the location name, application software version is
1066080	1074040	character string. There are several tools available you can use, uh, in order to read and write
1074040	1079740	values with Bagnet. There are a lot of Bagnet clients, uh, but the purpose of this thing is go
1079740	1085960	deep and do this without tools in order to understand exactly how it works. Uh, you can do
1085960	1093740	this with any language that supports socket communication. Okay, let's take a look how this
1093740	1102720	looks like in execution. So, this is an example of how our read package looks like, uh, in a
1102720	1108300	really raw way, in a really primitive way. You can see the four bytes, the first layer, the
1108300	1114060	B-U-L-C, and then two bytes, the M-P-D-U, and then the biggest layer, which is the A-P-D-U,
1114060	1124800	which is, uh, a lot of bytes, two, four, five, six, nine bytes, okay? So, if you want to read a
1124800	1130420	property identifier and an object identifier inside that thing, you need to send a packet that
1130420	1139580	looks like this. You will see the service choice, which is 12, properly configured, and then, uh,
1139580	1145540	the object identifier. The object identifier is the only thing that I found as a security
1145540	1153740	mechanism, because you cannot read or write without that value, uh, configured there. So, in
1153740	1164200	this case, the device is using a 3,000, uh, string, uh, excuse me, um, uh, integer in order to, uh,
1164200	1169480	execute, uh, functions. I mean, you can, you cannot execute something without that number
1169480	1176160	specified in the packet. So, for example, if you try to write values there, and the value is not
1176160	1181620	matching with this value 3,000 in the device, you are going to be able to, to write something.
1181620	1194180	So, you need to first, uh, know this value in order to then, uh, write properly. Okay, let's
1200260	1208820	develop, um, a tiny script in Python that perform all these things that I've been talking about.
1209680	1218600	You can see the first, um, the first packet will be this thing. So, this thing, uh, is just
1218600	1225820	asking for the object identifier, and then the second packet is asking for the vendor name, uh,
1225820	1236820	the software version, and so on. So, it's like, uh, 7 functions. Each packet is for each
1236820	1245470	function. So, let's see how it works. Let's open the wire shark in order to see the
1245470	1253550	communication flow. Okay, you see, there is a filter for BACnet. I'm going to execute this.
1256320	1262340	And you see the communication. Correctly, I'm, um, I'm performing communication with the
1262340	1268520	device remotely. This is a real device connected to the internet. And, uh, I am, I'm asking
1268520	1275820	him information regarding BACnet. Specifically, I'm asking him for, uh, his object identifier.
1276060	1283380	You will see he, he ask me like, uh, yeah, my object identifier is 5,000, my vendor name, the
1283380	1288440	firmware version, the description, the location, model name, application software, and other
1288440	1297720	object name. All this information is printed here, on, on, in the output of my script. This is,
1297720	1305460	uh, my quite shiller, a big shiller, for sure. And this is how the communication works. When
1305460	1310980	you understand this, when you, in practice, are able to do this, you are ready to write values.
1310980	1317000	But which values are interesting? I mean, what can I do with this? That was the first question
1317000	1324180	when I tried to figure out, found something in the protocol and the web application. Uh, the
1324180	1330600	beginning, my purpose of all this whole thing was not to find web application issues. Uh, was to
1330600	1336640	figure out how to find something in the protocol itself. I mean, execute the stuff, but in the
1336640	1343480	process I found something cool. And this is the result. Okay, this is how you can, uh,
1343480	1349280	communicate with the devices. We just, with a simple script, as you can see, uh, all that I did
1349280	1356320	was just read the documentation, understand how the protocol, uh, works, and then, uh, put it
1356320	1364840	in code, in just a, a single socket connection, just sending row bytes, and then splitting the
1364840	1372240	response in order to show, uh, the plain state data coming from the device. Okay? Cool. Let's
1372240	1378560	continue with the thing. Okay, let's check out the response. At this point you will notice
1378560	1383560	that the communication with by the, when the device is successful, also the response back
1383560	1388980	contains a specific value for the object identifier. Remember that, that, that number. Keep
1388980	1393860	this value in mind because we will use later in order to write. It's really important.
1393860	1405990	Okay, now we know how to, okay, now we know how to read the specific values from the
1405990	1413530	Bagnet data structure. But the cool thing is that we can modify those values. And also the
1413530	1418930	same values are being taken from the application to represent the string values, I mean, in the,
1418930	1425590	in the web application from N. So this is cool. Because what if we could, uh, make a
1425610	1433210	modify these string values for pieces of code. Pieces of Java, uh, HTML or JavaScript code.
1433630	1441450	In theory, this could be works or couldn't be, but at the beginning I had no place to test this
1441450	1449510	because that was just in theory. I needed, uh, a real device connected to the internet with this
1449510	1455590	scenario, uh, in order to prove that this thing works. And well, I found it and, and, uh,
1455610	1462390	this is what it is. The write property is tricky. Sometimes objects are restricted to be
1462390	1468090	modified, but most of the time the property value location is able to be modified from the
1468090	1478490	Bagnet protocol. Um, well the thing, the same thing about the device ID. Okay, in order to
1478490	1484530	write, the property, uh, tells you that you need mandatory, uh, specific values, like the
1484530	1490530	object identifier, the property identifier, and the property value that you want to modify.
1492090	1507940	So let's see how we can modify stuff. So this is a real thing. This is a real application.
1507940	1513880	This is a real device, a MacQuietCheater connected to the internet. So, uh, when I found
1513880	1519200	this, uh, it was the same impression as you. There is nothing there. I mean, it's not
1519200	1524920	showing nothing, but if you right click on it and you check the source code, you will find
1524920	1535280	Go. Why? Because here, first of all, there is a password. Um, let me check. Password for
1535280	1543800	restart is 123. Yeah, this is out of scope today, but was a kind of, uh, nice, nice thing
1543800	1552140	to find. And then, if you take a look closer to this thing, you will find something really
1552140	1584560	cool. Ah, zoom in. Yeah, yeah, yeah. Let me see. Yeah, that's it. Okay, let's take a look
1584560	1596240	at the password again. The funny part. Okay, there is a password for restart, 123. Uh, but
1596240	1602320	here you cannot see any. I mean, on the main page you won't see any. You just need to check
1602320	1606400	the source code in order to find cool things. But there was another thing that took my
1606400	1613160	attention in the first place. The thing that is interesting here is this. The location. The
1613160	1623860	location is Las Vegas. Well, I put this for, uh, demo purposes. But here, uh, I'm going to do
1623860	1634840	this with, uh, this thing. This is, uh, Magnet Client. And you can do this from here. And now I
1634840	1643140	change the location, the value from the location, right? So, if I reload this thing, I
1643160	1660790	can see. Okay, there you go. Now let's check again the source code. And you will see how the
1660790	1672830	location has changed by IOT. You see, now we are in IOT village. So, I did this from Magnet
1672830	1680170	protocol. Uh, the device has no security. Actually there is no access for it. But I have access
1680170	1687190	to the, to the protocol itself in order to modify stuff in the web application. So, now this is,
1687190	1695790	this become a nice vector attack. A nice vector attack for, um, HTML or JavaScript code
1695790	1704190	injection. And we are not using verb. That's the cool thing. Okay, so, now we know how to
1704190	1715250	write. And now let's break it down, the exploit. Okay, the application is taking values from
1715250	1719670	Magnet to be represented as string values in the web application. Those values can be
1719670	1724950	modified from the Magnet data structure using the Magnet protocol write capabilities. And
1724950	1729630	good theory is, I replace the string values for JavaScript code, the JavaScript code will be
1729630	1735750	executed. Just in theory, at that time. Open up the source code, check again the value of
1735750	1742590	location tag in the device. And our goal will be the following. Replace this thing for
1742590	1747190	JavaScript code. And the result will be an stored, uh, crosshead scripting in the device
1747190	1754590	web application in those tags. There is no need for a special XSS payload, a single alert in
1754590	1762290	script tags. It's in order to figure the crosshead scripting. So, um, the application probably
1762290	1769110	is password protected. So, as you can see, actually you don't need to touch it at all. This
1769110	1774830	kind of cool because I, I, I didn't did any special, I mean with the web application
1774830	1781470	actually was not touched at all. Everything comes from the Magnet. But as I said, no
1781470	1793420	problem. Magnet is available to inject code. And now we know we should place our exploit. So
1793420	1811940	let's see the demo. I have a video because, you know. Okay, here we go. The same device.
1816980	1824900	And first of all, read, of course. You will see the location. It's Vegas. Uh, check again the
1824900	1835960	source code as I did. You will see the tags. All this information can be modified to
1835960	1844120	description. I mean, you have several places to put JavaScript code. That kind of thing. But
1844120	1850100	the cool thing is, as I said, the, the location value. Now let's change Vegas for a cool
1850100	1865760	payload there. Okay, everything is still fine. Now let's take a look to our exploit. So, our
1865760	1872760	exploit would be this way. Uh, the same thing. The four bytes, uh, the two bytes for the
1872760	1880000	second header. And the APDU with the biggest header, which includes our, our payload, our
1880000	1886040	JavaScript payload, but encoded in hex because it's going to be sent on the network. So, you
1886040	1892580	just need to send that. Don't expect a reply or anything because it's UDP. And the values are
1892580	1908100	going to be injected in the web application. So, okay, now I just send the exploit. You will
1908100	1914360	get the simple acknowledge reply from the device telling you that, you know, I received your
1914360	1925120	packet and everything has been written, so you're good, you're good to know. If you follow
1925120	1935540	the UDP flow, you will see our payload there, our script alert payload there. And the
1935540	1944820	acknowledgement from the device is expected. So, now if you reload, so there is your, uh,
1944820	1950820	code executed in, in the web application. And it's persistent. I mean, this, this thing is
1950820	1956100	going to be stored forever there. So, every time that someone connects to the device, it's
1956100	1964400	going to, it's going to be, get infected, something. Okay, other things that you can do with
1964400	1973460	this is, uh, for example, leak internal server routes. And you can see config object input
1973460	1980360	that comes from the device. So, you have, uh, path leaks there. You can take advantage with
1980360	1988900	Bagnet. And also, uh, check, uh, the, the device description for each, uh, profile. So, for
1988900	1996220	example, this was, uh, elevator, free machine room temperature. So, you can enumerate what
1996220	2003860	exactly which specific device does in the device. So, conclusions for this part, the techniques
2003860	2008340	allow you to inject JavaScript without touching the web application at all. This, uh,
2008340	2013220	JavaScript protocol base injection technique. In this particular scenario, we don't need
2013220	2017920	credential or access to the web application. You just need to inject the payload and say
2017920	2028480	goodbye. Several protocols are also affected by this kind of issues. But, you know, I can, uh,
2028480	2035000	publish everything in one, in, in one talk. Uh, several Bagnet, several Bagnet devices with
2035000	2044780	the port 47808 are vulnerable to be modified remotely using this Bagnet protocol. And
2044780	2050080	the number of current devices affected is unknown, at least for me. Always, there are
2050080	2055620	probably new technologies affected. There are several tools to read and write. If you're
2055620	2060160	spreading issues, try to reproduce, try to reproduce the vulnerability this way. Check your
2060160	2066260	backlinks or operation code. So, finally, the bonus track, uh, this is something that I
2066260	2079160	found a couple of months ago. It's, uh, basically, uh, an RSC vulnerability and those devices
2079690	2088900	from this brand called Forfait. So, Forfait is a Chinese brand of industrial devices. Uh,
2088900	2096160	they manufacture a lot of stuff with, um, 3G, 4G, industrial routers, Zigbee, LoRa, a lot of
2096160	2103020	that thing that is related to industrial stuff. And, of course, they have, uh, devices
2103020	2109560	connected to the internet. Uh, I found something really cool here, which is, uh, an option
2109560	2115520	to execute commands. At first place, you would think, okay, it's just put the command there,
2115520	2122300	put a netcat inside, and probably you would, you could get a reversal back, but that doesn't
2122300	2131100	work, so I need to figure out how to execute code there. And, there is an option here, and
2134200	2140820	application, this option called commands, administration commands, and you will find this.
2141560	2153280	Take a look. Okay, this box, this command shell, allows you to execute Linux commands, but as I
2153280	2159840	said, if you try to execute a netcat or something like that for easy stuff, it won't work, won't
2159840	2167400	work correctly. So, I had to figure out how to execute command here, commands here, and I found
2167400	2178240	out, uh, this payload, this payload that create like a, um, descriptor or something, and then
2178240	2187620	you will see the netcat command included here, pointing to my IP and my port. So, just copy
2187620	2204630	that thing, paste there, copy, and run the command. Great. Now, I'm going to show you
2204650	2212790	the, here you go, and you will see the shell back to me, remotely from the internet. And
2212790	2221920	there you go. And also, you can perform a cat, you know, the same thing as usual, ATC,
2221920	2228840	password, and that's it. Well, this kind of issues are always in those kind of devices, it's
2228840	2236740	the same thing all the time. Uh, it's really, really easy to spot RCEs, um, I don't know.
2237280	2245260	The thing continues, I mean, the research continues. Well, I think that is done for today.
2245260	2249480	Any question or something, just let me know. This is my Twitter, if you want to follow me, I
2249480	2256280	always publish in stuff related to this kind of, uh, IoT stuff, OT stuff, ICS stuff, so, thank
2256280	2258300	for your time. Welcome.
