Medium severityRubySensitive Data ExposureMEDIUM confidence
Exception Detail To Client
An exception message/backtrace is returned to the client (CWE-209).
Standards mapping
- OWASP Top 10
- A05:2021 - Security Misconfiguration
- OWASP ASVS
- V7.4.1 (L2)
Vulnerable vs. safe
Flagged by this check
render json: {error: e.message}Passes - the safe pattern
render plain: "An unexpected error occurred"Why it matters & how to fix it
An exception message/backtrace is returned to the client (CWE-209). Internal error detail leaks implementation and aids attackers; return a generic error to the user and log the detail server-side only.
References
Rule ID integsec-ruby-exception-detail-to-client - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Sensitive Data ExposureError Stack In Response
- JavaScript / TypeScript - Sensitive Data ExposurePII PHI In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSecret In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data Client Storage
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data In URL Query
- Python - Sensitive Data ExposureFlask Traceback In Response