Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Fix: invalid urls passed to tomcat result in stacktraces#66

Open
ThomBreugelmans wants to merge 1 commit intomasterfrom
implement-valve-removing-stacktraces
Open

Fix: invalid urls passed to tomcat result in stacktraces#66
ThomBreugelmans wants to merge 1 commit intomasterfrom
implement-valve-removing-stacktraces

Conversation

@ThomBreugelmans
Copy link
Copy Markdown
Contributor

Tomcat does not like getting invalid URLs that do not follow the RFC, so an URL like: https://connect.ch.tudelft.nl/?f=[ will result in an error and by default Tomcat will print a stacktrace along with server information such as version. Added a Valve in the server.xml config that disables these error reports and server information.

Could not find out what the proper procedure was to modify the server.xml file, so copied the default in the container, modified it to include the Valve and replaced this in the container.

Tomcat does not like getting invalid URLs that do not follow the RFC, so an URL like: https://connect.ch.tudelft.nl/\?f\=\[ will result in an error and by default Tomcat will print a stacktrace along with server information such as version.
Added a Valve in the server.xml config that disables these error reports and server information.
Copy link
Copy Markdown

@07joshua03 07joshua03 left a comment

Choose a reason for hiding this comment

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

Geen flauw idee waar ik naar aan het kijken ben (of hoe het origineel eruit zag), maar als het ervoor zorgt dat we geen security disclosure mailtjes meer krijgen vind ik het goed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants