1 00:00:00,960 --> 00:00:05,200 If I could have everybody find a seat, we're going to try to start early. 2 00:00:08,440 --> 00:00:13,000 My name is Little Wolf. It's also Dennis Madison, as you see up there. 3 00:00:14,200 --> 00:00:19,240 I'm going to be talking about attacking printers and other network-attached devices. 4 00:00:20,840 --> 00:00:27,580 It looks like we're going to have a DC phone home next at 12 o'clock. 5 00:00:27,580 --> 00:00:35,040 And I've also been instructed to tell you to drink plenty of water, and I think I'd agree with that because it's so hot out there. 6 00:00:38,780 --> 00:00:40,360 Anyways, let's start. 7 00:00:41,900 --> 00:00:47,280 I do want to start off by saying I make no apologies for my email address. 8 00:00:48,880 --> 00:00:56,680 As you might notice, I do have cox.net up there where else for the wolves to hang out, but in the sheep's pens. 9 00:00:57,960 --> 00:01:09,860 And if you believe cox.net is very secure, I won't say any more than that just in case there might be some Cox employees in the room. 10 00:01:11,480 --> 00:01:17,000 I'm going to talk real quickly about printers, and I'm going to go into a couple disclaimers. 11 00:01:17,480 --> 00:01:21,240 I know there's some feds in the room, so I might as well disclaim myself. 12 00:01:22,520 --> 00:01:25,820 We're going to talk about printer history, why printers are so evil. 13 00:01:26,340 --> 00:01:27,460 And then we're going to talk. 14 00:01:27,580 --> 00:01:28,760 We're going to talk about the specific attacks. 15 00:01:29,020 --> 00:01:31,460 I'm going to spend a lot of time on the attacks. 16 00:01:32,620 --> 00:01:36,420 I'm hoping that this was an hour-long presentation. 17 00:01:36,940 --> 00:01:38,840 I'm going to try to do it in 50 minutes. 18 00:01:39,140 --> 00:01:48,100 So without further ado, first of all, why this particular talk does not violate the DMCA. 19 00:01:48,780 --> 00:01:51,720 First of all, we're not going to be talking about cryptographic algorithms. 20 00:01:52,060 --> 00:01:56,120 First of all, as far as printers are concerned, there are no cryptographic algorithms. 21 00:01:56,120 --> 00:01:58,420 So we throw that right out of the way. 22 00:01:59,240 --> 00:02:02,520 We're not going to talk about any software to break cryptographic algorithms. 23 00:02:03,140 --> 00:02:06,060 We're not going to talk about any hardware to break cryptographic algorithms. 24 00:02:07,200 --> 00:02:10,140 We are not going to break any other laws either, hopefully. 25 00:02:11,560 --> 00:02:14,880 We're not going to be exceeding lawful access to our own equipment. 26 00:02:16,300 --> 00:02:21,600 And as far as I know, disclosure of vulnerabilities is not illegal yet. 27 00:02:22,920 --> 00:02:26,100 I liked hearing what Richard Clark said. 28 00:02:26,100 --> 00:02:32,800 Clark said about vulnerability disclosures, except for the fact that the government is 29 00:02:32,800 --> 00:02:36,860 probably the worst person to announce vulnerabilities to because they don't listen. 30 00:02:38,660 --> 00:02:41,440 Full disclosure is key to security awareness. 31 00:02:41,880 --> 00:02:47,680 If you're not participating in full disclosure, there's a lot of stuff going on behind the scenes 32 00:02:47,680 --> 00:02:49,640 that you have no idea what's going on. 33 00:02:51,760 --> 00:02:53,460 First of all, what about printers? 34 00:02:53,460 --> 00:02:56,880 Well, let's look at the other applications and OSs out there. 35 00:02:57,060 --> 00:03:00,000 We're doing a pretty good job of locking things down. 36 00:03:00,100 --> 00:03:01,580 We've got a long way to go. 37 00:03:02,140 --> 00:03:04,020 But we're doing a pretty good job. 38 00:03:05,200 --> 00:03:11,060 The problem is we've got a lot of other devices on our network that are not running Windows 2000, 39 00:03:11,520 --> 00:03:14,960 that are not running OpenBSD, which are not running Linux. 40 00:03:15,320 --> 00:03:21,760 They're running dumb little operating systems that are very easily vulnerable to attack. 41 00:03:21,760 --> 00:03:25,060 And very easy to exploit them. 42 00:03:25,510 --> 00:03:27,700 Security is a necessity of business. 43 00:03:28,100 --> 00:03:31,980 You can't go anywhere nowadays without thinking about security. 44 00:03:32,540 --> 00:03:37,660 Especially post 9-11 and how it messes up everything that we do. 45 00:03:38,980 --> 00:03:41,740 Security of computers is definitely growing. 46 00:03:42,470 --> 00:03:45,840 Security of printers and other network-attached devices is not growing. 47 00:03:46,320 --> 00:03:49,140 I work with printer manufacturers an awful lot. 48 00:03:49,260 --> 00:03:49,840 The most... 49 00:03:51,760 --> 00:03:53,780 The most common response I get back from them is, 50 00:03:53,880 --> 00:03:54,380 Who cares? 51 00:03:55,520 --> 00:03:57,180 All these are our printers. 52 00:03:57,340 --> 00:03:59,300 These are things people print to. 53 00:04:00,940 --> 00:04:04,720 Potential attacks against these devices definitely increase 54 00:04:04,720 --> 00:04:08,660 as we move to lock down the operating systems. 55 00:04:09,360 --> 00:04:11,220 I mean, it's a target of opportunity. 56 00:04:11,560 --> 00:04:14,620 As people get locked out of the regular targets of opportunity, 57 00:04:14,980 --> 00:04:17,140 the Windows 2000 boxes, so on and so forth, 58 00:04:17,380 --> 00:04:19,880 they'll switch over to attacking printers. 59 00:04:21,860 --> 00:04:24,040 Now, why are printers so bad? 60 00:04:24,420 --> 00:04:29,020 First of all, users have had a very long history with printers. 61 00:04:29,340 --> 00:04:32,340 Printers have been around since computers were around. 62 00:04:33,660 --> 00:04:36,860 You think of a typewriter, that's a pretty good example. 63 00:04:37,180 --> 00:04:40,980 Hey, you click on the keyboard, it actually prints something to paper. 64 00:04:42,700 --> 00:04:45,400 Older non-network printers are fairly secure. 65 00:04:46,500 --> 00:04:50,320 I don't hear too many attacks on old HP2 machines. 66 00:04:50,320 --> 00:04:52,360 Although it can happen. 67 00:04:53,840 --> 00:04:57,960 Serial parallel printers brought a whole new realm of attack. 68 00:04:58,580 --> 00:05:02,320 You went from unidirectional, where you print out to the printer 69 00:05:02,320 --> 00:05:04,620 and nothing comes back, to bidirectional, 70 00:05:04,700 --> 00:05:09,240 where you have a two-way communications between the computer and the printer. 71 00:05:10,460 --> 00:05:13,800 There were a small number of flaws in those printers, 72 00:05:14,080 --> 00:05:16,640 but they were not enough to really concern people. 73 00:05:17,880 --> 00:05:20,220 Of course, you had scripting languages like 74 00:05:20,920 --> 00:05:22,800 PostScript, PJL, and PCL. 75 00:05:22,840 --> 00:05:24,320 We're going to talk about all those things. 76 00:05:24,700 --> 00:05:28,700 Those were scripting languages added to make the computing experience 77 00:05:28,700 --> 00:05:30,660 or the printing experience a lot better. 78 00:05:33,120 --> 00:05:38,580 The problem with serial printers was also that they were very easy to track attackers, 79 00:05:39,260 --> 00:05:42,500 especially when they're plugged into the exact same computer 80 00:05:42,500 --> 00:05:44,480 that the printer is plugged into. 81 00:05:46,500 --> 00:05:50,300 Of course, attacking a printer plugged into your serial printer 82 00:05:50,320 --> 00:05:53,000 or parallel port was a pretty bad business decision. 83 00:05:54,860 --> 00:05:58,180 When we started adding print servers to the network 84 00:05:58,180 --> 00:06:00,600 and starting putting printers behind print servers, 85 00:06:00,980 --> 00:06:03,100 we had a little bit of a problem. 86 00:06:03,560 --> 00:06:08,580 Because now the printers were behind systems that were vulnerable to attack. 87 00:06:08,980 --> 00:06:12,740 Things like Sambas shares, IPX, LPR, 88 00:06:12,820 --> 00:06:15,440 all of these things have had problems in the past. 89 00:06:17,500 --> 00:06:19,960 Servers were more likely to be compromised 90 00:06:20,320 --> 00:06:21,200 than the computers were. 91 00:06:21,900 --> 00:06:26,660 You write an LPR attack to take out the actual server 92 00:06:26,660 --> 00:06:29,260 that's serving that printer instead of the printer itself. 93 00:06:30,440 --> 00:06:33,880 Of course, then we screwed everything up by adding network printers 94 00:06:33,880 --> 00:06:35,840 to the networks that were out there. 95 00:06:36,860 --> 00:06:41,740 Manufacturers began adding or seeing a need to add protocols to printers. 96 00:06:41,820 --> 00:06:44,480 Things like web browsing, web serving, 97 00:06:45,720 --> 00:06:47,900 Telnet, FTP, SNMP. 98 00:06:48,220 --> 00:06:50,060 Think of all the different protocols 99 00:06:50,320 --> 00:06:52,040 that we know are very bad 100 00:06:52,040 --> 00:06:56,340 as far as a security concern is there. 101 00:06:57,540 --> 00:07:02,000 These protocols basically leave these printers wide open. 102 00:07:02,940 --> 00:07:06,320 There are a large number of insecure protocols out there. 103 00:07:06,480 --> 00:07:09,500 Most of them are actually put into a printer. 104 00:07:11,100 --> 00:07:14,100 Of course, the idea is functionality over security. 105 00:07:14,560 --> 00:07:16,900 You add these services to your printers 106 00:07:16,900 --> 00:07:18,640 and it makes the customers happy 107 00:07:18,640 --> 00:07:20,220 because they have a number of ways 108 00:07:20,320 --> 00:07:20,880 of connecting. 109 00:07:23,320 --> 00:07:26,480 Of course, I'm not just talking about printers, 110 00:07:26,620 --> 00:07:28,660 although I am in this particular talk 111 00:07:28,660 --> 00:07:30,600 talking about printers. 112 00:07:31,180 --> 00:07:33,620 There are other secure devices out there. 113 00:07:33,680 --> 00:07:36,600 They have the same problems or very similar problems. 114 00:07:36,880 --> 00:07:39,160 Things like webcams, photocopiers, 115 00:07:39,440 --> 00:07:42,000 web appliances, network file servers. 116 00:07:42,480 --> 00:07:46,000 All of these things are vulnerable to very similar attacks. 117 00:07:46,540 --> 00:07:48,840 Think of all the network file servers 118 00:07:48,840 --> 00:07:50,640 that are going up all over the place 119 00:07:50,640 --> 00:07:52,660 and think about how they're set up. 120 00:07:52,920 --> 00:07:56,120 Do they set them up so that they have one particular protocol 121 00:07:56,120 --> 00:07:57,120 that users access? 122 00:07:57,540 --> 00:08:00,220 No, usually they have everything under the sun running. 123 00:08:02,080 --> 00:08:05,440 One thing is that these are all theoretical attacks. 124 00:08:06,220 --> 00:08:08,980 I will go over practical examples. 125 00:08:11,420 --> 00:08:15,180 Not all of these attacks will work on all printers 126 00:08:15,180 --> 00:08:16,000 that are out there. 127 00:08:16,000 --> 00:08:19,440 But I can tell you my share of experience with printers, 128 00:08:19,660 --> 00:08:22,380 most of the attacks that you're going to see here 129 00:08:22,380 --> 00:08:25,460 are in one way or another added to every printer 130 00:08:25,460 --> 00:08:26,300 that's out there. 131 00:08:28,060 --> 00:08:30,620 Not many known attacks are out there. 132 00:08:31,180 --> 00:08:34,280 If you looked at BugTrack three years ago 133 00:08:34,280 --> 00:08:37,840 when I posted my first network printer vulnerability, 134 00:08:38,820 --> 00:08:41,540 there really wasn't much talk about printers 135 00:08:41,540 --> 00:08:42,220 and printer security. 136 00:08:42,800 --> 00:08:44,320 Look at BugTrack now. 137 00:08:44,320 --> 00:08:46,740 There's a lot of talking about security. 138 00:08:46,960 --> 00:08:49,580 As a matter of fact, there's a whole thread on security right now 139 00:08:49,580 --> 00:08:50,660 of printers. 140 00:08:52,880 --> 00:08:55,620 I do definitely welcome the help. 141 00:08:55,720 --> 00:08:58,040 Anytime anybody has anything to send to me, 142 00:08:58,160 --> 00:09:00,780 I'll definitely look at it. 143 00:09:05,140 --> 00:09:07,740 Talk about physical security attacks. 144 00:09:08,200 --> 00:09:11,100 This is where you have physical access to the machine 145 00:09:11,100 --> 00:09:13,820 and everybody knows that physical access 146 00:09:13,820 --> 00:09:14,760 means root. 147 00:09:15,520 --> 00:09:16,940 Even in printers. 148 00:09:19,680 --> 00:09:23,120 The printers themselves are physically addressable. 149 00:09:24,540 --> 00:09:25,700 They are physical. 150 00:09:26,480 --> 00:09:29,420 They can be easily replaced with another device. 151 00:09:30,060 --> 00:09:32,500 One of the nicest things about printers 152 00:09:32,500 --> 00:09:35,820 is that nobody expects that the printer 153 00:09:35,820 --> 00:09:38,940 is going to be doing the things that you can make it do. 154 00:09:41,600 --> 00:09:43,540 You can put a place, a device 155 00:09:43,820 --> 00:09:45,000 in line with the printer. 156 00:09:45,180 --> 00:09:48,060 So you can essentially plug something into the printer 157 00:09:48,660 --> 00:09:51,700 that will listen to the traffic that's going back and forth 158 00:09:51,700 --> 00:09:53,540 between the printer and the rest of the network. 159 00:09:57,100 --> 00:09:58,400 Some easy mistakes. 160 00:09:58,860 --> 00:10:02,340 Users do innocently unplug devices 161 00:10:02,340 --> 00:10:04,820 for the resources that they have. 162 00:10:05,100 --> 00:10:06,860 You have a port that's available. 163 00:10:07,440 --> 00:10:10,260 Users may come along, pull the network connection, 164 00:10:10,560 --> 00:10:11,780 plug it into their laptop. 165 00:10:11,780 --> 00:10:14,980 This does happen quite regularly. 166 00:10:15,860 --> 00:10:19,440 Users will still IP address as a network identification 167 00:10:19,440 --> 00:10:22,280 so that they can actually access the network. 168 00:10:28,540 --> 00:10:30,860 Let's see, hardcore espionage. 169 00:10:31,900 --> 00:10:33,940 Instead of having simple attacks 170 00:10:33,940 --> 00:10:35,420 where a user comes in, 171 00:10:35,580 --> 00:10:39,580 sits down, unplugs the network connection, 172 00:10:39,820 --> 00:10:41,760 plugs in whatever they need, 173 00:10:41,780 --> 00:10:43,360 they want to listen to the network, 174 00:10:43,460 --> 00:10:46,640 we're actually talking about corporate espionage here. 175 00:10:46,800 --> 00:10:49,220 Where an attacker walks into the building, 176 00:10:49,540 --> 00:10:51,000 pulls the network connection, 177 00:10:51,460 --> 00:10:52,880 plugs it into their laptop, 178 00:10:53,100 --> 00:10:55,080 and is now able to sniff the network. 179 00:10:58,040 --> 00:11:00,060 How many networks out there 180 00:11:00,060 --> 00:11:02,220 do not have sensitive internal data 181 00:11:02,220 --> 00:11:04,460 that's not supposed to be given out to everyone? 182 00:11:04,860 --> 00:11:06,840 I bet you even your home users 183 00:11:06,840 --> 00:11:08,500 don't want their credit card information 184 00:11:08,500 --> 00:11:11,080 and tax stuff going out to the rest of the world. 185 00:11:12,280 --> 00:11:14,680 Another nice thing about having a port 186 00:11:14,680 --> 00:11:16,540 that the printer used to have 187 00:11:16,540 --> 00:11:18,900 is that you can disrupt normal traffic, 188 00:11:19,080 --> 00:11:20,680 send all sorts of bad stuff out. 189 00:11:22,300 --> 00:11:23,900 You can replace the printer 190 00:11:23,900 --> 00:11:25,740 with an espionage-friendly device. 191 00:11:26,340 --> 00:11:28,880 Throw something in there in the printer's place. 192 00:11:30,640 --> 00:11:33,040 Perform a physical man-in-the-middle attack. 193 00:11:33,300 --> 00:11:36,460 Plug the printer into the back of your laptop, 194 00:11:36,800 --> 00:11:39,660 plug the network connection into your laptop, 195 00:11:39,960 --> 00:11:41,760 and actually have the laptop 196 00:11:41,780 --> 00:11:43,980 forward all print jobs to the printer. 197 00:11:45,380 --> 00:11:46,780 Of course, the hard disks. 198 00:11:47,180 --> 00:11:49,660 Most of the printers out there now have hard disks. 199 00:11:49,940 --> 00:11:52,920 So you can definitely perform a laboratory attack. 200 00:11:53,240 --> 00:11:54,300 Take the printer back, 201 00:11:54,600 --> 00:11:56,740 pull out the hard drive, look at it. 202 00:11:56,980 --> 00:11:59,360 Especially since most of these hard drives 203 00:11:59,360 --> 00:12:01,820 that are in printers are IDE-based. 204 00:12:02,540 --> 00:12:05,040 They're the regular stuff you find in computers. 205 00:12:05,940 --> 00:12:07,300 And for the most part, 206 00:12:07,540 --> 00:12:09,260 they use no encryption 207 00:12:09,260 --> 00:12:11,440 or they use proprietary encryption. 208 00:12:11,780 --> 00:12:14,700 Stuff that's usually easily breakable. 209 00:12:16,080 --> 00:12:18,520 The one thing that I really like about printers 210 00:12:18,520 --> 00:12:21,400 is the fact that they never erase the print jobs. 211 00:12:21,780 --> 00:12:23,620 They just print over them. 212 00:12:24,020 --> 00:12:26,980 What that means is if you can pull out that hard drive 213 00:12:26,980 --> 00:12:29,580 and you have a very long print job that was printed, 214 00:12:29,800 --> 00:12:31,560 you can recover most of it. 215 00:12:33,780 --> 00:12:35,320 What about firmware? 216 00:12:36,020 --> 00:12:37,840 Every printer has firmware. 217 00:12:38,240 --> 00:12:39,160 What is firmware? 218 00:12:39,860 --> 00:12:40,780 Static software. 219 00:12:40,780 --> 00:12:42,180 What does that mean? 220 00:12:42,500 --> 00:12:43,960 We can take it apart. 221 00:12:44,740 --> 00:12:47,080 Matter of fact, some printers are nice enough 222 00:12:47,080 --> 00:12:48,740 to actually give us an interface 223 00:12:48,740 --> 00:12:52,480 to access the memory and pull things apart for ourselves. 224 00:12:53,240 --> 00:12:55,240 We'll talk about the back doors later. 225 00:12:56,880 --> 00:12:57,940 What can you do? 226 00:12:58,800 --> 00:12:59,960 Disassemble the code. 227 00:13:00,520 --> 00:13:01,280 Recompile it. 228 00:13:01,400 --> 00:13:03,440 Figure out how the firmware updates, 229 00:13:03,620 --> 00:13:06,180 since most of these things do remote firmware update. 230 00:13:06,500 --> 00:13:07,960 Figure out how that works. 231 00:13:08,540 --> 00:13:09,500 Upload your own code. 232 00:13:11,360 --> 00:13:14,140 Well, you know, probably some of you in this room 233 00:13:14,140 --> 00:13:18,020 believe that back in 1991 during the Gulf War, 234 00:13:18,220 --> 00:13:22,680 the U.S. government actually put a virus into a printer 235 00:13:22,680 --> 00:13:23,760 and sent it over to Iraq. 236 00:13:24,520 --> 00:13:26,160 Of course, for most of you, 237 00:13:26,180 --> 00:13:28,460 you know that this was an April Fool's joke. 238 00:13:28,640 --> 00:13:30,440 It was pretty well debunked. 239 00:13:31,000 --> 00:13:34,120 Of course, why put a virus into a printer? 240 00:13:34,420 --> 00:13:36,920 There's so many other better things to do. 241 00:13:37,640 --> 00:13:40,100 Put a sniffer in there so you can see the traffic. 242 00:13:40,100 --> 00:13:43,220 Perform denial of service attacks against the network, 243 00:13:43,320 --> 00:13:45,980 which are much easier to do than viruses. 244 00:13:49,360 --> 00:13:52,840 What about unauthenticated remote access? 245 00:13:53,240 --> 00:13:55,520 I'm talking about back doors into the printer. 246 00:13:55,960 --> 00:13:59,420 Do you believe that every printer out there has a back door? 247 00:13:59,640 --> 00:14:00,520 I do. 248 00:14:02,240 --> 00:14:05,720 Allowing remote access to any machine is very risky. 249 00:14:06,140 --> 00:14:10,080 Allowing remote access to a printer is especially risky. 250 00:14:12,300 --> 00:14:15,980 You throw unauthenticated, unencrypted access to that, 251 00:14:16,100 --> 00:14:18,780 and basically you have a route waiting to happen. 252 00:14:22,460 --> 00:14:26,900 One of the first protocols that we're familiar with, 253 00:14:27,060 --> 00:14:29,140 SNMP, Simple Network Management Protocol. 254 00:14:29,700 --> 00:14:30,840 Printers love this. 255 00:14:31,080 --> 00:14:32,200 I don't know why. 256 00:14:32,340 --> 00:14:35,020 There's nothing they really need to do to do management. 257 00:14:35,870 --> 00:14:38,460 But for some reason, a lot of printer manufacturers 258 00:14:38,460 --> 00:14:41,460 throw SNMP into their network, or into their printers, 259 00:14:41,640 --> 00:14:44,160 and then, of course, they don't allow you to turn them off. 260 00:14:47,660 --> 00:14:50,320 With SNMPv1 and v2, of course, 261 00:14:50,400 --> 00:14:54,920 the authentication mechanism was extremely easy to mess around with. 262 00:14:56,140 --> 00:14:58,280 SNMPv3 is supposed to be a lot better. 263 00:15:00,280 --> 00:15:04,420 However, it's still possible that they don't throw the authentication stuff on, 264 00:15:04,620 --> 00:15:05,780 which could be a problem. 265 00:15:06,980 --> 00:15:11,140 SNMP is default by most printer manufacturers. 266 00:15:11,880 --> 00:15:17,740 Another really bad thing is that few of them allow you to turn it off. 267 00:15:18,300 --> 00:15:21,180 As a matter of fact, most of the printer manufacturers out there 268 00:15:21,180 --> 00:15:24,440 don't have any sort of feature to turn SNMP off at all. 269 00:15:25,920 --> 00:15:29,900 Some printers have additional non-standard community strings. 270 00:15:30,520 --> 00:15:33,780 What that means is they use those community strings 271 00:15:33,780 --> 00:15:35,760 for something like firmware updates, 272 00:15:35,780 --> 00:15:36,220 or firmware updates. 273 00:15:37,820 --> 00:15:40,600 What you need to do is run a sniffer on the network 274 00:15:40,600 --> 00:15:44,000 every time you do a firmware update on your HP printer, 275 00:15:44,220 --> 00:15:47,780 and you'll see a lot of community strings going across there 276 00:15:47,780 --> 00:15:49,500 that are not public and private. 277 00:15:53,780 --> 00:16:00,020 Network protocols such as FTP, LPR, IPP, you name it, 278 00:16:00,080 --> 00:16:03,880 all of these have methods or ways 279 00:16:03,880 --> 00:16:06,840 of actually reconfiguring the printer remotely. 280 00:16:08,080 --> 00:16:13,300 Even LPR and SNB, if you send PJL or PCL scripts to the printer, 281 00:16:13,460 --> 00:16:16,980 you will definitely be able to reconfigure the printer. 282 00:16:18,640 --> 00:16:21,940 There may also be undocumented commands for printers. 283 00:16:22,260 --> 00:16:26,460 Send an undocumented command as part of your print job, 284 00:16:26,700 --> 00:16:29,280 and it may do something that it's not supposed to. 285 00:16:30,520 --> 00:16:32,660 HTTP and Telnet, of course, 286 00:16:32,660 --> 00:16:34,140 these are both unencrypted, 287 00:16:35,300 --> 00:16:38,880 but they also may actually lack an administrator password, 288 00:16:39,220 --> 00:16:41,380 which means that attackers can get into them. 289 00:16:43,020 --> 00:16:46,280 Most of these services can be turned off in the printers. 290 00:16:47,040 --> 00:16:50,120 There are some printers out there that are still stupid, 291 00:16:50,180 --> 00:16:53,080 that they will not allow you to turn these services off. 292 00:16:53,340 --> 00:16:56,340 However, most of the ones that I've seen nowadays come out 293 00:16:56,340 --> 00:16:58,460 actually allow you to turn the stuff off. 294 00:16:58,940 --> 00:17:02,540 One of the nice services that are on printers, 295 00:17:02,660 --> 00:17:05,080 is the AppSocket interface, 9100. 296 00:17:05,800 --> 00:17:09,220 This is really nice for print jobs, too. 297 00:17:09,260 --> 00:17:11,520 It's also really nice because it's bi-directional. 298 00:17:11,940 --> 00:17:14,640 So you can send PJL scripts to the printer, 299 00:17:14,740 --> 00:17:17,220 and it will actually return the responses to you. 300 00:17:17,440 --> 00:17:22,260 All you need to do is use NC or Telnet in order to access it. 301 00:17:25,060 --> 00:17:26,020 So PJL. 302 00:17:26,500 --> 00:17:29,340 You may not understand what's up here on the screen, 303 00:17:29,480 --> 00:17:30,340 but I can tell you 304 00:17:30,340 --> 00:17:33,860 that this particular script does very little. 305 00:17:34,640 --> 00:17:38,500 All it does is it changes the ready message display, 306 00:17:38,640 --> 00:17:41,320 the display that you see on the screen, 307 00:17:41,560 --> 00:17:43,740 to Little Wolf Owns You. 308 00:17:44,760 --> 00:17:46,880 It also prints out the file systems. 309 00:17:50,240 --> 00:17:50,800 Yes. 310 00:17:51,220 --> 00:17:54,120 I do recommend going to the embedded systems one, 311 00:17:54,200 --> 00:17:56,420 because it sounds like it's going to be really cool as well. 312 00:17:58,060 --> 00:17:59,220 Just a response. 313 00:17:59,220 --> 00:18:02,420 You send this particular PJL script to the printer, 314 00:18:02,620 --> 00:18:06,140 it comes back with all sorts of nice information messages, 315 00:18:06,840 --> 00:18:09,360 including telling us that there is, in fact, 316 00:18:09,400 --> 00:18:11,780 a RAM disk loaded on this particular printer, 317 00:18:12,760 --> 00:18:14,560 which, of course, has read-write access. 318 00:18:15,020 --> 00:18:16,580 The nice thing about this, of course, 319 00:18:16,600 --> 00:18:18,800 is this is where you can throw all your exploits, 320 00:18:18,840 --> 00:18:20,640 if you're worried about somebody coming around 321 00:18:20,640 --> 00:18:21,880 and doing forensics on you. 322 00:18:25,240 --> 00:18:28,000 One of the most used printer, 323 00:18:28,000 --> 00:18:34,700 one of the most misused printer access mechanisms 324 00:18:34,700 --> 00:18:36,420 is something that the printer manufacturers 325 00:18:36,820 --> 00:18:38,400 love putting into their printers, 326 00:18:38,580 --> 00:18:39,880 and that is back doors. 327 00:18:41,520 --> 00:18:45,780 This particular mechanism or method is very flawed, 328 00:18:46,040 --> 00:18:49,300 because it relies purely on security, 329 00:18:49,460 --> 00:18:50,660 solely through obscurity. 330 00:18:51,160 --> 00:18:53,820 Very few of these actually go in 331 00:18:53,820 --> 00:18:55,640 and password protect their back doors. 332 00:18:55,880 --> 00:18:57,900 They certainly do not encrypt 333 00:18:58,000 --> 00:18:59,600 the data that's going back and forth. 334 00:19:01,360 --> 00:19:03,580 There's many ways, or many reasons, 335 00:19:03,640 --> 00:19:07,140 that the manufacturers use for actually doing this. 336 00:19:07,920 --> 00:19:10,500 One of the reasons I've heard is that 337 00:19:10,500 --> 00:19:13,240 users may actually forget their passwords. 338 00:19:13,720 --> 00:19:15,820 So they want to actually allow 339 00:19:15,820 --> 00:19:18,100 some sort of technical support person 340 00:19:18,100 --> 00:19:20,420 from across the planet to log into the printer 341 00:19:20,730 --> 00:19:22,120 to fix the passwords. 342 00:19:23,600 --> 00:19:26,420 Another problem, of course, is unlicensed software. 343 00:19:26,420 --> 00:19:28,000 According to the manufacturers, 344 00:19:28,240 --> 00:19:30,240 they believe there's a lot of pirates out there 345 00:19:30,240 --> 00:19:32,240 who are using their software, 346 00:19:32,420 --> 00:19:33,380 their hardware, illegally. 347 00:19:34,160 --> 00:19:37,000 And they might want to actually throw this back door in there 348 00:19:37,000 --> 00:19:38,440 to prevent that from happening. 349 00:19:39,500 --> 00:19:42,200 It may actually be used for a number of other reasons. 350 00:19:42,320 --> 00:19:44,820 I've heard printer manufacturers say all sorts of things. 351 00:19:45,560 --> 00:19:47,180 The one I like most is, 352 00:19:47,320 --> 00:19:50,820 hey, we just threw it in there because everyone else does. 353 00:19:52,400 --> 00:19:53,280 It's a good one. 354 00:19:54,700 --> 00:19:59,600 Of course, this particular problem with back doors 355 00:19:59,600 --> 00:20:03,060 is if it fails, there's nothing else to prevent you 356 00:20:03,060 --> 00:20:05,940 from having an attacker break into your system. 357 00:20:09,140 --> 00:20:11,560 Of course, just ask Tektronix about that. 358 00:20:12,240 --> 00:20:14,960 One of the best examples of a printer back door 359 00:20:14,960 --> 00:20:17,160 was a web server on a printer 360 00:20:17,160 --> 00:20:19,640 whose manufacturer I, of course, mentioned. 361 00:20:20,000 --> 00:20:21,540 They do not exist anymore. 362 00:20:21,540 --> 00:20:23,180 I outlived them. Thank you. 363 00:20:25,180 --> 00:20:27,520 If you go to this particular printer manufacturer 364 00:20:27,520 --> 00:20:30,200 and type in the printer name, 365 00:20:30,320 --> 00:20:32,700 then ncl__subjects.html 366 00:20:33,300 --> 00:20:36,960 gave you a nice menu of all the stuff 367 00:20:36,960 --> 00:20:38,680 that the printer manufacturer, of course, 368 00:20:38,700 --> 00:20:40,860 does not really want you to have access to. 369 00:20:42,720 --> 00:20:45,100 As a matter of fact, it had access to options 370 00:20:45,100 --> 00:20:49,400 that weren't even available via the GUI interface. 371 00:20:51,540 --> 00:20:54,100 Of course, it also allowed plain text access 372 00:20:54,100 --> 00:20:56,360 to the printer password or the administrator password. 373 00:20:57,100 --> 00:20:59,300 Most administrators would throw something in there 374 00:20:59,300 --> 00:21:00,220 thinking they were secure. 375 00:21:00,700 --> 00:21:03,180 And of course, the attackers would come along 376 00:21:03,180 --> 00:21:04,620 and read their plain text passwords. 377 00:21:05,160 --> 00:21:06,720 It even gets better than this. 378 00:21:07,900 --> 00:21:10,000 There were a number of denial of service attacks 379 00:21:10,000 --> 00:21:11,060 which we will talk about. 380 00:21:11,880 --> 00:21:13,700 This is what happens when you actually, 381 00:21:13,860 --> 00:21:15,320 I know you can't see this very well, 382 00:21:15,400 --> 00:21:17,240 but when you pull down the slides from my website, 383 00:21:17,440 --> 00:21:18,360 you definitely will. 384 00:21:18,360 --> 00:21:22,840 If you type in ncl__subjects.html, 385 00:21:23,080 --> 00:21:25,640 it brought up a whole bunch of options 386 00:21:25,640 --> 00:21:26,960 that you could choose from. 387 00:21:28,640 --> 00:21:30,260 Of course, one of those options, 388 00:21:30,340 --> 00:21:37,340 if you typed in ncl__items.html?subjects="2097", 389 00:21:37,340 --> 00:21:40,380 it would actually pop up the administrator password 390 00:21:40,380 --> 00:21:41,740 in plain text. 391 00:21:42,020 --> 00:21:44,120 You can see this printer administrator 392 00:21:45,760 --> 00:21:48,340 actually used password as their password. 393 00:21:48,360 --> 00:21:52,860 Of course, a year later, 394 00:21:53,700 --> 00:21:55,180 my favorite company, 395 00:21:55,280 --> 00:21:56,780 my favorite printer manufacturer 396 00:21:56,780 --> 00:21:59,480 came along with a new series of printers. 397 00:21:59,940 --> 00:22:02,280 The nice thing about it in some of these printers 398 00:22:02,280 --> 00:22:05,060 was if you tried this old exploit, 399 00:22:05,220 --> 00:22:06,200 it would not work. 400 00:22:06,960 --> 00:22:08,940 Some of them did, some of them didn't. 401 00:22:09,060 --> 00:22:11,140 It depended pretty much on when the firmware 402 00:22:11,140 --> 00:22:13,100 was actually manufactured. 403 00:22:14,020 --> 00:22:17,360 If you typed underscore ncl__subjects, 404 00:22:19,640 --> 00:22:20,720 ncl__subjects.shgml, 405 00:22:21,170 --> 00:22:23,320 it would give you exactly the same thing 406 00:22:23,320 --> 00:22:24,260 that the other thing did. 407 00:22:25,020 --> 00:22:28,340 Of course, how did this actually come to be 408 00:22:28,340 --> 00:22:29,660 as far as me finding it? 409 00:22:30,100 --> 00:22:32,880 I accidentally mistyped the URL. 410 00:22:35,580 --> 00:22:37,520 I started typing stuff in. 411 00:22:37,600 --> 00:22:41,340 I knew that ncl__subjects.html did not work. 412 00:22:41,500 --> 00:22:45,000 I noticed all of the webpages had .shgml, 413 00:22:45,220 --> 00:22:46,660 so I tried that first. 414 00:22:47,360 --> 00:22:49,400 During the process of the five minutes 415 00:22:49,400 --> 00:22:50,840 that I was actually working on breaking 416 00:22:50,840 --> 00:22:52,220 this particular printer, 417 00:22:53,160 --> 00:22:55,260 I accidentally pressed an underscore 418 00:22:55,260 --> 00:22:57,340 at the beginning, and sure enough, 419 00:22:57,540 --> 00:22:58,540 the page came up. 420 00:22:59,820 --> 00:23:02,440 Of course, when I told the manufacturer 421 00:23:02,440 --> 00:23:05,420 about this, they responded six weeks 422 00:23:05,420 --> 00:23:07,260 after I posted to BugTrack. 423 00:23:07,400 --> 00:23:09,960 Keep in mind that I posted the message 424 00:23:09,960 --> 00:23:11,800 to them and all the regular channels 425 00:23:11,800 --> 00:23:13,600 four weeks ahead of that, 426 00:23:13,820 --> 00:23:17,180 so it was almost two and a half months 427 00:23:17,180 --> 00:23:19,160 after originally finding it 428 00:23:19,160 --> 00:23:22,360 that I finally received a response 429 00:23:22,360 --> 00:23:23,280 from the manufacturer. 430 00:23:23,740 --> 00:23:25,720 Of course, their response was 431 00:23:25,720 --> 00:23:28,000 the URL was not a security fix. 432 00:23:28,260 --> 00:23:29,780 It was a functionality fix. 433 00:23:30,160 --> 00:23:32,540 I can understand the .shgml, 434 00:23:32,580 --> 00:23:34,520 I just do not understand the underscore 435 00:23:34,520 --> 00:23:35,740 in front of the URL. 436 00:23:37,840 --> 00:23:39,480 Sorry, you didn't get me there. 437 00:23:40,480 --> 00:23:42,640 Unfortunately, these same folks 438 00:23:42,640 --> 00:23:45,200 have ignored this particular problem. 439 00:23:45,420 --> 00:23:47,000 They are still printing. 440 00:23:47,180 --> 00:23:48,200 Well, of course, they are not. 441 00:23:48,540 --> 00:23:51,000 The company that bought them out, Xerox, 442 00:23:51,060 --> 00:23:53,480 is now still producing these printers. 443 00:23:53,860 --> 00:23:55,840 Of course, these printers still have 444 00:23:55,840 --> 00:23:56,580 these back doors. 445 00:23:59,420 --> 00:24:00,840 Third-party back doors. 446 00:24:01,020 --> 00:24:02,520 Well, we have access to the firmware 447 00:24:02,520 --> 00:24:03,480 in some of these printers. 448 00:24:03,660 --> 00:24:05,820 Let's download the firmware, decompile it, 449 00:24:05,840 --> 00:24:07,920 add our own back doors to the system. 450 00:24:09,040 --> 00:24:10,320 You guys are hackers. 451 00:24:10,400 --> 00:24:11,980 You can figure out how to do that. 452 00:24:14,840 --> 00:24:16,040 Denial of service attacks. 453 00:24:17,420 --> 00:24:19,700 It's easier than everything else on the planet. 454 00:24:20,000 --> 00:24:22,160 All you need to do is make a connection to the printer. 455 00:24:22,320 --> 00:24:24,340 If you make a connection more than eight times 456 00:24:24,340 --> 00:24:25,460 to the AppSocket interface, 457 00:24:25,920 --> 00:24:27,680 you've pretty much denied access 458 00:24:27,680 --> 00:24:28,840 to anybody else printing. 459 00:24:29,900 --> 00:24:31,520 So it is a problem. 460 00:24:33,220 --> 00:24:35,140 You even hear some of these scripts 461 00:24:35,140 --> 00:24:36,560 that were out there circulating 462 00:24:36,560 --> 00:24:39,460 a couple months ago, such as the IDA attack 463 00:24:39,460 --> 00:24:41,080 taking down HP printers, 464 00:24:41,300 --> 00:24:42,740 or the Telnet attack. 465 00:24:44,820 --> 00:24:46,640 Even stuff that they should not 466 00:24:47,180 --> 00:24:49,560 break are actually being broken 467 00:24:49,560 --> 00:24:50,320 by these scripts. 468 00:24:52,620 --> 00:24:54,260 Of course, overwhelming traffic. 469 00:24:54,500 --> 00:24:56,060 Like I said, the AppSocket interface 470 00:24:56,060 --> 00:24:57,440 is a great way to do that. 471 00:24:58,060 --> 00:24:59,980 Of course, you can always just connect 472 00:24:59,980 --> 00:25:02,180 to the printer, start wasting resources. 473 00:25:02,700 --> 00:25:04,480 Most of these, of course, don't have 474 00:25:04,480 --> 00:25:05,960 any sort of authentication mechanism 475 00:25:05,960 --> 00:25:07,400 to prevent you from printing. 476 00:25:10,160 --> 00:25:11,800 One of the nice things I discovered 477 00:25:11,800 --> 00:25:13,340 about the configuration, 478 00:25:13,760 --> 00:25:14,860 the back door configuration, 479 00:25:14,860 --> 00:25:17,260 is that you could actually change 480 00:25:17,260 --> 00:25:18,540 the IP address of the printer. 481 00:25:19,080 --> 00:25:21,100 And by doing so, the administrator 482 00:25:21,100 --> 00:25:23,600 basically had to go up to the printer console 483 00:25:23,600 --> 00:25:25,940 and change the IP address back. 484 00:25:26,620 --> 00:25:29,680 It wasn't as easy as connecting to a web page 485 00:25:29,680 --> 00:25:31,120 to find the particular 486 00:25:31,120 --> 00:25:32,520 what it had been changed to. 487 00:25:33,120 --> 00:25:36,080 An even nicer feature was a little button 488 00:25:36,080 --> 00:25:38,960 on the configuration menu 489 00:25:38,960 --> 00:25:41,020 that allowed you to reset the printer 490 00:25:41,020 --> 00:25:42,500 to the factory defaults. 491 00:25:42,500 --> 00:25:44,120 Of course, that was even worse 492 00:25:44,120 --> 00:25:45,360 than changing the IP address, 493 00:25:45,540 --> 00:25:47,160 because now the administrator had to go in 494 00:25:47,160 --> 00:25:48,600 and set the machine back up 495 00:25:48,600 --> 00:25:49,540 the way it was before. 496 00:25:51,780 --> 00:25:54,160 Nice feature, emergency power off. 497 00:25:54,340 --> 00:25:55,840 I won't go into it too much, 498 00:25:55,860 --> 00:25:57,780 because Tektronix says there's nothing there. 499 00:25:58,000 --> 00:26:00,000 There's no issue involved with that. 500 00:26:00,320 --> 00:26:02,700 However, I had several other people tell me 501 00:26:02,700 --> 00:26:05,460 that it was really nice taking a 360 down 502 00:26:05,460 --> 00:26:08,800 or a 370 down, those with the wax chips, 503 00:26:09,060 --> 00:26:12,100 by just basically putting it into emergency power down. 504 00:26:12,520 --> 00:26:14,100 Sure, may not actually work, 505 00:26:14,120 --> 00:26:15,800 cause physical access to the machine, 506 00:26:15,960 --> 00:26:18,240 but every single time you power down the system, 507 00:26:18,420 --> 00:26:20,520 it has to dump those wax crystals. 508 00:26:20,880 --> 00:26:23,760 You waste a lot of stuff doing that. 509 00:26:25,520 --> 00:26:27,620 Removing changing services running on the machine 510 00:26:27,620 --> 00:26:29,320 or changing passwords, of course, 511 00:26:29,340 --> 00:26:30,680 all can be done through the back door. 512 00:26:32,580 --> 00:26:35,300 Big thing, access to distribution of information. 513 00:26:35,860 --> 00:26:37,880 Most of the printer manufacturers out there 514 00:26:37,880 --> 00:26:40,620 didn't care about anything I've said up until this point. 515 00:26:40,860 --> 00:26:43,280 When I started saying that important data 516 00:26:43,280 --> 00:26:46,340 that was on the customer's network was being compromised, 517 00:26:46,980 --> 00:26:48,280 they started listening. 518 00:26:48,560 --> 00:26:49,240 Of course, why? 519 00:26:50,040 --> 00:26:53,080 Most companies believe that information is important, 520 00:26:53,240 --> 00:26:54,500 sensitive, and worth money. 521 00:26:54,740 --> 00:26:56,380 That's what they're in business for. 522 00:26:57,620 --> 00:27:01,080 Exposure of that information can lead to a lot of bad things, 523 00:27:02,580 --> 00:27:03,620 especially embarrassment. 524 00:27:05,460 --> 00:27:07,460 Vulnerabilities and prayers may actually allow 525 00:27:07,460 --> 00:27:08,780 this particular type of attack. 526 00:27:08,920 --> 00:27:10,220 We'll talk about some of them. 527 00:27:10,280 --> 00:27:12,880 First of all, I've pretty much talked sniffers to death. 528 00:27:13,520 --> 00:27:15,560 If you don't know what a sniffer is, 529 00:27:15,740 --> 00:27:17,720 I'm sure a lot of the folks that are going to be up here 530 00:27:17,720 --> 00:27:19,860 in the later talks will be telling you what it is. 531 00:27:20,420 --> 00:27:22,580 Basically, you can listen to traffic on the network. 532 00:27:25,400 --> 00:27:26,720 Print job forwarding. 533 00:27:26,740 --> 00:27:28,740 This was a nice feature in a lot of the printers 534 00:27:28,740 --> 00:27:30,100 that I've come across. 535 00:27:30,420 --> 00:27:35,560 It will actually forward the information about the print job 536 00:27:35,560 --> 00:27:38,660 to you via email or through Syslog 537 00:27:38,660 --> 00:27:40,320 or through a number of other things. 538 00:27:41,060 --> 00:27:43,180 Of course, it may not actually print 539 00:27:43,280 --> 00:27:44,800 out the whole entire print job. 540 00:27:44,940 --> 00:27:46,460 Most printers don't do that. 541 00:27:46,920 --> 00:27:49,420 But they do give you some valuable information. 542 00:27:49,720 --> 00:27:51,400 Well, a lot of valuable information, 543 00:27:51,640 --> 00:27:55,200 such as how many print jobs have actually gone through this printer. 544 00:27:55,340 --> 00:27:56,640 Is it a high-yield printer? 545 00:27:57,220 --> 00:27:59,820 How much ink has been used on the printer? 546 00:28:00,020 --> 00:28:01,720 How much paper has been used? 547 00:28:02,040 --> 00:28:04,340 Whether it's got transparencies, all sorts of stuff. 548 00:28:07,380 --> 00:28:09,620 A firmware modification, of course, 549 00:28:09,620 --> 00:28:13,040 can make print job forwarding a very possible 550 00:28:13,280 --> 00:28:13,360 problem, too. 551 00:28:13,620 --> 00:28:15,480 The reason I bring this up, of course, 552 00:28:15,480 --> 00:28:17,400 was a friend of mine was accused of saying 553 00:28:17,400 --> 00:28:21,960 in a newspaper one time that an attack on his systems 554 00:28:21,960 --> 00:28:27,020 actually allowed print jobs to be sent to Russia. 555 00:28:27,460 --> 00:28:29,520 Of course, he did not actually say that. 556 00:28:29,780 --> 00:28:31,640 But when I discovered some of this print job 557 00:28:31,640 --> 00:28:33,640 forwarding capabilities under the printer, 558 00:28:33,740 --> 00:28:37,120 he got very, very, very worried about things. 559 00:28:41,680 --> 00:28:43,260 Talked about print job notification. 560 00:28:43,580 --> 00:28:45,300 Of course, it prints out all sorts of nice things. 561 00:28:45,400 --> 00:28:46,640 Title of document printed. 562 00:28:46,920 --> 00:28:48,220 Number of bytes, characters. 563 00:28:48,500 --> 00:28:49,420 Who printed it out. 564 00:28:49,500 --> 00:28:50,720 Where they printed it out from. 565 00:28:51,000 --> 00:28:52,320 All sorts of nice things. 566 00:28:53,280 --> 00:28:54,480 You can change this. 567 00:28:54,600 --> 00:28:55,920 In the case of the Tektronix, 568 00:28:55,960 --> 00:28:57,540 fairly easy through the back door. 569 00:28:57,760 --> 00:29:01,600 Other printers have other methods of accessing it. 570 00:29:01,780 --> 00:29:03,820 You can definitely look at my white paper. 571 00:29:03,940 --> 00:29:06,280 There's more discussion about other printers in there. 572 00:29:08,220 --> 00:29:11,040 Nice thing about the report for the phaser link. 573 00:29:11,740 --> 00:29:13,980 Actually tells you all sorts of really cool stuff 574 00:29:13,980 --> 00:29:15,520 like the name of the print job. 575 00:29:16,040 --> 00:29:19,740 How many pages were actually printed. 576 00:29:19,840 --> 00:29:21,140 The user ID who printed it. 577 00:29:21,460 --> 00:29:23,140 Nice thing about this, social engineering. 578 00:29:23,560 --> 00:29:24,480 Call the guy up. 579 00:29:24,560 --> 00:29:27,360 Hey, you know, your print job wasn't working too well. 580 00:29:27,960 --> 00:29:29,320 You might want to print it again. 581 00:29:30,100 --> 00:29:32,580 Then sit by the printer and wait for it to come out again. 582 00:29:35,340 --> 00:29:37,040 A lot more in-depth information. 583 00:29:37,100 --> 00:29:38,200 Information that it sends out. 584 00:29:38,300 --> 00:29:40,420 You can look at the white paper for this stuff. 585 00:29:41,240 --> 00:29:43,280 Access to and distribution of information 586 00:29:43,280 --> 00:29:45,140 through RAM disks and file systems. 587 00:29:46,180 --> 00:29:48,500 Of course, printers now have the ability 588 00:29:48,500 --> 00:29:51,060 to actually create RAM disks and file systems 589 00:29:51,060 --> 00:29:53,740 for storing files for the spooler. 590 00:29:55,980 --> 00:29:58,600 The problem with these printers is sometimes 591 00:29:58,600 --> 00:30:00,220 they're not actually locked down. 592 00:30:00,340 --> 00:30:02,600 So you can actually get access to the spooler directory 593 00:30:02,600 --> 00:30:04,380 just by FTPing to the printer. 594 00:30:06,080 --> 00:30:08,700 Luckily, HP has a write-only one, 595 00:30:08,840 --> 00:30:10,460 so it makes it a little different. 596 00:30:11,300 --> 00:30:13,920 I have seen other ones that have read-write. 597 00:30:14,460 --> 00:30:17,740 I have not actually been able to pull stuff out of the spooler 598 00:30:17,740 --> 00:30:18,960 of those read-write ones, though. 599 00:30:20,200 --> 00:30:21,900 So I'm still working on it. 600 00:30:22,000 --> 00:30:22,840 Bear with me. 601 00:30:25,580 --> 00:30:26,900 Bouncing and ACL hopping. 602 00:30:27,180 --> 00:30:28,660 One of the nice things about printers 603 00:30:28,660 --> 00:30:30,680 is they've got some vulnerabilities in them 604 00:30:30,680 --> 00:30:32,760 that have been around since the dawn of computers. 605 00:30:33,920 --> 00:30:34,360 MSI. 606 00:30:34,380 --> 00:30:37,120 FTP bounce attacks is one of the nicest ones. 607 00:30:37,520 --> 00:30:39,280 I want to scan your network. 608 00:30:39,420 --> 00:30:42,540 I just use the FTP bounce attack with Nmap. 609 00:30:42,760 --> 00:30:44,040 Works perfectly fine. 610 00:30:45,760 --> 00:30:48,820 A victim actually believes the printer is attacking them, 611 00:30:48,840 --> 00:30:50,940 which most likely the victim will go back 612 00:30:50,940 --> 00:30:52,640 to the printer manufacturer and say, 613 00:30:52,780 --> 00:30:54,560 or to the printer administrator, 614 00:30:54,880 --> 00:30:56,360 why are you attacking me? 615 00:30:56,420 --> 00:30:57,640 The printer administrator will say, 616 00:30:57,740 --> 00:30:58,820 I'm not attacking you. 617 00:30:58,860 --> 00:30:59,300 That's a printer. 618 00:30:59,760 --> 00:31:01,160 You must be mistaken. 619 00:31:05,360 --> 00:31:08,340 See, bouncing, of course, can get you past ACLs. 620 00:31:09,620 --> 00:31:11,360 Poor man's web browser. 621 00:31:11,640 --> 00:31:13,040 All sorts of fun stuff. 622 00:31:14,640 --> 00:31:16,120 Talk this one to death. 623 00:31:17,260 --> 00:31:18,840 Basically using FTP. 624 00:31:19,940 --> 00:31:21,700 Do all sorts of really cool stuff. 625 00:31:25,720 --> 00:31:27,440 Floating through to Nix. 626 00:31:28,120 --> 00:31:30,420 This was actually an interesting one 627 00:31:30,420 --> 00:31:31,880 because I was working on a project 628 00:31:31,880 --> 00:31:34,240 where they were attaching a printer to two networks. 629 00:31:34,660 --> 00:31:37,800 One of those networks was considered very sensitive. 630 00:31:37,880 --> 00:31:40,580 The other one was considered not sensitive, 631 00:31:40,640 --> 00:31:41,920 basically public domain. 632 00:31:42,320 --> 00:31:45,340 And they were very interested about having those printers 633 00:31:45,340 --> 00:31:47,540 forward the packets across the interface. 634 00:31:48,920 --> 00:31:52,380 Unfortunately, that meant me actually going back to HP 635 00:31:52,380 --> 00:31:53,920 and trying to work with them 636 00:31:53,920 --> 00:31:56,680 to tell me whether or not this was possible. 637 00:31:57,000 --> 00:31:59,040 If I could get access to the firmware, 638 00:31:59,040 --> 00:32:01,140 I would be a grateful person. 639 00:32:01,500 --> 00:32:03,480 But unfortunately, with HP, 640 00:32:03,620 --> 00:32:05,260 I have not been able to figure out a way 641 00:32:05,260 --> 00:32:06,380 to get access to the firmware. 642 00:32:10,940 --> 00:32:14,220 Oh, by the way, HP said it was not possible. 643 00:32:15,720 --> 00:32:18,220 I have yet to see if other ones are or are not. 644 00:32:19,060 --> 00:32:20,220 Internet printing protocol. 645 00:32:20,780 --> 00:32:22,700 One of the nice things about the IPP 646 00:32:22,700 --> 00:32:24,840 is the fact that it allows users 647 00:32:24,840 --> 00:32:27,320 to print URIs to the printer. 648 00:32:27,320 --> 00:32:29,940 Or send URIs to the printer. 649 00:32:30,120 --> 00:32:33,220 So instead of actually pulling it up on a web browser 650 00:32:33,220 --> 00:32:34,600 and clicking the print button, 651 00:32:34,900 --> 00:32:36,620 they could actually just tell the printer, 652 00:32:36,680 --> 00:32:38,880 hey, go out and get this particular URI, 653 00:32:39,160 --> 00:32:43,860 this universal resource locator stuff, URLs, 654 00:32:44,560 --> 00:32:46,980 and pull it down and print it for me. 655 00:32:47,100 --> 00:32:48,720 And I'll go pick it up at the printer. 656 00:32:50,180 --> 00:32:51,400 So what does this mean? 657 00:32:51,580 --> 00:32:53,960 Well, this means a potential attacker could come along 658 00:32:53,960 --> 00:32:56,320 and actually send a URI 659 00:32:56,320 --> 00:32:58,560 for a particular print job 660 00:32:58,560 --> 00:33:00,360 they don't normally have access to, 661 00:33:00,440 --> 00:33:01,540 to the printer. 662 00:33:02,620 --> 00:33:05,620 Because some of these printers have back doors in them 663 00:33:05,620 --> 00:33:07,180 that allow you access to the print jobs, 664 00:33:07,300 --> 00:33:09,080 it might be easy to pull those things down. 665 00:33:12,020 --> 00:33:15,780 IPP version 1.1 has a lot more on security. 666 00:33:15,840 --> 00:33:20,580 It has a lot more on the particulars of TLS and SSL, 667 00:33:20,600 --> 00:33:21,220 which they're using. 668 00:33:21,480 --> 00:33:24,340 If you go look at the IPP 1.0 document, 669 00:33:24,340 --> 00:33:27,580 the particular line that they have for security 670 00:33:27,580 --> 00:33:31,180 is no security problems at this time. 671 00:33:32,580 --> 00:33:36,460 So IPP 1.0 is pretty much what all the printer manufacturers 672 00:33:36,460 --> 00:33:37,820 are following at the moment. 673 00:33:38,560 --> 00:33:40,280 This could be a potential problem. 674 00:33:41,820 --> 00:33:44,060 Of course, IPP is a new protocol. 675 00:33:45,000 --> 00:33:49,740 It has been looked over as far as RFCs are concerned, 676 00:33:49,960 --> 00:33:52,900 but there's still stuff we don't know about it. 677 00:33:54,340 --> 00:33:57,380 There were a couple of discussions I had with the IETF folks 678 00:33:57,380 --> 00:34:01,160 where I think they pretty much went above and beyond 679 00:34:01,160 --> 00:34:03,800 in telling me I was right in some of this stuff, 680 00:34:04,000 --> 00:34:06,320 and that there was even more stuff that was available 681 00:34:06,320 --> 00:34:07,760 that I hadn't figured out yet. 682 00:34:07,960 --> 00:34:09,920 So I'm working on that as well. 683 00:34:11,680 --> 00:34:12,460 File storage. 684 00:34:12,900 --> 00:34:14,940 One nice thing about printers 685 00:34:14,940 --> 00:34:16,900 is you can actually put stuff on them. 686 00:34:17,560 --> 00:34:19,680 Throw all your exploits out there. 687 00:34:20,500 --> 00:34:22,740 The forensics guys can't figure out 688 00:34:22,740 --> 00:34:24,780 where you're putting the stuff. 689 00:34:25,160 --> 00:34:27,440 I've actually talked to several forensics folks. 690 00:34:27,700 --> 00:34:29,680 Only one of the guys that I've talked to 691 00:34:29,680 --> 00:34:31,740 has actually said he will look at a printer 692 00:34:31,740 --> 00:34:32,880 to see if something's there. 693 00:34:33,240 --> 00:34:35,120 The others went, wait, printers, 694 00:34:35,260 --> 00:34:37,840 aren't they just stuff that you can print to? 695 00:34:42,660 --> 00:34:45,620 Okay, why are these attacks not being used? 696 00:34:45,840 --> 00:34:49,100 I mean, we're not hearing all this much discussion about them. 697 00:34:49,720 --> 00:34:52,680 Well, how can we be so sure that they aren't being used? 698 00:34:53,300 --> 00:34:56,120 Of course, the Tektronix vulnerabilities were known 699 00:34:56,120 --> 00:34:59,120 as much as six months before I exposed them. 700 00:35:00,160 --> 00:35:03,160 I actually had a few people send me emails saying, 701 00:35:03,300 --> 00:35:05,340 thank you very much for exposing that. 702 00:35:05,400 --> 00:35:06,860 I was actually using it. 703 00:35:09,120 --> 00:35:09,720 Sorry. 704 00:35:11,540 --> 00:35:15,020 Numerous attacks are spotted on Class B networks 705 00:35:15,020 --> 00:35:16,520 that I have access to. 706 00:35:16,620 --> 00:35:17,440 They're IDSs. 707 00:35:17,440 --> 00:35:20,120 We see AppSocket connections all the time. 708 00:35:20,460 --> 00:35:22,220 So they are possible. 709 00:35:23,960 --> 00:35:26,320 Most likely, there would be two reasons 710 00:35:26,320 --> 00:35:28,240 that hackers aren't exposing them. 711 00:35:28,320 --> 00:35:30,020 First of all, hackers don't know 712 00:35:30,020 --> 00:35:31,380 or understand the vulnerabilities. 713 00:35:31,780 --> 00:35:32,460 That's possible. 714 00:35:32,560 --> 00:35:37,480 Printers are pretty new on the vulnerability front. 715 00:35:39,740 --> 00:35:41,960 There's too many easier targets as well. 716 00:35:42,220 --> 00:35:45,540 There's a lot of insecure Windows 2000 717 00:35:45,540 --> 00:35:47,380 or Windows XP boxes out there, 718 00:35:47,480 --> 00:35:49,740 much easier to attack than a printer. 719 00:35:51,280 --> 00:35:53,740 So what are printer manufacturers doing? 720 00:35:54,000 --> 00:35:55,260 Well, standard stuff. 721 00:35:55,480 --> 00:35:56,900 Same stuff you see Microsoft 722 00:35:56,900 --> 00:35:58,260 and all these other companies doing. 723 00:35:58,660 --> 00:36:00,180 First thing is they're doing nothing. 724 00:36:00,360 --> 00:36:02,360 They don't even acknowledge the fact 725 00:36:02,360 --> 00:36:03,220 that you send them an email. 726 00:36:05,000 --> 00:36:06,840 If they do acknowledge it, 727 00:36:06,900 --> 00:36:08,680 usually it's blame the administrator 728 00:36:08,680 --> 00:36:10,120 or blame the researcher, 729 00:36:10,440 --> 00:36:13,360 whoever they can fix the blame to. 730 00:36:14,720 --> 00:36:17,700 One thing that I like is that several companies 731 00:36:17,700 --> 00:36:19,360 have come back and actually threatened me 732 00:36:19,360 --> 00:36:19,940 with lawsuits. 733 00:36:20,380 --> 00:36:22,160 If you expose this vulnerability, 734 00:36:22,440 --> 00:36:23,580 we will go after you. 735 00:36:25,440 --> 00:36:28,000 Some of them hide or attempt to hide the vulnerability. 736 00:36:28,760 --> 00:36:31,280 HP was really good about this with the Telnet stuff. 737 00:36:31,500 --> 00:36:33,920 You go and ask them during RSA 2001, 738 00:36:34,440 --> 00:36:35,900 hey, what's up with your printers? 739 00:36:36,020 --> 00:36:37,520 Why are they dying when we're using 740 00:36:37,520 --> 00:36:40,700 the Telnet attack scripts against them? 741 00:36:41,120 --> 00:36:42,520 Oh, well, we don't know. 742 00:36:43,300 --> 00:36:45,980 Or they would tell us all sorts of other stuff. 743 00:36:47,360 --> 00:36:49,020 Talk down the risk of the vulnerability 744 00:36:49,920 --> 00:36:52,020 fix the problem and only release it 745 00:36:52,020 --> 00:36:53,540 to those who ask and of course 746 00:36:53,540 --> 00:36:55,380 the smallest group of all of them 747 00:36:55,380 --> 00:36:58,540 fix the responsibility or fix the problem 748 00:36:59,260 --> 00:37:00,880 and publish the fix. 749 00:37:04,120 --> 00:37:07,320 If there are any printer manufacturers in the room, 750 00:37:08,060 --> 00:37:10,260 you're probably asking at this point, 751 00:37:10,340 --> 00:37:11,680 what do you want us to do? 752 00:37:12,200 --> 00:37:14,500 I've got five simple things. 753 00:37:15,300 --> 00:37:17,640 First thing is to think outside the box. 754 00:37:18,280 --> 00:37:20,320 Realize that printers are vulnerable. 755 00:37:20,900 --> 00:37:22,320 Don't think that they're not. 756 00:37:23,520 --> 00:37:25,580 Second, access control, authentication, 757 00:37:26,040 --> 00:37:27,000 encryption and filtering. 758 00:37:27,340 --> 00:37:29,060 These are very easy to add. 759 00:37:29,560 --> 00:37:33,180 Some cases access control is only a few lines of code. 760 00:37:34,740 --> 00:37:36,440 Give administrator control. 761 00:37:36,720 --> 00:37:38,700 Allow them to turn things off 762 00:37:38,700 --> 00:37:40,060 if they don't want them on. 763 00:37:40,580 --> 00:37:42,620 There's a lot of problems with printer manufacturers 764 00:37:42,620 --> 00:37:44,820 is they'll leave stuff on and they won't let 765 00:37:44,820 --> 00:37:46,120 the administrator turn them off. 766 00:37:47,340 --> 00:37:49,320 Educate, document and communicate. 767 00:37:49,760 --> 00:37:51,900 Don't think that your users are stupid. 768 00:37:52,500 --> 00:37:55,000 Unfortunately, most of the printer manufacturers 769 00:37:55,000 --> 00:37:58,440 out there believe that the majority of their users 770 00:37:58,440 --> 00:37:59,180 are stupid. 771 00:37:59,840 --> 00:38:01,900 So, don't. 772 00:38:02,080 --> 00:38:04,860 There are a lot of users out there that are smarter 773 00:38:04,860 --> 00:38:07,320 than the folks that are building this stuff. 774 00:38:08,440 --> 00:38:10,700 Be open-minded about security. 775 00:38:11,140 --> 00:38:14,540 Don't close your mind to the aspect of throwing 776 00:38:14,540 --> 00:38:16,100 security into your system. 777 00:38:17,380 --> 00:38:19,520 What can you do as a regular user? 778 00:38:19,780 --> 00:38:21,620 Well, first of all, never install a printer 779 00:38:21,620 --> 00:38:22,920 using its defaults. 780 00:38:22,920 --> 00:38:25,040 Always change the printer configuration. 781 00:38:26,300 --> 00:38:27,720 Change the printer password. 782 00:38:28,660 --> 00:38:30,400 Disable unnecessary services. 783 00:38:30,500 --> 00:38:33,340 One nice thing about that exploit with the 784 00:38:33,340 --> 00:38:36,080 Tektronix printers is you could actually turn off 785 00:38:37,100 --> 00:38:38,660 the web interface. 786 00:38:40,800 --> 00:38:42,260 Secure necessary services. 787 00:38:42,960 --> 00:38:44,060 Use a firewall. 788 00:38:44,380 --> 00:38:46,080 I wouldn't put a printer in front of a wall. 789 00:38:46,100 --> 00:38:46,840 Use a firewall anyways. 790 00:38:46,980 --> 00:38:49,480 There's no reason that folks from any other country 791 00:38:49,480 --> 00:38:51,940 on the planet should be printing to your printers. 792 00:38:53,560 --> 00:38:55,680 Contact vendors about security concerns. 793 00:38:55,920 --> 00:38:57,600 You know, one of the biggest problems I've had 794 00:38:57,600 --> 00:39:01,020 when contacting vendors is the fact that they come 795 00:39:01,020 --> 00:39:03,980 back and tell me nobody cares about security. 796 00:39:04,850 --> 00:39:07,460 If you care about security, you should be yelling 797 00:39:07,460 --> 00:39:10,140 at these vendors and telling them fix their stuff. 798 00:39:13,300 --> 00:39:16,780 I know I blew through this thing really quickly. 799 00:39:18,660 --> 00:39:21,720 I'm still going to end it with this. 800 00:39:21,920 --> 00:39:25,700 If you have any talks, I will plant myself outside 801 00:39:25,700 --> 00:39:26,760 in the pool area. 802 00:39:27,040 --> 00:39:29,820 You're welcome to come by and talk with me. 803 00:39:30,320 --> 00:39:34,300 The PDF, which goes into a lot more detail than I did 804 00:39:34,300 --> 00:39:37,320 in this presentation, is up on my website. 805 00:39:38,600 --> 00:39:40,120 I'm actually trying to find it. 806 00:39:40,140 --> 00:39:42,500 I'm trying to figure out where I'm going to mirror this 807 00:39:42,500 --> 00:39:45,960 because I'm a little concerned about mirroring it up on Cox. 808 00:39:47,720 --> 00:39:51,440 I also have the Magic Point presentation available as well. 809 00:39:53,120 --> 00:39:55,000 With that, thank you very much. 810 00:40:05,380 --> 00:40:07,760 Since we've got plenty of time, I might as well. 811 00:40:10,140 --> 00:40:10,420 Thank you.