-
Notifications
You must be signed in to change notification settings - Fork 400
fix: don't send server stack trace to client #1968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 1.x
Are you sure you want to change the base?
fix: don't send server stack trace to client #1968
Conversation
|
❌ Deploy Preview for solid-start-landing-page failed. Why did it fail? →
|
This doesn't compile currently due to |
I think this has been discussed multiple times before, the reason we don't actually do this is:
|
fixes solidjs#1967 Avoid sending Error.stack to the client. Stack traces can leak production file paths, internal function names, and other sensitive info, increasing attack surface.
4e9afeb
to
9eda232
Compare
This is considered a well known security risk:
see also:
I changed it to remove it only on production. BTW I think solid-start should provide a mechanism to decide which errors should be sent to the client, e.g. sending DB errors to the client by default is a very bad idea, potentially exposing schema info, credentials location (e.g. env.DB_URL) and other sensitive information. |
There's no way to filter out errors atm since seroval handles the entire thing. Will be discussing the rest of the details with the core team |
PR Checklist
Please check if your PR fulfills the following requirements:
Avoid sending Error.stack to the client. Stack traces can leak production file paths, internal function names, and other sensitive info, increasing attack surface.