I present to you your speakers, Daniel Romero and Mario Rivas. Can you hear me? Yeah? Okay. Well, hi everyone, and thanks for coming to our talk, Why You Should Fear. At the end of the screen, we're going to present on the price-printed research, okay? Thanks also to Descon for giving us this great opportunity. Okay, just first of all, just a brief introduction about who we are. This is Mario Rivas, and I'm Daniel Romero, and both work as security consultant and researchers at NCC Group in the Madrid office, okay? Here you have our Twitter account and emails, but if you want to know us better, we are always up for a beer, so just ping us. Okay, this is the agenda. This is a really classical agenda. First, an introduction about our research and the type of data we have got. The text and melody. Mario will present the text and melody and some facts that we have developed and a way across the different vulnerabilities that we have found. And after that, we will show you some exploits that we have developed. And just finally, a brief conclusion. Let's go with the introduction. Okay, the main goal of the research was testing enterprise devices, okay? And figure out the current state of security of them. For this reason, we thought that printed would be a good target, okay? We selected six different medium-sized enterprise printers, and we decided to focus this research in a red-teaming approach, okay? So we did vulnerability research, exploitation, and post-exploitation. Keep in mind that it was not an assessment, so we only need one vulnerability that provides us remote code execution. We don't need to find all the vulnerabilities that the printers have, okay? And why printers? These are really good questions. Printers have been really... They have a lot of standards, and many years ago, around the companies. And they are usually connected to the different networks, different VLANs, so we can use them in order to pivot in so the different department that company could have, okay? And obviously, information that could be managed by a company is really sensitive. We have corporate information, personal, financial customers. And don't forget the information which was included or is included within the configuration. We can have... Domain accounts, credentials, password, and et cetera, okay? And, well, usually, printers are considered low-risk targets, so probably they are not included within the patch cycle, and they probably are not configured securely or properly, okay? And then we have uncontrolled devices, managing really sensitive information, and connected to the most of the company's networks. This is an example of this week where Microsoft catches Russian estate hackers using printers in order to attack companies, for example. And why not? Some vendors decided to make a statement like this one, so it is a challenge for us. The most important, probably. Okay, let's go with the attack surface. First of all, just comment that we identify two different operation systems within our printers, the real-time operation system, RTOS, and Linux. And, obviously, we... We identify many different attack surfaces, like web applications and web servers... Web services, sorry. Mobile applications, file parsers, updates and freeware analysis, printed languages and services, external services, like the Google CrowdPrint or AirPrint, management services, Telnet, SNMP, and others, and proximity attacks, like Wi-Fi, USB, and, et cetera. And we also decided to include other two tasks. Post-exploitation and hardware analysis, okay? But, obviously, we didn't have enough time to cover all these attack surfaces. And we finally decided to include the following ones. Those painted in gray is because we didn't include them in all the printer's tests, okay? Uh, this is a more detailed picture about our attack surface, where you can see the different elements that we call during this... In this research, and, for example, for the printer languages and file formats, we decided to include the PGL... PGL... PCL and the PSS language formats, okay? Let's go with the testing and methodology. So, this is the methodology that we mainly, uh, used during the research. Uh, we started with the state of the art on, uh, setting up our printers, and then we chose, uh, a scope of our attack surface, as we just saw. And then, in a cycling process, uh, we started searching for vulnerabilities, uh, passing different protocols, and finding some crashes. Then analyzing them, and then trying to exploit them in order to gain more knowledge how the device. Uh, all these while also analyzing the firmware, in the cases we were able to obtain it, and also, uh, using the hardware to get some more useful information. Talking about phasing, uh, we started with dumb phasers, uh, which are very quick to launch, but also, uh, well... And we continued developing, uh, smarter ones, uh, which require more time but ga- give better results. Both techniques uh gave us great results but we also felt that we were spending more time that uh we should. Uh so we decided to create our own fuzzer. While looking at the state of the art uh we found two amazing tools uh Sally and Bufas by the way um Joshua Pereda uh the maintainer of Bufas and Carl Pearson were here just yesterday. Um these two tools have great uh modules and great uh functionalities uh but we were changing a lot of the code so we decided to to fork Bufas and after Sally and Bufas uh the next one was Wasowski so we call this Fasowski. Uh we wrote it in Python 3 and we changed uh improved some of the modules like the string passing libraries and um we also made fuzzer modules to keep oral protocol fuzzers under a single uh program with a similar behavior. And between the rest of the changes uh we wanted to solve some difficulties that we were having. Different implementations of the same protocol behave uh different in different targets and when a device crashes it can go totally down or maybe the the service may stop answering or maybe it just fails. And uh we wanted to make it more efficient and we were so print a stack trace in some debug interface. For this uh we made a main program with a lot of arguments to uh avoid touching the code uh for different targets and we made monitor modules to constantly check the target. Then when the device crashes um a lot of times we will need to reboot it manually. So we made restarted modules um to for example turn off and on a smart plug and adapt to any necessity we we were having. And then uh to give usability to the to the fuzzer we made uh a nice console where we can pause and control the fuzzing session and uh do things like retest uh suspect packet uh suspect the case of crashing a device and do other things like printing human readable format the packets that we are sending and uh we can also save stand alone scripts uh that we can for example uh send to a manufacturing manufacturer. So let's go with a very quick demo. Before that uh you can see here um a typical Bufas uh test case uh printing and below um the our console with the test case, the number of test cases or target and some more information about the actual test case. Let's go for the demo. That's it. Okay um so uh the uh the uh the uh the uh the uh the uh the uh the uh the uh so we can see uh below a pink to the um to the target and we can see above um the help with a lot of the comma the options that we have uh the different modules the fuzzer modules that we have uh developed, the restarted modules, the monitor modules and other options. We are going now to launch uh the fuzzer to our target, the printer one in the port C. So let's go to the fix three one using the internet printing protocol uh fuzzer and the get printer attributes command of the IPP protocol. And we are also using a restarted module that turns off and on on a smart plug when the device goes down. We can see here our cool logo and the console where with a lot of the commands that we implemented. We are going now to just test the connection sending a non-fast packet to the printer. And after checking that we are going to test the connection and we are going to go to a different test case and we are going to continue the execution from from there. We can see here uh the different test cases that we are sending uh like in very similar to Bufas. And after sending two of them we will see below uh that we will stop receiving ICMP messages uh the printer has gone down and now we can see that we are going to not connect to the target and we are going to use the restart module to restart the target. After that it will wait for it to recover and um it will continue the execution automatically. And but we don't want to do that we can control C go to the console uh and we can for example print the suspects where you can see the 5, 1 and 1 and we can also print this uh test case in a human real format uh you can see all the decoded packet and the longest line uh is you can see we are sending 10,000 C's instead of the default value which was Ian. And we can also say uh see a proof of concept that we can copy and paste into a script and for example send it to a manufacturer or use it in an exploit. Then um after this uh recovers we will retest it to see if it was this test case which was uh causing the crash or it was any other reason. For that we can use the fast command and uh we are going to launch the fast command for the 5, 1 and 1 we will just test this test case and after that we stop receiving ICMPs again. Uh we have a bug in this case it was uh HIPAA for a flow and we can uh a standard on a script into a file with a crash command and um disable this element to not test it anymore because we already know it's vulnerable and we don't want to spend more time with this. So that was the the main demo. Uh we we can find all the code after the talk in our external github. And let's go for just a bit of hardware. So we are going to test this out. We took a very good look at the hardware mainly searching for things that will help us with the exploitation of things. Like the bug interfaces like uh serial ports, UART, JTAG and other uh information that will allow us to dump the firmware or other useful information from the memory. And while doing that um we also were having too much fun uh playing with the hardware uh we did something that we shouldn't and uh one of the printers will never print a JTAG because of that. Um we could say maybe kill a printer save a tree. I don't know. Um so one of the first things that we did was uh looking for exposed memories. Like in this case where we used that uh bus pirate which was connected to one of the chips and through the SPI protocol we downloaded the firmware from the from the from that memory. We also found uh a serial ports in three of the six printer uh tested. Which uh also we found uh some JTAG ports that seemed to be disabled and uh the serial ports were extremely useful as they gave us a lot of information, uh debugging information uh errors and stack tracers. And this was of course very useful to exploit some of the vulnerabilities that we found. Uh also one of them had a interactive shell that allowed to write and read uh memories and um did more than just uh uh text to memory and also execute from arbitrary positions so we decided to make a hardware backdoor with this um which could be implanted with by someone with physical access to the printer in 2 or 3 minutes. For this we used uh Raspberry Pi uh as you can see in the picture which was connected to the to the serial port and was also powered by it so whenever the printer is on or Raspberry Pi will be on and then the Raspberry Pi will connect to an access point and from there we could just uh access to this console and have this these capabilities. That was a very quick look at the hardware and let's go for some of the most common flaws found in most of the printers. Um we started with the web applications and we found really weak default configuration exposing all most services available in the printer. Um we found really weak default uh more than 20 in some cases. And we also found that it was giving access to the management panel with default or without credentials. Uh we got the feeling that it was like the pro security of 20 years ago. Um and of course we found a lot of the typical issues in our web like uh cross-server request forgery, uh lack of access controls in some functionalities like um uh one that allowed us to load uh a lot of the uh the uh the uh the uh the uh the uh the uh full uh backup of the configuration including uh passwords in clear text of course. And uh other things like cross-site scripting issues like 1, 2, 3, and 4. And a bit more interesting patroversal uh which allowed us to to load some files but unfortunately we were only able to load some specific extensions and we were not able to further exploit this to get closer to our objective which was uh to get the uh the uh the uh the uh the uh the uh the uh the uh the uh the uh the uh uh to get a remote code ex- execution. So all these issues are not bad but we're looking for something that may allow us to get a full control of the device. So looking at the frameworks we found a few slightly more interesting functionalities. Like this one, you can see there is a lot of uh information uh a lot of the bug information like authorization and security logs including session pa- uh cookies and also more information like active directory logs, uh Kerberos logs, the full list of processors running in the machine and more information about the underlying operating system, a Linux in this case. In this second case was very similar to the first one, um with different functionalities under different URLs and this was uh very useful to exploit one of the vulnerabilities that we will see later. And we look at the full memory of the device containing any secret uh passwords uh anything in that at that moment. We also use this as a memory leak issue to defeat ASLR uh when when exploiting one of the issues. We will see also that later. And of course all this was uh accessible without any authentication because it's not even in the menus or anything so. So going for the memory corruption issues we found a lot of them in a lot of services not only in the web but also in um in other services like uh printer protocols IPP or LPD or SNMP in the Google Cloud Print Implementations. Basically a lot uh more than we could handle or investigate so we really stopped searching for more. Um we we had basically vulnerabilities everywhere which lead to crashes everywhere and also some useful stack traces in some of the debugging. So this was a very useful tool for us to use. Um so we found a couple of uh interfaces that we found like this one where you can see that the PC is overwritten. And this is from uh exploit that we won't uh show you today but don't worry Dan is now going to to explain to others that are nice. Okay let's go with a couple of uh exploits examples sorry a couple of exploits examples that we we've we developed for this research. Uh this is the first one this is the easy case and it was found by one of uh web application farses. Okay as you can see in in the image after sending a crafted HTTP request and we uh with a long cookie value we were able to uh crash the printer. So probably this is a basic or stack buffer from. Okay. But looking into the framework we identified that uh developers forgot to include boundary checks in the whole code. So probably this extractor uh so this string and copy here uh which is copying the cookie value into a stack array could lead to a stack buffer flow. Okay. And uh an important and also important point here is the comb variable. The comb variable is the is the cookie size including the cookie name, the equal symbol and the uh cookie value. Okay. And it for it is for example used in some parts within the um within the string copy uh function like within the the size argument. Where where the uh the uh the uh the uh 15 byte were subtracted from this for this variable. Okay. Question here um will be do you really think that there is only one back here? The answer obviously is no. Imagine that we replace the uh equal symbol by a semicolon symbol. Okay. The comb variable will result in 14. Um 14 minus 15 is a negative number. So the string copy function will copy a really huge space memory into the local array. So we have two different equivalencies in the same line. Hey you have two plus off com sets. And the first one's just sent into a really long cookie value. And the second one just replacing the equal symbol by a a partisan equal symbol. Okay. Um thinking about exploration uh so look it looks like like we are going back to the 90's exploit which is curse um let's go to check the different difficulties that we came across. The first one is uh we Jennifer Lerv within the stack and the heap. We didn't have ummm software at the back and we are trying to exploit our real time operation system. We so we need to reverse engineer the firmware in order to identify some potential functionalities for example and use the that functionalities in our shell code because we don't have a shell here, ok? Help is only we have a direct PC overwritten, a potential read write, an executable in the whole space of memory and we have the stack executable, ok? And finally as Mario commented before in the same printer we identify a memory leak vulnerability that provide that allow us to get the full memory. So what what we what what we're going to do here is try to use this memory leak in order to bypass the ASLR, ok? So the exploitation change should be we're going to send a shell code to the printer between patterns, ok? We're going to use the memory leak vulnerability in order to dump the the memory leak vulnerability and we're going to use the memory leak vulnerability and we're going to use the memory leak vulnerability and we're going to try to identify in that memory our shell code and where and try to look into into where our shell code was located. We're going to try to uh trigger the buffer flow and after that jump into our shell code, ok? Ok, uh but for our uh reteming tools we wanted something more and but so what is the m- one of the most important data management by a printer? Obviously a printer is a machine that is able to send the documents and so why don't create a shell code that is steal all documents into the printer and send them through a reverse shell, which sounds like a good plan. Ok, let's go with the demo. For this demo we are going to have two different machines. The first one is the attacker machine which is going to execute exploit and exploit huddle that we will receive the uh the data from the printer, ok? And the second machine is a victim machine that we're going to send the the document to the printer. Ok, let me check the video. This is the- sorry. La movida. I can't see it well. And uh ok, here you have the demo. Sorry for this. Ok, let's go with the demo. Uh here you have the uh the attacker machine which uh which uh IP address and below you can see the exploit. This point need three different arguments. The first one is the target IP, the target port and the reverse IP. We are going to include here the ta- the uh the attacker machine IP address. So we are going to attack the printer one in the port 80 and after that the we are going to include the printer machine. Before execute the exploit we are going to execute all the exploit handler that will will receive all uh all data sent from the printer and the listening the pro- in the port 1337. Ok? And after executing the exploit as you can see in the uh third line we are exi- we are using the memory liability in order to find uh our payload in memory. Ok? So we have now received uh connection from the printer with the sentence hide the planning friend because it was included within the shellcode. Ok? This is now the um the attacker machine the solid the victim machine uh with a different IP address uh what what what we are going to do now is sending this document to the printer. Ok? We are going to send this document to the printer one which is this one and after sending the comment you can see here for example how the exploit has received some data, data from the printer. Ok? So I am now converting this data to a PDF. And so after two seconds you can see here how the uh the uh the uh the uh the error, uh the error is losing the signal. So it is a very very important thing. And it is a very important thing. So let's look at the uh function. So we were able to uh steal all the data uh documents uh sent to the print okay. And the printer continues printing normally and uh all exploit handler also forward the all data sent to another printer, control a buy the attacker. So we were able to steal all data uh documents sent to our printer. Thank you. Ok, let's go with the second exploit uh this was the exploit, uh, uh was the, uh, the case and this is going to be the tricky case uh as we didn't have software and hardware debug and all the protections and difficulties was implemented in this uh this printer. So isn't it going to be easy to explain? Uh but we will try it okay so be patient please because it's a bit tricky. Okay we found uh a similar in the same place but for this printer but in this case we have two different parts in the cookie value okay. The first part is uh the first part is something like a hash and the second part separated by a uh comma it's something like a base 64 string okay. After reverse engineering the print work fr- the printer frameworks we identify some potential that will have these that could contain this vulnerability okay but the most important function was the function that decode the base 64 decode value okay. Uh after analyzing this function we identify how a struct was based on this as argument to this to this function to the base 64 decode function and this has different elements included within this struct. The first uh element is the source source pointer which is the base 64 string the second is the destination pointer which is the result of the base 64 string uh that will this will be filled um within this this this function. The source length and the destination length okay. But this function the base 64 function was called by the code in the highlighted area. As you can see here we are calling the base 64 decode function and we are passing a struct as argument okay. And the buffer flow occurs because the destination pointer which is here was associated to a local array. So if we send a really long cookie value base 64 encode we are over um the the base 64 decode function will overflow the stack. Okay? So this was analyzed locally so we need to corroborate this dynamically okay? So we use the the unicorn framework in order to emulate some something if you don't know the unicorn framework uh this framework allows you to emulate different parts of code let's say the the result for example the registers and we decide to create a script that um emulates the the function that get and checks the second part of the cookie the string length the base 64 and then the the code and other functions, okay? And after it's a good as the um the script where we paste 100 uh 100 A's as um basically for us argument, we were able to identify that the PC register, the problem counter register was overwritten by by by A's, okay? We can also see how the stack pointer or all data all data included with the stack pointer we can control all this data. And uh the R4, the R4 and R5 register were also overwritten by by A's, okay? This is because the last instruction, instruction execute before before to get all of this is a pub instruction which is popping the R4, uh R4, R5 and the the PC register, okay? So we have now all the information that we need in order to create OSHA code. But everything become inside here. We identify that the stack wasn't executable. We also identify that we try to to to use many firmware addresses in order to create our shellcode to our drop change, but none of them work properly, okay? And we also identify the this uh the the printer was using a a modified T-kernel RTOS, but the most important point here is that this is a normal no monolithic operation system and different tasks could be executed at the same time. So probably what the kernel is doing here is take uh a code from the firmware and execute this code in memory in a different address, okay? So this is the reason because we were not able to use uh firmware address to create our our shellcode or drop change. So therefore we didn't know where and how our shellcode can be executed. We have something like SLR or or knopsets. We have uh NX uh we didn't uh we were not able to identify valid addresses. So this is the reason why we were not able to use the T-kernel to create our drop change. Uh but we we need to identify valid address in order to do that, okay? So thinking about it we thought about different approach that we can use for example, reverse-engineering the T-Kernel structure, but all this we didn't have enough time to do this because it could take weeks. Uh reverse-engineering the bootloader in order to identify potential static addresses, identify static memory but we didn't know what permit uh like configuration for example but we didn't know what version we wanted to use. So that's the whole thing and that's all. Okay so so this is a first example here. So this is a first example here. So this what permission could be associated to that piece of code, or memory, sorry. But first, random addresses that we'll see now, on looking for helpers, ok? Helpers like this one, this is an infinite loop that we found within the, the bootloader, so, and we thought that it could be a good option, use this infinite loop in order to create a blind exploitation, ok? Imagine that we have a code that we don't know if was executed or, um, executed or not properly. What we can do now is just, after the, that code, we're going to try to jump to our infinite loop, ok? If the printer reminds up, that means that the code was executed properly. If the printer crashes, that means that the code was not executed properly. So, it's something like a blind cycle injection, but with memory corruptions, ok? Um, ok, uh, we decide to mix the, the infinite loop code helper with, uh, the following approach of brute forcing the PC register. With potential framework addresses and figure out what instructions were executed. Let me explain, ok? Uh, the main goal here is, uh, we're going to, helping us with the code, go to the infinite loop, uh, code helper. We're going to try to brute force in the PC register, ok? And we're going to, to, to try to guess or identify what instruction was executed more in memory, blindly, ok? So, remember that we can control the PC register on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, register, it's all data included within the stack pointer, ok? Imagine that we were brute forcing the PC register, we finally jumped into a properly instruction, but we don't know this stewparks instruction, ok? And we're going to include some data within our step pocketing like three set-black depuis arche princess ному the infinite loop address. If we execute this code, the PC re- the R0 register will be overwritten by the first set of A's, ok? Uh and the second uh the PC register will be overwritten by the second first of a- second set of A's, sorry. And so the printer will be down, the printer will crashes, ok? But in order to solve this and try to guess what extraction was executing moment, we can change the formation including- we included within the stack pointer. This is uh another example, uh but for this case we're going to just include one set of A's within the stack pointer and after that the infinite loop address. If we execute the same code, the same address, after they execute this address, the R0 register will be overwritten by the first set of A's and the PC register will be overwritten by the second, oh sorry, by the second- uh the second set of A's, ok? Uh and the R0 register address, which is the infinite loop. So, the printer will remain up. So, using this methodology, we were able to identify that in memory, uh we are executing in memory a pop register, ok? Which is popping a one register and after that the- and the problem counter. So, using this methodology, uh or approach, we were able to identify three instructions in memory. The first one in address 12, which was an add instruction. The second is uh in the other two, uh 14, sorry, uh which was uh a pop instruction and in a distance of 500 bytes, we were able to identify another pop instruction, ok? So, our main goal here is to identify the same pattern that we have found in memory in our framework, ok? And we finally were able to identify this pattern, but in another address. That means that the- when the kernel is executing this code, the kernel is applying an offset to- to this- to this code. And we now know the address that the exactly offset that the kernel is using, ok? This provide us useful rock gadgets in order to create our sh- our shell code, and potential help us to continue with the task execution. Sorry for that but this is the way that we found in order to create or exploit, ok? But it was not enough. We need more rock gadgets in order to create or exploit and at this- this moment, we remember that as Mario commented before, uh there was a we remember that another function, another vulnerability which allow us, would provide us some useful, useful information was found in the same printer. This, um, memory leak or, or information leak vulnerability provides where exactly, uh, images and gifs were allocated in mobile. So we can use this information in order to bypass the ASLR protection for example. And we're going to do something like exploitation with images, ok? So we're going to download all the images and gifs to our laptop and we're going to use the drop gadget script in order to find some interesting drop gadgets, ok? Obviously this is not coherent code, coherent code because they are images, but we were able to identify some useful, useful drop gadgets to create all full exploit, ok? But we came across with another problem. This is a problem was the last problem, I promise you. Um, we identify, ah, we came across with caches, ok? So we need to flush the caches. There are some options here, like call RM instructions or different, um, functions like sleep, main protector and others. Or continue with execution flow, which is probably the most harder, the harder but the most professional option. And we choose this option. Yes, quickly. um in order to continue with execution flow we need that all shellcode implement 3 different um parts. The first one is all exploit for example we can use uh we can create something like for the previous uh exploit where we are going to code the print functionality and steal all data through a reverse connection. The second part uh should change the address that we were able uh we were able to overwrite with the vulnerability in order to jump in a valid function. At the end we we want to continue with execution. So we need a valid function that we can read here okay. And the third uh the third part that um we should align the stack pointer again to a previous pointer because we have for example a execute or payload or change some addresses so we need to align this stack pointer to a previous state okay. And after that just trigger the vulnerability as many times as you want okay. Let's go with the demo uh for the previous uh exploit we will uh we will try to attack the document of of a printer uh but for this demo we're going to attack to try to attack all the information included within the uh within a printer data. Uh let me check demo. Okay for for this demo we implemented three different functionalities within the within our all exploit. The first one is uh right so we can uh we can use uh the uh the the uh the uh the write bytes into the uh into the printer memory and after that jump into that to that memory. For example we can write uh uh shellcode and after that jump into our shellcode. The second is similar to the previous one but we can write a file that we have in our computer for example in uh a piece of code. And the last one is the read functionality. This allow us to read some data from the printer memory but we need a way in order to allocate the memory or copy the memory. Ok. So what we did here is we are going to try to copy the memory that we want to read in a known place. We know where exactly images and gif were allocated so we are going to use this piece of memory in order to read the information. Ok. Uh what do you need are and after that the the the size and here you have the uh the image that we are going to use in order to to exploit this this function. Uh here you have sungea and here you have the characteristics. We write the data fit the MooSrc like that see, you can see how it is a normal PNG header, okay? So we are going to use the read functionality to read this address. We're reading 500 bytes and you can see here for example how we are reading the information the address that we have set and writing this information in another in another address which is the image, okay? And after that we're going to download again the the image as you can see here the information the included within the image changes and it is now uh uh certificate included within the old printer memory, okay? So with this function we were able to read credentials, domain accounts uh uh and other uh sensitive information, okay? So let's go with the second uh the first functionality which is the write. We can write a shellcode for example but for this demo we are going to just write uh a sentence so the higher requirement sentence. We are not to jump to this this code because it is a it's a it's a sentence and after write this information if we download again the image we can see for example how the higher requirement sentence was uh was write in the first um in the first line of the image, okay? And let's go with the uh the uh the the third example which is the write file. So what we are going to do here is we are going to try to overwrite an existing web portal image, okay? Uh so we are going to select uh uh the uh the uh the uh uh uh logo that we have in memory, we we're going to try to overwrite an existing image in the uh in the memory. It can take a bit so we are selecting a logo and we are writing the the information including the logo in uh unknown other let's go to move this forward because it takes a bit and uh after 3 seconds we are going to open the the web portal image which is simultaneously lock again and this is uh uhu this one here and is a uh a events sensor like so that we are going to, we're going to overwrite and if we refresh again this image we can see how the NCGuru logo overwrite the image that we have in memory. So we, so we can control all the information that we have in the printer memory in order to read this or, or to write this uh into, into our printer, ok? Let's go with the last part, the conclusions. Ok, I hope you're all still alive after Danny trying to explain this last exploit. Um, let's go with the responsible vulnerability disclosure. Uh we started this process in February and we got a very mixed response from the vendors. Some of them had a very mature procedure for this and we're really quick fixing the issues and uh policing patches. Special mention to Lexmark which response was great. And on the other hand some of the vendors had a very mature model. We could just say that uh it was easier to find the vulnerabilities than their security department. So uh there is some work to do in that area. Um we already published all the security advisories. Um most of them two days ago. And as a quick overview as you just saw uh we found a lot of issues in a lot of places which uh lead uh in most cases to remote conne- code execution issues. And let's go for the CV party. Uh we found uh well we got 50 uh CVs. Um most of them high hand critical risk ones and just don't take the number per manufacturer as an indicative of their state of security because some of them grouped different vulnerabilities under the same entries. Um just for, just for demonstration I wanted to show you how easy is this? To, to check, uh quick reference the full list. And going for the main conclusions um these research aim to show how the state of security of common office devices uh such as printers which are present in most if not all organizations is still very mature and largely ignored. We found a large number of critical and high risk issues in all the printers tested. Uh we got uh proof of concept for four of them. We show he uh we shopped here two of them. One for documents and one for other data within the printer. And we ran out of time to um to show uh to develop uh the exploits for the two others. So but anyway there were issues that could lead uh easily to that. Uh a lot of CVS and we stopped searching for vulnerabilities. So this was important we think there is a lot more of issues waiting in there. And we only checked a few services uh there is a lot uh more things to research here. And by what we saw uh the first one looking at this we'll probably find gold in there. And we only checked these printers but we do not expect the same manufacturer having different implementations for some of the protocol sites such as IPP or different web applications etcetera. So probably the number of number of uh devices affected by these issues is huge. Um much bigger than the number gave by some of the manufacturers. We could also say to some vendors that less marketing and more security. Um and the main recommendations for for manufacturers will be to simply invest in security. It's necessary in all the development uh phases of a product. Uh for organizations they should start considering these as the threats they are. Um they have a lot of sensitive information uh not only documents but also uh important uh information in the configuration like passwords, domain credentials, et cetera. And they are connected to their corporate networks. So they are really high risk and no low risk uh devices. Um so uh finally for hackers uh this is a very mature field. If you spend some time with embedded devices starting from the with the very basics uh you will probably find a lot of issues uh you will learn a lot and there is a lot of fun in here so you should give it a try. And about internet uh suspected uh a quick showdown search revealed a lot of these devices connected to the internet. And we even saw that uh a lot of these devices were connected to the internet and we even saw that um some different vendors uh seem to be using the same code for some things like this. We're application of two different ones which as you can see is quite similar. So um maybe we tested more vendors that than we thought. And finally acknowledgements uh thanks uh to uh the Madrid office to Matt Lewis and Phylli Moss for all their help and support. Also thanks to Maribelle and increase which suffered us the most. Uh last but not least thank you to Alvaro Felipe uh who was part of the research during the first days and also helped us with great ideas uh during the the exploitation phases. So it was very difficult to put this talk in this month of research in just 45 minutes but uh thank you for suffering us. That's it. Thank you.