Kaltura — 1 vulnerability check

noctis ships 1 vulnerability check for Kaltura, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Kaltura Community Edition < 11.7.0-2 redirectWidgetCmd kdata PHP object injection

CVECVE-2016-15044
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, script, match · highest QoD 70
Feedtests/vulnerabilities/kaltura/CVE-2016-15044.yaml

Reads the Kaltura install page (/start/index.php, also under /Kaltura and /kvd), confirms the Kaltura Video Platform title and extracts the Community Edition version, then compares it numerically with 11.7.0-2, the first release that validates the kdata parameter of keditorservices/redirectWidgetCmd (unserialized from user input, a PHP object injection that leads to code execution as the web server user). Version-based: no serialized payload is sent and nothing is executed on the target.

How noctis detects it

  1. HTTP(S) request GET /start/index.php
  2. HTTP(S) request GET /Kaltura/start/index.php
  3. HTTP(S) request GET /kvd/start/index.php
  4. Parses / computes the next value with a Rhai script
  5. Checks kt.version for ^[0-9] → finding QoD 70: Kaltura Community Edition … — redirectWidgetCmd kdata PHP object injection (CVE-2016-15044)
Feed source — tests/vulnerabilities/kaltura/CVE-2016-15044.yaml
# Kaltura Community Edition kdata PHP object injection — CVE-2016-15044
#
# redirectWidgetCmd of the Kaltura Community Edition keditorservices
# controller unserializes the base64 'kdata' request parameter without
# validation; a crafted object graph (Zend_Log / Zend_Mail gadgets bundled with
# the product) ends in code execution as the web server user. Fixed in
# 11.7.0-2. The same releases also carry an unrestricted "Upload Content"
# handler and a 'file' protocol handler issue that have no CVE.
# Advisory: Security-Assessment.com "Kaltura Multiple Vulnerabilities",
# exploit-db 39563 / 40404.
#
# Why a version check (QoD 70): the only behavioural proof is to send a
# serialized object graph that executes a command on the server — a payload
# that turns the scan into a remote-code-execution attempt on a production
# video platform. The feed instead reads the version the install page prints
# and compares it with the fixed release.
#
# Improvements over the source NASL:
#   - The NASL's active probe needs the exploit to run and a target that
#     returns command output in the page; the feed needs neither and reports
#     hosts where the response is swallowed or filtered.
#   - The version is compared numerically component by component (11.10.0-1
#     is not read as older than 11.7.0-2), and only the "Community Edition"
#     builds are judged; On-Prem builds use another version line.
#
# CVSS: NVD has no v3.x score for CVE-2016-15044 (CNA CVSS 4.0 9.3); the
# issue's 7.5 is kept.
#
# Ported from OpenVAS/Greenbone NVT 2016/gb_kaltura_community_edition_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.807700, GPL-2.0-only).
uid: 821f47bc-5139-41de-a89d-e2ff4f1adb70
name: "Kaltura Community Edition < 11.7.0-2 redirectWidgetCmd kdata PHP object injection (CVE-2016-15044)"
description: "Reads the Kaltura install page (/start/index.php, also under /Kaltura and /kvd), confirms the Kaltura Video Platform title and extracts the Community Edition version, then compares it numerically with 11.7.0-2, the first release that validates the kdata parameter of keditorservices/redirectWidgetCmd (unserialized from user input, a PHP object injection that leads to code execution as the web server user). Version-based: no serialized payload is sent and nothing is executed on the target."
category: rce
cves: [CVE-2016-15044]
cvss: 7.5
severity: high
confidence_base: 0.30
tags: [kaltura, php, object-injection, deserialization, version-check]
services: [http, https]
author: noctis
version: "1.0.0"

steps:
  - id: init-a
    action: set_var
    var_name: kt_a
    var_value: false

  - id: init-b
    action: set_var
    var_name: kt_b
    var_value: false

  - id: init-c
    action: set_var
    var_name: kt_c
    var_value: false

  - id: page-root
    action: http_request
    method: GET
    path: "/start/index.php"
    port: "{{port}}"
    tls_insecure: true
    store_as: kt_a

  - id: page-kaltura
    action: http_request
    method: GET
    path: "/Kaltura/start/index.php"
    port: "{{port}}"
    tls_insecure: true
    store_as: kt_b

  - id: page-kvd
    action: http_request
    method: GET
    path: "/kvd/start/index.php"
    port: "{{port}}"
    tls_insecure: true
    store_as: kt_c

  # Vulnerable: Community Edition below 11.7.0-2 (version printed as A.B.C-D).
  - id: version
    action: script
    store_as: kt
    code: |
      let pages = [];
      if type_of(kt_a) == "map" && kt_a.status == 200 { pages.push(kt_a.body); }
      if type_of(kt_b) == "map" && kt_b.status == 200 { pages.push(kt_b.body); }
      if type_of(kt_c) == "map" && kt_c.status == 200 { pages.push(kt_c.body); }
      let res = #{ ok: false, version: "", vuln: false };
      for body in pages {
        if res.ok { break; }
        if !ereg("title>Kaltura Video Platf(ro|or)m", body) { continue; }
        let m = eregmatch("Community Edition (?:Kaltura Server )?([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9]+))?", body);
        if type_of(m) == "array" && m.len() >= 4 {
          let a = int(m[1]); let b = int(m[2]); let c = int(m[3]);
          let d = 0;
          let v = m[1] + "." + m[2] + "." + m[3];
          if m.len() >= 5 && m[4] != "" { d = int(m[4]); v += "-" + m[4]; }
          let vuln = a < 11 || (a == 11 && (b < 7 || (b == 7 && c == 0 && d < 2)));
          res = #{ ok: true, version: v, vuln: vuln };
        }
      }
      res

  - id: version-match
    action: match
    source: kt.version
    pattern: "^[0-9]"
    condition: "kt.ok == true && kt.vuln == true"
    on_match:
      finding:
        confidence_delta: 0.35
        qod: 70
        title: "Kaltura Community Edition {{kt.version}} — redirectWidgetCmd kdata PHP object injection (CVE-2016-15044)"
        description: "The Kaltura install page reports Community Edition {{kt.version}}, older than 11.7.0-2. In these releases the kdata parameter of keditorservices/redirectWidgetCmd is unserialized without validation, so an unauthenticated request carrying a crafted object graph can run code as the web server user. The same releases also have an unrestricted content upload and a 'file' protocol handler weakness."
        remediation: "Upgrade Kaltura Community Edition to 11.7.0-2 or later."
        evidence: "Kaltura Community Edition {{kt.version}} read from /start/index.php (fixed in 11.7.0-2)"
      stop: true

View these feeds on GitHub