Back to Home
chiraggahujaa icon

db-explorer

by chiraggahujaa

Overview

An AI-powered platform for natural language database exploration, querying, modification, and management, supporting multiple database types with team collaboration features.

Installation

Run Command
cd db-explorer-api && npm run dev

Environment Variables

  • SUPABASE_URL
  • SUPABASE_ANON_KEY
  • SUPABASE_SERVICE_ROLE_KEY
  • JWT_SECRET
  • FRONTEND_URL
  • NEXT_PUBLIC_API_URL
  • NEXT_PUBLIC_GEMINI_API_KEY
  • NEXT_PUBLIC_GOOGLE_CLIENT_ID
  • GEMINI_API_KEY
  • DB_PASSWORD
  • RESEND_API_KEY

Security Notes

The application uses Zod for validation, JWT for authentication, and Helmet for basic Express security. However, a critical SQL injection vulnerability exists in the `select_data` tool within the `/api/chat` route, where the `where` clause is constructed by direct string concatenation without proper parameterization. The `execute_custom_query` tool, which allows arbitrary SQL execution, also poses a high risk if the underlying database connector's `query` method does not adequately protect against injection for raw SQL statements. Storing tokens in local/session storage makes them vulnerable to XSS attacks. These issues significantly lower the security score, making the application potentially unsafe for sensitive data or untrusted users.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens1200
Stars0
Forks0
Last Update2025-12-17

Tags

AI-PoweredDatabase ManagementNatural Language QueriesGoogle GeminiVercel AI SDKCollaborationSQL