iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2008, 12:26 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,629
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default XPS - Cross Printer Scripting Exploit

As you may be aware, a vulnerability was reported last week that would allow a malicious or attacked web site to print to printers on a victim's network. The exploit specifically targets printers that can be accessed over the local area network of the victim computer. This can be replicated at a basic level by entering http://yourprintername:9100/ExploitExists into your browser, replacing "yourprintername" with the local DNS name of your printer. Wait about twenty seconds, and close the browser. Once the browser is closed, your printer will print.

This vulnerability exists in almost all network capable printers, as port 9100 is the common port used to accept network print jobs. All major web browsers (IE, Firefox, Opera) are vulnerable to this type of exploit. Beyond printers, this type of exploit, which turns your browser into a gateway between an Internet based attacker and your local network, has been used to change router settings, access files on networked computers, and exploit other network resources.

Because the attack uses channels that are needed for the computer to function, firewalls can not prevent this type of exploit. If you use a local software firewall, for example, you will no longer be able to print over the network and use of the printer will be eliminated. Packet sniffing is less than ideal because the traffic may appear to be a legitimate print job initiated from the browser (such as a user printing a receipt from a web page).

Also, because of the nature of this attack, it is possible for attack code to be embedded almost anywhere in a page. The code can be contained in image tags, and forms. As a result, filtering could fail to prevent the issue. Also, the attack can be performed without using JavaScript, so turning off scripts in your browser would have no effect.

As this is a newer type of vulnerability, the makers of various browsers are still investigating ways to deal with this exploit. My question to you here is, do you have any ideas or suggestions for countering this type of threat?

Link to the exploit and example code:
ha.ckers.org blog post about the issue
Whitepaper with proof of concept
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 06:57 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: XPS - Cross Printer Scripting Exploit

Just in case anyone reads this, its not an exploit if you have your printer hooked up to a computer and the printer is shared through the local network via the original computer.

It seems to be only an exploit for the printers that have BUILT in network support.

I know this maybe obvious to the IT people out there, so that short description was for those of us who aren't IT professionals.
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 09:43 PM
WebProWorld New Member
 
Join Date: May 2006
Posts: 23
mono RepRank 0
Default Re: XPS - Cross Printer Scripting Exploit

How does it know what's the DNS name of the printer on your internal LAN. I got this hack to work by typing the ip address of my networked
printer. How would a malicious script know that ahead of time?
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 11:27 PM
WebProWorld Pro
 
Join Date: Mar 2005
Posts: 119
subsystems RepRank 2
Default Re: XPS - Cross Printer Scripting Exploit

Ok that's it! I'm selling my computer business and going to work in the food services industry!
Well, on second thought, many companies are switching away from networked printers to desktop printers due to convince and low cost. But there are many situations where that is not practical.
Hope there is a fix soon in the Windows Update so I can justify ignoring this threat.

Just a note: I suspect this threat was created by those people that want to sell me ink and toner cartridges.

On a more serious note, shouldn't we as an industry be moving people towards being a paperless society. I email my customers invoices & statements in PDF format. If I need a permanent copy I burn them to DVD-RW. Oh, and while I am at it. What's up with the continued use of FAX machines!? WE HAVE THE TECHNOLOGY. Those things are embarrassingly out dated.

Last edited by subsystems; 01-23-2008 at 11:42 PM.
Reply With Quote
  #5 (permalink)  
Old 01-24-2008, 10:56 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,629
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: XPS - Cross Printer Scripting Exploit

Quote:
Originally Posted by mono View Post
How does it know what's the DNS name of the printer on your internal LAN. I got this hack to work by typing the ip address of my networked
printer. How would a malicious script know that ahead of time?
Actually, it is possible for a web based applet to determine what (local) IP address the computer is using and scan the entire subnet looking for devices that respond to requests on a certain port. I've, uh... ahem... seen somebody else do it. You could also use a javascript that guesses what the local subnet of the computer would be and tries every address. This is even easier for routers - in default installations, there are maybe three common IP addresses for routers (192.168.0.1, 192.168.1.1, 10.0.0.1) and so many default usernames and passwords that you could easily create a simple script that would change the router's settings or cause the router to crash.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #6 (permalink)  
Old 01-24-2008, 10:57 AM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: XPS - Cross Printer Scripting Exploit

I'm planning on taking an old computer and using that as the main print pc and hooking up a fax modem so it can send and receive faxes and save to the hd for those outdated clients of ours.
Reply With Quote
  #7 (permalink)  
Old 01-24-2008, 12:41 PM
WebProWorld New Member
 
Join Date: May 2006
Posts: 23
mono RepRank 0
Default Re: XPS - Cross Printer Scripting Exploit

You said , "Actually, it is possible for a web based applet to determine what (local) IP address the computer is using and scan the entire subnet looking for devices that respond to requests on a certain port. I've, uh... ahem... seen somebody else do it. "

Written in JAVA? or Flash? I thought Flash was safer than Javascript. Care to share that script privately? I'm a good guy --- passed all the prescreening and rigorous background checks to work at Symantec and worked there for a while -- I'd like a copy of that script for my private entomology collection.

You said, "You could also use a javascript that guesses what the local subnet of the computer would be and tries every address. "

Yeah I thought of that one. That's why I don't use the default 192.168.0.* on my local net. It would take a javascript long enough so you'd feel it to scan the entire class B, but not so long to scan the default class C with the fixed third octet of 0.

"This is even easier for routers - in default installations, there are maybe three common IP addresses for routers (192.168.0.1, 192.168.1.1, 10.0.0.1) and so many default usernames and passwords that you could easily create a simple script that would change the router's settings or cause the router to crash."

or rewrite certain well-known bank ip addresses to evil hacker webservers and phish the crap out of everyone. But you've moved off the printer hack and on to a more general hack, I think. I'm not following how exploiting port 9100 allows you to change the router. It seems to me like the root cause is having a vulnerable router in the first place which allows the hacker to both hack the router and exploit 9100.

Where I come from, the local custom is to assign 254 to the router, but it's just a custom, not a requirement. Anyone who runs a router on the open internet with the default uid/pass and configs is a clueless noob.
People your router is your point of ingress into your soft mushy underbally internal network. That's the door you want to lock.

WHEN ARE WE (in USA) GOING TO GO IPv6? Korea has it. and I think China too.
Reply With Quote
  #8 (permalink)  
Old 01-24-2008, 01:01 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,629
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: XPS - Cross Printer Scripting Exploit

Quote:
Originally Posted by mono View Post
You said , "Actually, it is possible for a web based applet to determine what (local) IP address the computer is using and scan the entire subnet looking for devices that respond to requests on a certain port. I've, uh... ahem... seen somebody else do it. "

Written in JAVA? or Flash? I thought Flash was safer than Javascript. Care to share that script privately? I'm a good guy --- passed all the prescreening and rigorous background checks to work at Symantec and worked there for a while -- I'd like a copy of that script for my private entomology collection.
The software the, um, person wrote was done in Java, and worked quite well until one of the managers made me, um, that person, add in a dialog box for the user to confirm the operation. Apparently, successfully using an exploit when talking to a defense contractor is a "bad thing." The applet violated a permissions setting in the JVM to talk to the local network, which has since been patched. Other engineers adapted the program to VBScript and I have seen some versions that use ActiveX. I am not able to share any part of the code, because in addition to the browser exploit, it also exploits internal code in the target system that is considered proprietary, to force the device to alter certain settings. It was actually designed as a diagnostic tool, for people who had a device and set it to DHCP without entering a hostname.

Quote:
Originally Posted by mono View Post
You said, "You could also use a javascript that guesses what the local subnet of the computer would be and tries every address. "

Yeah I thought of that one. That's why I don't use the default 192.168.0.* on my local net. It would take a javascript long enough so you'd feel it to scan the entire class B, but not so long to scan the default class C with the fixed third octet of 0.

"This is even easier for routers - in default installations, there are maybe three common IP addresses for routers (192.168.0.1, 192.168.1.1, 10.0.0.1) and so many default usernames and passwords that you could easily create a simple script that would change the router's settings or cause the router to crash."

or rewrite certain well-known bank ip addresses to evil hacker webservers and phish the crap out of everyone. But you've moved off the printer hack and on to a more general hack, I think. I'm not following how exploiting port 9100 allows you to change the router. It seems to me like the root cause is having a vulnerable router in the first place which allows the hacker to both hack the router and exploit 9100.

Where I come from, the local custom is to assign 254 to the router, but it's just a custom, not a requirement. Anyone who runs a router on the open internet with the default uid/pass and configs is a clueless noob.
People your router is your point of ingress into your soft mushy underbally internal network. That's the door you want to lock.

WHEN ARE WE (in USA) GOING TO GO IPv6? Korea has it. and I think China too.
Yes, I did move on to a much more general topic with the router comments. I just wanted to give an example of how this idea can be expanded on to allow an attacker to exploit almost any network device given the right conditions. Even the strictest router would be unable to prevent the attack because the code is embedded in a requested web page.

Also, because a print operation does not require a response from the printer, all you need to do is open a connection to the IP/port, send the data, and close the connection. A Javascript could do this using AJAX for an entire Class B in maybe 10 seconds. Two asynchronous connections lasting 1-2 ms each would be all that would be required. Of course, hopefully an IDS would detect the burst of traffic, but that is not something most IDS systems look for yet.
__________________
The best way to learn anything, is to question everything.

Last edited by wige; 01-24-2008 at 01:05 PM. Reason: Grammar
Reply With Quote
  #9 (permalink)  
Old 01-26-2008, 01:21 PM
deepsand's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2004
Location: Philadelphia, PA
Posts: 3,063
deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9
Default Re: XPS - Cross Printer Scripting Exploit

While this particular vector may be nut newly discovered, the vulnerability of any network attached device, including printers and copiers, has been long recognized. Multi-function copiers which contain their own HDs are of particular concern.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent warning - obviously new exploit Faglork Internet Security Discussion Forum 9 01-30-2006 09:32 PM
Exploit code for MS05-009 vulnerability on the loose WPW_Feedbot IT Discussion Forum 0 02-10-2005 05:31 AM
Cross-Site Scripting and Spoofing Attacks in Windows ShareP WPW_Feedbot IT Discussion Forum 0 02-09-2005 07:31 PM
DSO Exploit - should I be worried? jacobwissler Internet Security Discussion Forum 2 01-02-2005 06:44 AM
The jpeg hole exploit now in the wild. netman4ttm Internet Security Discussion Forum 0 09-30-2004 01:41 PM


All times are GMT -4. The time now is 07:36 PM.



Search Engine Optimization by vBSEO 3.3.0