fix: don't send server stack trace to client#1968
fix: don't send server stack trace to client#1968yinonburgansky wants to merge 1 commit intosolidjs:1.xfrom
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.