mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 22:40:54 -07:00
modules/recon/influxdb-api-exposure.yaml flags an exposed InfluxDB instance through its unauthenticated /health endpoint, keyed on the influxdb name paired with the ready-for-queries health message, then extracts the version. modules/recon/arangodb-api-exposure.yaml flags an ArangoDB instance reachable anonymously through its /_api/version endpoint, keyed on the arango server name paired with the version field, then extracts the version. the 200 gate is what proves anonymous reach: an auth-enabled instance answers with a 401. modules/recon/neo4j-api-exposure.yaml flags an exposed Neo4j instance through its unauthenticated root discovery endpoint, keyed on the neo4j version paired with the neo4j edition, then extracts the version. internal/modules/http_database_exposure_test.go drives the three modules through ExecuteHTTPModule and asserts the leak alongside the near misses a strict review wants pinned: each service with one keying field missing, a non-arango response, an arango that requires auth, a generic health json, a plain 200 and a 404. verify: go test ./internal/modules, each matcher and extractor proven to bite (break -> red, restore -> green).
40 lines
715 B
YAML
40 lines
715 B
YAML
# ArangoDB API Exposure Detection Module
|
|
|
|
id: arangodb-api-exposure
|
|
info:
|
|
name: ArangoDB API Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an exposed ArangoDB instance through its unauthenticated version endpoint
|
|
tags: [arangodb, database, graph, api, exposure, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/_api/version"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"arango\""
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"version\""
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: arangodb_version
|
|
part: body
|
|
regex:
|
|
- '"version"\s*:\s*"([^"]+)"'
|
|
group: 1
|