fix: prevent internal error detail leakage in API responses (#3202)#4050
fix: prevent internal error detail leakage in API responses (#3202)#4050BossChaos wants to merge 2 commits intoScottcjn:mainfrom
Conversation
Replaces str(e) with generic error messages to prevent leaking internal file paths, database structures, and stack traces to clients. Affected files: - node/hall_of_rust.py (10 instances) - node/gpu_render_endpoints.py (4 instances)
fengqiankun6-sudo
left a comment
There was a problem hiding this comment.
PR #4050 Security Review
Summary
Prevents internal error detail leakage in API responses.
Code Assessment
- Correctness: Proper error sanitization in API responses
- Coverage: Multiple API routes
- Best Practice: Generic error responses
Severity: SECURITY
Internal error details can leak system structure.
Estimated RTC: 5-10
haoyousun60-create
left a comment
There was a problem hiding this comment.
Reviewed. Security hardening looks solid. LGTM! 🚀
fengqiankun6-sudo
left a comment
There was a problem hiding this comment.
LGTM! Good security fix. ✅
|
Closing per branch-contamination audit (2026-05-09). This PR is part of a 161-PR cluster from your account where the diff carries files unrelated to the claimed fix. Specifically, 128 of 161 PRs in this batch modify This is a branching-hygiene problem, not a quality problem with the underlying fixes. The pattern means:
To get back to paid status:
I have nothing against the underlying fixes — quality has been good when scoped. But contamination at this scale is unreviewable, and Faucet Tiers policy requires clean diffs for security claims. Specifically clean PRs already approved for payout (per 2026-05-06 audit, still scope-clean as of today):
These will be paid via the admin /wallet/transfer flow. — auto-triage 2026-05-09 (this is mechanical contamination detection, not a personal judgment) |
Summary
Fixes internal error detail leakage in API responses where
str(e)was exposing internal file paths, database structures, and stack traces to external clients (Issue #3202).Vulnerability
Before:
This exposes:
/home/user/node/hall_of_rust.py)After:
Generic error messages only — no internal details leaked.
Affected Files
node/hall_of_rust.py(10 instances)node/gpu_render_endpoints.py(4 instances)Impact
Testing