Files
sif/modules/recon/neo4j-api-exposure.yaml
T
TigahandGitHub d0e986736d feat(modules): add influxdb, arangodb and neo4j exposure modules (#221)
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).
2026-06-22 16:48:41 -07:00

40 lines
706 B
YAML

# Neo4j API Exposure Detection Module
id: neo4j-api-exposure
info:
name: Neo4j API Exposure
author: sif
severity: medium
description: Detects an exposed Neo4j instance through its unauthenticated discovery endpoint
tags: [neo4j, database, graph, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"neo4j_version\""
- type: word
part: body
words:
- "\"neo4j_edition\""
extractors:
- type: regex
name: neo4j_version
part: body
regex:
- '"neo4j_version"\s*:\s*"([^"]+)"'
group: 1