This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2226501 - DISA STIG finding V-230486 requires disabling chrony 'cmdport' even if the port is only listening on 'lo' (::1 / 127.0.0.1)
Summary: DISA STIG finding V-230486 requires disabling chrony 'cmdport' even if the p...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-25 20:24 UTC by Juan Gamba
Modified: 2023-08-16 07:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 07:27:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-1310 0 None Migrated None 2023-08-15 21:16:37 UTC
Red Hat Issue Tracker RHELPLAN-163450 0 None None None 2023-07-25 20:25:37 UTC

Description Juan Gamba 2023-07-25 20:24:55 UTC
Description of problem:

DISA STIG finding V-230486 requires disabling chrony 'cmdport 0' even if the port is only listening on 'lo' (::1 / 127.0.0.1)
And this prevents local stats verification using 'chronyc' from an unprivileged user (for monitoring)

Version-Release number of selected component (if applicable):

How reproducible:

Always

Steps to Reproduce:

1. default chrony install
   # yum install chrony
   # systemctl start chronyd
2. with an unprivileged user: 
   $ chronyc sources
   $ chronyc delete <ntp_source_from_above>
3. add cmdport 0
   # echo "cmdport 0" >> /etc/chrony.conf
   # systemctl restart chronyd
4. with an unprivileged user again
   $ chronyc sources

Actual results:

2.   $ chronyc sources
     <source output>
     $ chronyc delete <ntp_source_from_above>
     501 Not authorised
  
4.   $ chronyc sources
     506 Cannot talk to daemon

Expected results:

The expected results is that the STIG verify the actual interface where the cmdport is listening to, in order to either pass or not the verification.
Maybe this is something to discuss with DISA

Additional info:

Unprivileged user contacting chronyd over port 323 via localhost interface cannot modify settings.


JGamba

Comment 2 RHEL Program Management 2023-08-15 14:56:56 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 3 RHEL Program Management 2023-08-16 07:27:41 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues.


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