ssh: unprivileged users may hijack due to backdated ssh version open port found(███.unikrn.com)
The report claims that an outdated OpenSSH version is exposed, which could allow local users to gain root access and remote users to compromise the daemon. It also mentions session hijacking, remote file inclusion, and brute force attacks as possible consequences.
Originally disclosed on HackerOne
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 19 months
Summary: Vulnerabilities in OpenSSH Session Hijacking Vulnerability is a Medium risk vulnerability that is one of the most frequently found on networks around the world. This issue has been around since at least 1990 but has proven either difficult to detect, difficult to resolve or prone to being overlooked entirely.
Description: You are running a version of OpenSSH which is older.
Versions prior than 7.5 or above are vulnerable to an off by one error that allows local users to gain root access, and it may be possible for remote users to similarly compromise the daemon for remote access.
In addition, a vulnerable SSH client may be compromised by connecting to a malicious SSH daemon that exploits this vulnerability in the client code, thus compromising the client system.An attacker may use this flaw to set up a brute force attack against the remote host.
- Session Hijacking
2.Remote file inclusion(high) 3.Brute force attack
Steps To Reproduce:
Solution : Upgrade to OpenSSH 7.5 or apply the patch for prior versions. (See: https://www.openssh.org)
Context
The target is auctionbot.unikrn.com, a host in the Unikrn bug bounty programme on HackerOne. The report is titled "ssh: unprivileged users may hijack due to backdated ssh version open port found", and the researcher is walidhossain_. The weakness recorded for the report is Remote File Inclusion, the severity is low, and the bounty paid was 25.00 USD. The report was disclosed on 2019-03-04.
The report itself is short and is framed around the SSH service exposed on the host rather than around a web feature. It describes an outdated OpenSSH installation and the classes of attack that the researcher associates with it: session hijacking, remote file inclusion and brute force.
Setup
The report does not describe any accounts, roles, tooling or preparatory steps. The only precondition it states is the one in the description: the host is running a version of OpenSSH that is older than the fixed release.
Finding it
The report states that an SSH port was found open on the host and that the OpenSSH version is outdated. The summary characterises the issue as a session hijacking vulnerability, describing it as a medium risk issue that is frequently found on networks and has existed since at least 1990, while being difficult to detect, difficult to resolve or prone to being overlooked.
The report does not include the banner text, the exact version string, a port number or any scan output, so the specific evidence behind the version claim is not shown.
Exploitation
The report lists three attack types it associates with the outdated version:
- Session Hijacking
- Remote file inclusion (high)
- Brute force attack
It does not provide a reproduction sequence for any of them. The "Steps To Reproduce" heading is present but no steps follow it, and there are no requests, commands or responses in the report. What follows is the reasoning the description gives for why the version matters.
Version condition
The description states that versions prior to 7.5 are vulnerable to an off by one error that allows local users to gain root access, and that it may be possible for remote users to similarly compromise the daemon for remote access.
Client-side exposure
The description adds that a vulnerable SSH client may be compromised by connecting to a malicious SSH daemon that exploits the vulnerability in the client code, thereby compromising the client system.
Brute force
The description states that an attacker may use this flaw to set up a brute force attack against the remote host.
Root cause
The report attributes the exposure to running an outdated OpenSSH version, specifically one older than 7.5, which it says carries an off by one error. It does not identify the affected code path, the patch or the advisory beyond pointing to the OpenSSH site. The report does not explain how the three listed attack types relate to that error, so the link between them and the off by one condition is asserted rather than demonstrated.
Impact
According to the report, the consequences depend on the role of the affected party:
| Affected party | Stated consequence |
|---|---|
| Local users on the host | May gain root access through the off by one error |
| Remote users | May similarly compromise the daemon for remote access |
| SSH clients | May be compromised by connecting to a malicious SSH daemon that exploits the client code |
| The remote host | May be subjected to a brute force attack |
Fix
The solution given in the report is to upgrade to OpenSSH 7.5 or to apply the patch for prior versions, with a reference to https://www.openssh.org.
Variants to test
Each of these follows from the report's own framing and can be checked on other targets:
- Outdated SSH banner. Connect to the SSH port and read the version string. A positive result is a banner advertising an OpenSSH release older than 7.5.
- Exposed SSH on application hosts. Check hosts that front web applications, such as the auction bot host here, for an SSH port that is reachable from the internet. A positive result is a successful banner read from outside the expected network.
- Client-side exposure. Where the programme scope covers staff or build infrastructure, consider whether SSH clients connect to untrusted daemons. A positive result would be a client version in the affected range, though the report gives no method for confirming exploitation.
- Brute force exposure. Check whether the SSH service permits password authentication and lacks rate limiting or lockout. A positive result is repeated authentication attempts being accepted without throttling.
Hunting notes
This kind of finding sits in recon rather than in application logic: an SSH port reachable on a host that is otherwise a web asset, with a banner that dates the build. The signal is the outdated OpenSSH version, which the report says is present on the host.
What happened, in plain words
A security researcher looked at a host belonging to Unikrn, a company with a bug bounty programme on HackerOne. The host was auctionbot.unikrn.com. A bug bounty programme is a public offer from a company: if you find a security problem in our systems and report it responsibly, we may pay you a reward (the bounty) and, after a while, publish your report so others can learn from it.
The researcher found that this host had an SSH port open, and that the SSH software was an old version. SSH, short for Secure Shell, is the standard way to log in to a computer remotely and get a text command line on it. Think of it as a locked service entrance at the back of a building: it is meant for administrators, not visitors, and it should be kept locked and up to date.
The report is short. It says the OpenSSH version is outdated, lists three kinds of attack it associates with that, and gives a fix: upgrade to OpenSSH 7.5 or apply the patch. It does not show the version text it saw, a port number, a scan output, or any step that actually demonstrates an attack. The platform recorded the weakness as Remote File Inclusion, the severity as low, and the bounty as 25.00 USD. The report was disclosed on 2019-03-04.
Context
The target is auctionbot.unikrn.com, a host in the Unikrn bug bounty programme on HackerOne. The report is titled "ssh: unprivileged users may hijack due to backdated ssh version open port found", and the researcher is walidhossain_. The weakness recorded for the report is Remote File Inclusion, the severity is low, and the bounty paid was 25.00 USD. The report was disclosed on 2019-03-04.
The report itself is short and is framed around the SSH service exposed on the host rather than around a web feature. It describes an outdated OpenSSH installation and the classes of attack that the researcher associates with it: session hijacking, remote file inclusion and brute force.
A few of those words deserve a plain explanation before we go further.
- OpenSSH is the most common free implementation of the SSH protocol. When people say "the SSH server", they usually mean OpenSSH's server program,
sshd. - A port is a numbered channel on a computer. One machine can run many services at once, and each listens on its own number. Web traffic normally uses port 80 or 443; SSH normally uses port 22. If a port is "open", it means something on the machine answers when you knock.
- A version banner is a short greeting a service sends before you log in. SSH servers announce something like their product name and version number. It is like a shop sign above the door: it tells you what is inside without letting you in.
- Backdated simply means old: the version on the host was older than the current one.
- Session hijacking means taking over someone else's already-established connection, so you act as them without knowing their password. Imagine someone walking into a phone call that is already in progress and speaking as one of the parties.
- Remote file inclusion is a web application flaw where an attacker makes the server load a file from somewhere the attacker controls. It is listed in this report, but the report does not tie it to any web feature on the host.
- Brute force means guessing: trying many passwords or keys in a row until one works, usually with software doing the trying.
Setup
The report does not describe any accounts, roles, tooling or preparatory steps. The only precondition it states is the one in the description: the host is running a version of OpenSSH that is older than the fixed release.
In other words, there is no recipe to follow here. The researcher did not write down which program they used to look at the host, which credentials they had (probably none), or what they did first. The single condition the report cares about is the age of the SSH software.
Finding it
The report states that an SSH port was found open on the host and that the OpenSSH version is outdated. The summary characterises the issue as a session hijacking vulnerability, describing it as a medium risk issue that is frequently found on networks and has existed since at least 1990, while being difficult to detect, difficult to resolve or prone to being overlooked.
The report does not include the banner text, the exact version string, a port number or any scan output, so the specific evidence behind the version claim is not shown.
What does "finding an open port" look like in practice? You send a connection attempt to a machine and see whether anything answers.
Exploitation
The report lists three attack types it associates with the outdated version:
- Session Hijacking
- Remote file inclusion (high)
- Brute force attack
It does not provide a reproduction sequence for any of them. The "Steps To Reproduce" heading is present but no steps follow it, and there are no requests, commands or responses in the report. What follows is the reasoning the description gives for why the version matters.
This is worth pausing on. A reproduction sequence is the part of a report that lets someone else repeat the finding: do this, send that, observe this result. Here the heading exists but the section under it is empty. So the three items above are claims about what an old version could allow, not demonstrations of something that was done on this host.
Version condition
The description states that versions prior to 7.5 are vulnerable to an off by one error that allows local users to gain root access, and that it may be possible for remote users to similarly compromise the daemon for remote access.
Two terms in that sentence need unpacking.
- Off by one error is a classic programming mistake where a loop or a count is wrong by exactly one step: it reads or writes one item too many, or one too few. In memory handling this can mean touching a byte just outside the intended area, which is how such small mistakes sometimes turn into serious ones.
- Root access means the highest level of permission on a Linux or Unix machine, the administrator of all administrators. A local user is someone who already has some kind of login on the machine, even a limited one. The daemon is the background program providing the service, here the SSH server itself.
So the report's claim is: on versions before 7.5, that one-step mistake could let someone who already has a small foothold on the machine escalate to full control, and possibly let someone from outside compromise the SSH service too. Note the hedging: "may be possible".
Client-side exposure
The description adds that a vulnerable SSH client may be compromised by connecting to a malicious SSH daemon that exploits the vulnerability in the client code, thereby compromising the client system.
This flips the direction. Normally we worry about the server being attacked. Here the report points out that the program you use to connect (the client) also contains code, and if that code has the same flaw, a hostile server could exploit the person connecting to it. The everyday comparison: you would not expect to be robbed by the shop you walk into, but if the door frame is rigged, walking through it is enough.
Brute force
The description states that an attacker may use this flaw to set up a brute force attack against the remote host.
Again, this is stated as a possibility, not shown.
Root cause
The report attributes the exposure to running an outdated OpenSSH version, specifically one older than 7.5, which it says carries an off by one error. It does not identify the affected code path, the patch or the advisory beyond pointing to the OpenSSH site.
In plain terms: the root cause, the underlying reason the problem exists, is "old software". The report does not go deeper than that. It points only at the project's website.
Impact
According to the report, the consequences depend on the role of the affected party:
| Affected party | Stated consequence |
|---|---|
| Local users on the host | May gain root access through the off by one error |
| Remote users | May similarly compromise the daemon for remote access |
| SSH clients | May be compromised by connecting to a malicious SSH daemon that exploits the client code |
| The remote host | May be subjected to a brute force attack |
That last point matters for a beginner reading this: a table of possible consequences is not the same as a list of things that happened. The recorded severity was low and the bounty was 25.00 USD, which fits a report about an outdated version being visible, rather than a report about a break-in that was carried out.
Fix
The solution given in the report is to upgrade to OpenSSH 7.5 or to apply the patch for prior versions, with a reference to https://www.openssh.org.
Why does upgrading help? Because the newer release contains the corrected code, so the off by one mistake is no longer present. A patch is the same idea in smaller form: a targeted change you apply to an older installation instead of replacing the whole thing.
Variants to test
Each of these follows from the report's own framing and can be checked on other targets:
- Outdated SSH banner. Connect to the SSH port and read the version string. A positive result is a banner advertising an OpenSSH release older than 7.5.
- Exposed SSH on application hosts. Check hosts that front web applications, such as the auction bot host here, for an SSH port that is reachable from the internet. A positive result is a successful banner read from outside the expected network.
- Client-side exposure. Where the programme scope covers staff or build infrastructure, consider whether SSH clients connect to untrusted daemons. A positive result would be a client version in the affected range, though the report gives no method for confirming exploitation.
- Brute force exposure. Check whether the SSH service permits password authentication and lacks rate limiting or lockout. A positive result is repeated authentication attempts being accepted without throttling.
A note on the second item: an "application host" is a machine that runs a web application, here the auction bot. Such a machine may also carry an administrative SSH entrance. If that entrance is reachable from the whole internet rather than from an internal network, it is exposed to everyone, not just staff. Rate limiting means slowing down or blocking repeated attempts; lockout means disabling an account after too many failures. Both are defences against guessing.
Hunting notes
This kind of finding sits in recon rather than in application logic: an SSH port reachable on a host that is otherwise a web asset, with a banner that dates the build. The signal is the outdated OpenSSH version, which the report says is present on the host.
Recon, short for reconnaissance, is the looking-around phase: mapping what exists before trying anything clever. Here the whole finding comes from that phase. What the report does not contain is the next step, the one that would turn "this software is old" into "and here is what that let me do".
Glossary
- Bug bounty programme: a company's public offer to pay researchers who report security problems responsibly.
- Bounty: the reward paid for an accepted report.
- HackerOne: the platform where the programme and the report were hosted.
- Host: a single machine on a network, identified here by a name such as
auctionbot.unikrn.com. - SSH (Secure Shell): a protocol for logging in to a remote computer and getting a text command line, encrypted.
- OpenSSH: the most widely used free implementation of SSH, both server and client.
- Daemon: a program that runs in the background providing a service, such as the SSH server.
- Port: a numbered channel on a machine that a service listens on; SSH conventionally uses 22.
- Open port: a port where something answers connection attempts.
- Banner: the short greeting a service sends before authentication, often naming the product and version.
- Version string: the exact text identifying a software release.
- Backdated: older than the current release.
- Session hijacking: taking over an already-established connection so you act as another party.
- Remote file inclusion: a web flaw where the server is made to load a file from a location the attacker controls.
- Brute force attack: trying many passwords or keys in sequence until one succeeds.
- Off by one error: a programming mistake where a count or loop is wrong by exactly one step, sometimes touching memory outside the intended area.
- Root access: the highest permission level on a Linux or Unix system, able to do anything.
- Local user: someone with some level of login on the machine, even a limited one.
- Remote user: someone connecting from outside the machine over the network.
- Client: the program used to connect to a service, as opposed to the server providing it.
- Patch: a targeted code change applied to fix a flaw in an existing installation.
- Severity: the rating of how serious a finding is, here low.
- CVSS: a standard scoring system for severity; no score is recorded for this report.
- Rate limiting: slowing or blocking repeated attempts to prevent guessing.
- Lockout: disabling an account after too many failed login attempts.
- Recon (reconnaissance): the information-gathering phase of security testing, mapping what exists before attacking.
- Version disclosure: revealing which software version is running, without demonstrating an exploit against it.