I heard, that it would be possible to get man-in-the-middle-attacked this way, but the details are not clear to me.
Is it dangerous to use ports above 1024 for things like SSL? And why?
Information Security Stack Exchange is a question and answer site for information security professionals. It only takes a minute to sign up.
Sign up to join this communityI think you are mixing up two things:
Especially for SSH, the use of a port above 1024 is no problem at all.
This is because on the one hand, that one jeopardizes only the client, which is the site that is usually hardly worthy of protection, and, on the other hand, there are the SSH host keys for such scenarios. These are only readable by root. Therefore, without root access, it is not possible to impersonate an SSH server that does not warn the client about wrong host keys.