Bug 1825810

Summary: Remediation of sysctl_net_ipv4_ip_forward rule breaks the sysctl_net_ipv4_conf_all_accept_redirects rule
Product: Red Hat Enterprise Linux 7 Reporter: Matus Marhefka <mmarhefk>
Component: scap-security-guideAssignee: Vojtech Polasek <vpolasek>
Status: CLOSED WORKSFORME QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.9CC: ggasparb, matyc, mhaicman, wsato
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1929805 (view as bug list) Environment:
Last Closed: 2020-06-02 10:50:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1929805    

Description Matus Marhefka 2020-04-20 10:21:15 UTC
Description of problem:
Remediation of sysctl_net_ipv4_ip_forward rule breaks the sysctl_net_ipv4_conf_all_accept_redirects rule, this happens only when tested on "Server with GUI" installation.


Version-Release number of selected component (if applicable):
scap-security-guide-0.1.49-2.el7


How reproducible:
always


Steps to Reproduce:
1. Install RHEL-7.9 with "Server with GUI" package group
2. Scan of a machine after installation reports a failing rule - sysctl_net_ipv4_ip_forward
3. Fixing the rule (with `oscap xccdf eval --remediate --rule sysctl_net_ipv4_ip_forward`) makes the other rule to fail - sysctl_net_ipv4_conf_all_accept_redirects


Actual results:
Remediation of sysctl_net_ipv4_ip_forward rule breaks the sysctl_net_ipv4_conf_all_accept_redirects rule.


Expected results:
Remediation of sysctl_net_ipv4_ip_forward rule does not influence the result of sysctl_net_ipv4_conf_all_accept_redirects rule (maybe these rules cannot be selected in a profile together).

Comment 3 Matus Marhefka 2020-04-20 14:23:28 UTC
Forgot to add which profile this applies to, it is the OSPP.

Comment 15 Matus Marhefka 2020-05-21 14:45:21 UTC
This issue also affects CIS profile (when using "Server with GUI" package group).

Comment 16 Vojtech Polasek 2020-06-02 08:30:43 UTC
I was not able to reproduce the problem locally. I used the official profile kickstart and added the group to install "server with GUI". None of mentioned rules were failing after installation. So the only case where we managed to reproduce this problem were our tests in Beaker.

Comment 17 Marek Haicman 2020-06-02 10:50:30 UTC
We are very deep in the maintenance phase of RHEL7, so this issue, given it couldn't be reproduced in the wilds (see Comment 16) I am closing it as WORKSFORME.

Second point is - our profiles are not really meant to harden "Server with GUI" package set to the expected level of compliance. They are for non-GUI installations mainly. So the severity of a bug like this one is expected to be lower.