Neo4j Unauthenticated Query Verification
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Verify unauthenticated Neo4j Cypher queries."""
import json
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.scanner.http.response_validation import parse_json_response
class Module(Scanner, Http_client):
__info__ = {
"name": "Neo4j Unauthenticated Query Verification",
"description": "Confirms anonymous Neo4j HTTP transaction commits with RETURN 1.",
"author": ["KittySploit Team"],
"severity": "high",
"tags": ["neo4j", "database", "graph", "scanner", "unauth", "verify"],
"agent": {
"risk": "active",
"effects": ["network_probe"],
"expected_requests": 2,
"reversible": True,
"approval_required": False,
"produces": ["tech_hints", "risk_signals"],
"chain": {"produces_capabilities": ["unauth_read"]},
},
}
port = OptPort(7474, "Neo4j HTTP port", True)
ssl = OptBool(False, "Use HTTPS", required=False)
def run(self):
payload = {"statements": [{"statement": "RETURN 1 AS ok"}]}
body = json.dumps(payload)
for path in ("/db/data/transaction/commit", "/db/neo4j/tx/commit"):
r = self.http_request(
method="POST",
path=path,
data=body,
headers={"Content-Type": "application/json"},
allow_redirects=False,
)
data, err = parse_json_response(r) if r else (None, "bad_status")
if err or not data:
continue
errors = data.get("errors") or []
results = data.get("results") or []
if results and not errors:
self.set_info(
severity="high",
reason="Neo4j executed unauthenticated Cypher query",
path=path,
confidence="high",
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
02 Aug 2026 20:51Current
5.8Medium risk
Vulners AI Score5.8