RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2059122 - Hiding Server Name HTTP header from TornadoServer(used in pcs/pcsd)
Summary: Hiding Server Name HTTP header from TornadoServer(used in pcs/pcsd)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pcs
Version: 9.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: 9.1
Assignee: Ivan Devat
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-28 09:16 UTC by Tomas Jelinek
Modified: 2022-11-15 10:03 UTC (History)
12 users (show)

Fixed In Version: pcs-0.11.3-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2058278
Environment:
Last Closed: 2022-11-15 09:49:09 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-113967 0 None None None 2022-02-28 09:23:29 UTC
Red Hat Knowledge Base (Solution) 4531771 0 None None None 2022-10-27 13:44:15 UTC
Red Hat Product Errata RHSA-2022:7935 0 None None None 2022-11-15 09:49:22 UTC

Description Tomas Jelinek 2022-02-28 09:16:36 UTC
+++ This bug was initially created as a clone of Bug #2058278 +++

Description of problem:
When a HTTP request is made against a cluster node running pcsd, the HTTP response contains HTTP Server name in its headers.
This is perceived as a security thread.
This bug report is opened to investigate whether there is a way to hide that header or prevent disclosing the server name in a different way.

Version-Release number of selected component (if applicable):
pcs-0.10.10-4.el8.x86_64


How reproducible:
Easily, every time.


Steps to Reproduce:
1.Install and start pcsd
2. Send a http request to the node
# curl -kv https://localhost:2224 2>&1 | awk '/Server:/'
< Server: TornadoServer/6.1



Actual results:
# curl -kv https://localhost:2224 2>&1 | awk '/Server:/'
< Server: TornadoServer/6.1


Expected results:
# curl -kv https://localhost:2224 2>&1 | awk '/Server:/'
< Server:


Or Following line is obfuscated/nullified/hidden.
< Server: TornadoServer/6.1



Additional info:

--- Additional comment from RESHMA K VIJAYAN on 2022-02-24 17:03:12 CET ---

We already have one present for RHEL 7 : https://bugzilla.redhat.com/show_bug.cgi?id=1765606

Comment 3 Miroslav Lisik 2022-06-24 13:09:45 UTC
DevTestResults:

[root@r91-1 pcs]# rpm -q pcs
pcs-0.11.3-1.el9.x86_64

[root@r91-1 pcs]# systemctl show -p ActiveState pcsd
ActiveState=active
[root@r91-1 pcs]# curl -kv https://localhost:2224 |& awk '/Server:/'

No HTTP header Server.

Comment 9 errata-xmlrpc 2022-11-15 09:49:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: pcs security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7935


Note You need to log in before you can comment on or make changes to this bug.