Quality: Error messages leak internal details to clients #113

Open
opened 2026-05-11 13:50:41 +00:00 by thabeta · 0 comments
Owner

Severity: Medium

Location

Multiple handlers across api_openrouter/ and api_openrpc/

Finding

Error responses often include internal details:

  • Provider error messages forwarded directly to clients\n- Stack traces in error responses\n- Internal URLs and socket paths in error messages\n- Key pool status exposed in error responses

Impact

  • Information disclosure about internal architecture\n- Provider error messages may contain sensitive data\n- Attackers can use error details for reconnaissance

Recommendation

  • Sanitize error messages before sending to clients\n- Use structured error responses with error codes\n- Log internal details, return generic messages to clients\n- Add error sanitization middleware
## Severity: Medium ## Location Multiple handlers across `api_openrouter/` and `api_openrpc/` ## Finding Error responses often include internal details: - Provider error messages forwarded directly to clients\n- Stack traces in error responses\n- Internal URLs and socket paths in error messages\n- Key pool status exposed in error responses ## Impact - Information disclosure about internal architecture\n- Provider error messages may contain sensitive data\n- Attackers can use error details for reconnaissance ## Recommendation - Sanitize error messages before sending to clients\n- Use structured error responses with error codes\n- Log internal details, return generic messages to clients\n- Add error sanitization middleware
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_aibroker#113
No description provided.