SECURITY: generic API 500 responses expose internal Python tracebacks to clients #174
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
helpers/api.py::ApiHandler.handle_request()catches arbitrary exceptions and returns:helpers/errors.py::format_error()includes a Python traceback with source file paths, call stack, exception text and potentially values interpolated into exception messages.Therefore unexpected errors from built-in, plugin, or user API handlers are returned verbatim to the HTTP client. This exposes implementation details and can leak sensitive path/config/value information when an exception contains it. If UI authentication is intentionally unset,
requires_authpermits the request, increasing the importance of a safe production error boundary.Direction
Separate client-safe errors from server diagnostics:
Acceptance
Mirrored from
lost-rob0t/a0-symbolics#36via tracker sync.