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

Ruby version is showing up in Webrick Headers, and we need to edit that for security reason #98

Closed
manihere opened this issue Nov 10, 2022 · 4 comments

Comments

@manihere
Copy link

We have installed omsagent on server, which also install ruby : https://github.com/microsoft/OMS-Agent-for-Linux

If we curl ruby port localhost:25324, we can see ruby version in the output:

image

If the ruby version is displayed then it can lead to security concerns as it is regularly getting flagged in their pentest.
So you would like to check if it is possible to hide the ruby version information.
As per our research we might need to modify webrick configurations but we cannot find the same in terms of omsagent.

@manihere
Copy link
Author

image

@manihere
Copy link
Author

Can we also ensure this info is not displayed in future versions

@olleolleolle
Copy link
Contributor

olleolleolle commented Nov 10, 2022

The configuration option for this header is named ServerSoftware. Hope this helps!

Also, the code says:

webrick/lib/webrick.rb

Lines 20 to 21 in 3515081

# *Warning:* WEBrick is not recommended for production. It only implements
# basic security checks.

@jeremyevans
Copy link
Contributor

Closing as this is not a bug. Showing versions of software is not a security issue, and hiding versions of software is not a security fix. For questions regarding WEBrick, please open a Discussion instead of an Issue.

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

No branches or pull requests

3 participants