# Database Error Information Exposure

> Detects database errors and query details sent directly to HTTP responses, leaking schema information.

- Skill: `zakirkun/database-error-information-exposure` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/database-error-information-exposure`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/database-error-information-exposure/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/database-error-information-exposure

---


# Database Error Information Exposure

## Overview
Database error messages sent to users reveal internal schema details:
- Table and column names
- SQL query structure
- Database version and type
- Internal file paths (SQLite, PostgreSQL data directory)

This information directly assists attackers in crafting SQL injection payloads.

## Remediation
Catch all database exceptions and return generic error messages. Log the actual error server-side.

