Bug 53163 - The univention-ssh check should use the ucrv sshd/port instead of using port 22 in code
The univention-ssh check should use the ucrv sshd/port instead of using port ...
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-26 16:44 CEST by Christina Scheinig
Modified: 2022-10-19 14:51 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021030421000766
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2021-04-26 16:44:49 CEST
In a customer environment the univention-ssh check fails because the port is not set to 22. 
[Errno None] Unable to connect to port 22 on 192.168.0.1


We should use the ucrv for the port and not use port 22 in code directly
Comment 1 Florian Best univentionstaff 2022-01-28 17:24:49 CET
hmm, I don't think we can use the UCR variable `sshd/port` because that specifies the ssh port of the local system and not the ssh port of all systems in the domain.
Unfortunately the ssh port is also not part of the LDAP object of the computer.
If we would change it then all other hosts in the domain would fail which use 22 as port.

So we can't do anything here?!
Comment 2 Rahammetoela Toekiman 2022-10-19 14:51:19 CEST
could we perhaps have the self check uce `sshd/port`?

as it stands it feels like univention is reccomending to leave the ssh port to a standard port, this is a security vulnerability if the univention server is exposed to the internet