You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "asf-tooling (via GitHub)" <gi...@apache.org> on 2026/04/03 19:49:35 UTC
[I] API Error Responses Leak Internal Error Details (tooling-trusted-releases)
asf-tooling opened a new issue, #1126:
URL: https://github.com/apache/tooling-trusted-releases/issues/1126
**ASVS Level(s):** L2
**Description:**
### Summary
When unhandled exceptions occur in API endpoints, the error handlers return str(error) directly to the client. For unexpected exceptions, this can expose internal file paths, SQL fragments, class names, and system state information that aids attackers in understanding the application internals. Tracebacks are suppressed but raw exception messages are still returned.
### Details
In `atr/server.py` and `atr/blueprints/api.py`, error handlers return raw exception messages to clients.
### Recommended Remediation
In `_handle_generic_exception`, log full error details but only return detailed errors when `is_dev_environment()` is True. Return generic 'Internal server error' message in production.
### Acceptance Criteria
- [ ] Detailed errors only in development mode
- [ ] Generic errors in production
- [ ] Full error details logged server-side
- [ ] Unit tests verify error handling
### References
- Source reports: L2:13.4.2.md
- Related findings: FINDING-177, FINDING-178
- ASVS sections: 13.4.2
### Priority
Low
---
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org
Re: [I] API Error Responses Leak Internal Error Details (tooling-trusted-releases)
Posted by "dave2wave (via GitHub)" <gi...@apache.org>.
dave2wave closed issue #1126: API Error Responses Leak Internal Error Details
URL: https://github.com/apache/tooling-trusted-releases/issues/1126
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org