Description
Manticore Search ships with an empty searchd auth setting by default. Remote attackers can run any SQL statement through the HTTP /sql endpoint and read, change, or drop all tables.
Manticore Search ships with an empty searchd auth setting by default. Remote attackers can run any SQL statement through the HTTP /sql endpoint and read, change, or drop all tables.
id: manticore-unauth
info:
name: Manticore Search - Unauthenticated SQL API Exposure
author: s4e-io
severity: high
description: |
Manticore Search ships with an empty searchd auth setting by default. Remote attackers can run any SQL statement through the HTTP /sql endpoint and read, change, or drop all tables.
reference:
- https://manual.manticoresearch.com/Security/Authentication
- https://manual.manticoresearch.com/Server_settings/Searchd#auth
- https://hub.docker.com/r/manticoresearch/manticore
classification:
cwe-id: CWE-306
metadata:
verified: true
max-request: 1
vendor: manticoresoftware
product: manticoresearch
fofa-query: header="(columnar" || header="(buddy"
tags: misconfig,manticore,database,unauth
http:
- raw:
- |
POST /sql?mode=raw HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
query=SHOW STATUS
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains_all(body, "\"columns\"", "\"total\"")'
- 'regex("\"Counter\"\\s*:\\s*\"uptime\"", body)'
condition: and
extractors:
- type: regex
part: body
regex:
- '"Value"\s*:\s*"(\d+)"'
# digest: 490a0046304402207fbe5c2287beb8bc040b771c7efd74d4c5adc6eb1931c488954641b879eff7a302203e5764c7c33c3173b12e356b38ad9f0424752be44ffbcece4a002b1df9b15b66:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.