Cyber News
Com-Affiliated Hackers Exploit Vishing and MFA to Hijack Cloud Accounts and Steal Corporate Data
Vishing

Linux / Vulnerability

A critical authentication bypass vulnerability in OpenSSH, known as “ssh-hole,” allows remote attackers to log in to certain accounts configured without a valid password on affected Alpine Linux and other musl-based Linux systems.
The vulnerability occurs because of an interaction between OpenSSH password verification and the crypt() function in the musl C library. By submitting an oversized password between 257 and 1,024 bytes, an attacker can trigger a hashing failure that returns an asterisk (*). OpenSSH may then incorrectly match this result against an account whose password field is also *, allowing authentication to succeed.
The issue primarily affects systems where SSH password authentication is enabled, PAM is disabled, and specific account password configurations exist.
Key highlights:
Affected configurations can allow remote authentication without knowing the account password.
Alpine Linux's standard openssh-server package is built without PAM, with password authentication enabled by default.
OpenSSH released version 10.6p2 to address the vulnerability.
Alpine Linux published fixed packages across supported and older release branches.
Administrators should immediately disable SSH password authentication or install the relevant security updates.
No exploitation in the wild had been reported in the supplied articles.
The vulnerability, dubbed ssh-hole, was discovered by security researcher Özgün Kültekin.
It affects OpenSSH servers running on Linux distributions that use the musl C library, including Alpine Linux, OpenWrt, Buildroot, and Yocto, subject to specific authentication configurations.
The issue is not a conventional password brute-force vulnerability. Instead, it results from an authentication verification error that can cause an account configured to reject password authentication to accept a specially crafted oversized password.
The vulnerability is associated with an interaction between:
OpenSSH's password authentication implementation.
The musl C library's crypt() function.
Accounts whose password field contains * in /etc/shadow.
Linux accounts can be configured without a usable password by setting their password field to * in /etc/shadow. Normally, this prevents password-based authentication.
However, the interaction between OpenSSH and musl introduces an unexpected authentication result.
The attack works as follows:
An attacker identifies an account configured with * as its password field.
The attacker connects to the exposed SSH service and submits an oversized password between 257 and 1,024 bytes.
OpenSSH attempts to verify the submitted password using the system's crypt() function when PAM is not used.
The musl crypt() implementation rejects passwords exceeding its 256-byte limit and returns * to indicate a hashing failure.
OpenSSH compares the returned value against the account's stored password field.
Because both values are *, the authentication check can incorrectly succeed.
This allows an attacker to authenticate to an account that should not accept password-based logins.
The vulnerability does not bypass authentication for accounts with valid password hashes.
The issue is linked to an earlier OpenSSH code change introduced in 2016 to address CVE-2016-6210, a username enumeration vulnerability.
That change caused OpenSSH to perform password hashing even when an account did not have a usable password hash, helping reduce timing differences that could reveal whether a username existed.
Separately, musl's crypt() function was designed to return an unmatchable hash value rather than NULL when hashing fails. Its password-length restriction causes oversized password attempts to return *.
The combination of these behaviours creates the authentication bypass.
OpenSSH's 10.6p2 fix prevents a password match when the stored password field is shorter than four characters. OpenSSH describes this as a workaround, with the underlying issue involving behaviour outside OpenSSH itself.
According to the Alpine Linux advisory, a server is exposed when all four conditions are met:
It runs the openssh-server package built without PAM, or openssh-server-pam with UsePAM no.
SSH password authentication is enabled through PasswordAuthentication yes.
At least one account has * in its password field.
At least one other local account has a password hash beginning with $5$ or $6$.
The attacker also needs to know the username of an account configured without a password.
Alpine Linux installations may contain such accounts, including:
Key-only users created without setting a password.
Accounts configured using usermod -p '*'.
Certain directory-service users.
The root account in Alpine base images.
The alpine account in official cloud images built with tiny-cloud.
A particularly important risk concerns Alpine cloud images. Some tiny-cloud images provide the alpine user with passwordless doas privileges. If the account is exposed through this vulnerability, an attacker may be able to escalate privileges to root.
The supplied advisories identify several configurations that are not vulnerable:
Linux distributions using glibc, including Debian, Ubuntu, and Fedora.
Systems using PAM authentication for password verification.
Systems with PasswordAuthentication no.
Containers that do not run an SSH server.
Accounts whose password fields are locked using !.
Systems without another account containing a qualifying $5$ or $6$ password hash.
OpenWrt uses Dropbear by default, which the researcher says is not affected. However, OpenWrt installations using OpenSSH should be reviewed.
OpenSSH released version 10.6p2 to address the issue.
Alpine Linux also published fixed packages for its release branches. The supplied Alpine advisory identifies the following fixed point releases:
| Alpine release | Fixed version |
|---|---|
| 3.21 | 3.21.10 |
| 3.22 | 3.22.8 |
| 3.23 | 3.23.8 |
| 3.24 | 3.24.4 |
Fixed packages were also published for older branches from 3.16 through 3.21, although some of these branches are beyond their end-of-support period.
For Alpine Linux, administrators can update packages using:
apk upgrade -U -aAfter upgrading, restart the SSH service because installing the updated package does not automatically restart an already running sshd process:
rc-service sshd restartFor systems that cannot be updated immediately, administrators should disable password-based SSH authentication:
PasswordAuthentication noBefore applying this change, administrators should verify that SSH key-based authentication works and maintain the existing session until a new login succeeds.
Validate the SSH configuration:
sshd -tConfirm the effective password authentication setting:
sshd -T | grep -i passwordauthenticationThe expected output is:
passwordauthentication noThe supplied articles do not provide malicious IP addresses, domains, file hashes, or attacker infrastructure. The following are technical indicators and investigation pivots associated with the vulnerability, not confirmed malicious IOCs.
| Indicator | Value / Description |
|---|---|
| Vulnerability name | ssh-hole |
| Affected service | OpenSSH sshd |
| Affected library | musl C library |
| Password length | 257–1,024 bytes |
| Relevant password field | * in /etc/shadow |
| Relevant password hashes | $5$ and $6$ |
| Fixed OpenSSH version | 10.6p2 |
| Affected configuration | PasswordAuthentication yes, PAM disabled |
Related vulnerability: CVE-2016-6210 is referenced in the technical explanation as the earlier OpenSSH username-enumeration issue associated with the code change involved in this vulnerability. It is not the identifier for ssh-hole itself.
The supplied articles state that no CVE identifier had been assigned to ssh-hole at the time of publication.
SOC teams should prioritize identifying exposed SSH servers, reviewing authentication configurations, and investigating successful password logins to accounts that should not support password authentication.
Identify Linux hosts running OpenSSH on musl-based distributions, particularly Alpine Linux.
Review:
Linux distribution and release version.
Installed OpenSSH package and version.
Whether the SSH service is running.
Whether PAM is enabled for SSH authentication.
Check the effective SSH configuration:
sshd -T | grep -iE 'passwordauthentication|usepam|permitrootlogin'Investigate systems where:
passwordauthentication yes is enabled.
PAM is disabled.
Accounts without valid password hashes exist.
On Alpine Linux, inspect SSH authentication logs for successful password-based logins:
grep "Accepted password" /var/log/messagesPay particular attention to successful password logins involving accounts that should not allow password authentication, such as alpine, root, or key-only users.
A successful password login for an account with * in its password field is suspicious and warrants immediate investigation.
Inspect the relevant account entry in /etc/shadow:
grep '^alpine:' /etc/shadowIf the password field contains *, but SSH logs show a successful password login for that account, investigate possible exploitation.
Review:
doas activity and privilege escalation events.
Recently created or modified user accounts.
Changes to authorized_keys files.
Unexpected SSH sessions.
Suspicious commands executed after authentication.
Changes to SSH configuration files.
Correlate successful SSH logins with subsequent privileged activity to determine whether an attacker obtained elevated access.
Patch OpenSSH immediately: Upgrade to OpenSSH 10.6p2 or the appropriate fixed distribution package.
Disable password authentication: Set PasswordAuthentication no where SSH key-based authentication is supported.
Restart SSH: Ensure the updated sshd process is running after package installation.
Review Alpine cloud images: Pay particular attention to tiny-cloud images and the alpine account.
Inspect /etc/shadow: Identify accounts with * password fields and determine whether they meet the exposure conditions.
Restrict SSH access: Limit SSH connectivity to trusted networks, VPNs, or approved administrative IP addresses.
Review authentication logs: Investigate successful password logins involving accounts that should not support password authentication.
Investigate privilege escalation: Review doas usage and other privileged activity following suspicious SSH sessions.
Treat suspicious systems as potentially compromised: If unauthorized authentication cannot be ruled out, initiate incident response, rotate affected credentials, and investigate persistence.
SOC Recommendation: Prioritize Alpine Linux servers exposed to the internet, especially systems using the standard OpenSSH package with password authentication enabled. A successful password login to an account configured with * in /etc/shadow should be treated as a high-priority security incident.
Continue reading
Cyber News
Vishing

Cyber News
Identity Theft and Data Extortion

Cyber News
Credentials Compromise

3 entries, most recent posts.
Vishing

Identity Theft and Data Extortion

AI-Assisted Autonomous Intrusions
