Skip to content
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

Prevent leaking stacktrace when unable to parse URI query params #3385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JGulbronson
Copy link
Collaborator

Description

When calling JettyWebSocketServlet.service, Jetty can throw when trying to extract the query params. This is a known issue, and results in a stacktrace being sent in the response. Sending the stacktrace by default seems like an unwanted behavior from a security perspective, so I'd made a change that preserves the status code and message, but removes the stacktrace to avoid leaking unwanted information. I didn't feel it was necessary to add a flag for this to WebConfig because in almost all cases I believe this to be the behavior that users would want.

@JGulbronson JGulbronson force-pushed the jgulbronson.prevent-leaking-stacktrace branch from 500e37e to e886695 Compare March 7, 2025 13:37
Copy link
Collaborator

@adrw adrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, going to run it against the internal test suite now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants