Back to Findings

Sensitive Data Exposure in API Error Messages

MediumResolvedCVSS 3.1: 5.3CWE-209
TWP-007Tamkeen Web Portal9 months ago
Description

API error responses include full stack traces, database query details, and internal file paths, potentially revealing sensitive system information to attackers.

Proof of Concept
Send malformed JSON to any API endpoint. The error response includes internal file paths, Node.js version, and partial query strings.
Remediation

Use generic error messages in production. Log detailed errors server-side only. Implement a global error handler that strips technical details.

Details
Affected Assethttps://app.tamkeen.sa/api/*
CVSS Score5.3
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWECWE-209