Description
Unauthenticated access to the CockroachDB console allows viewing the cluster nodes and server version.
Unauthenticated access to the CockroachDB console allows viewing the cluster nodes and server version.
id: cockroachdb-unauth-exposure
info:
name: CockroachDB Unauthenticated Console Exposure
author: pussycat0x
severity: high
description: |
Unauthenticated access to the CockroachDB console allows viewing the cluster nodes and server version.
metadata:
verified: true
shodan-query: product:cockroachdb
tags: cockroachdb,exposure,misconfig,unauth,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "<title>Cockroach Console")'
condition: and
internal: true
- method: GET
path:
- "{{BaseURL}}/_status/nodes"
matchers:
- type: dsl
dsl:
- 'contains_all(body, "nodes", "ServerVersion","buildInfo")'
- 'status_code == 200'
condition: and
# digest: 490a004630440220784c2fb68d91e577692fd30de0faad6d13b6008169d2d479ab12a94278490581022018deab06dc65fd8fdaa9a41628932d34d6025aab31e68ffbff61b5d37ec57123:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.