~alpine/users

5 5

SSH issue

Details
Message ID
<20261111095622.76a783a4@bonsai.doitto.me.uk>
DKIM signature
missing
Download raw message
One of the necessary conditions for the vulnerability is stated as:

"At least one local account has a $5$ or $6$ password hash."

Those do not look like any hash values that I have ever seen, and seem
unlikely to arise randomly, so I must assume that I do not understand
the advisory.

So, are those literal hash values, or do $5$ and $6$ represent
something more general that I do not recognise?

Cheers.
--
Jeffrey Walton <noloader@gmail.com>
Details
Message ID
<CAH8yC8=kmNidU1wD6xh_Ds2_xkFM7unNNkqhejfYm9nTq_tDLQ@mail.gmail.com>
In-Reply-To
<20261111095622.76a783a4@bonsai.doitto.me.uk> (view parent)
DKIM signature
missing
Download raw message
On Wed, Nov 11, 2026 at 4:56 AM Ian Smith <m4r35n357@gmx.co.uk> wrote:
>
> One of the necessary conditions for the vulnerability is stated as:
>
> "At least one local account has a $5$ or $6$ password hash."
>
> Those do not look like any hash values that I have ever seen, and seem
> unlikely to arise randomly, so I must assume that I do not understand
> the advisory.
>
> So, are those literal hash values, or do $5$ and $6$ represent
> something more general that I do not recognise?

$5$ means SHA-256, and $6$ means SHA-512.

Jeff
Matti Andreas Kähäri <andreas.kahari@abc.se>
Details
Message ID
<avQ_1dN3rjUFHtHG@eeyore.invalid>
In-Reply-To
<20261111095622.76a783a4@bonsai.doitto.me.uk> (view parent)
DKIM signature
missing
Download raw message
On Wed, Nov 11, 2026 at 09:56:22AM +0000, Ian Smith wrote:
> One of the necessary conditions for the vulnerability is stated as:
> 
> "At least one local account has a $5$ or $6$ password hash."
> 
> Those do not look like any hash values that I have ever seen, and seem
> unlikely to arise randomly, so I must assume that I do not understand
> the advisory.
> 
> So, are those literal hash values, or do $5$ and $6$ represent
> something more general that I do not recognise?
> 
> Cheers.
> -- 

The hashes ar documented in crypt(3) (see "man 3 crypt" after installing
the "man-pages" package on Alpine Linux):

	ID   Method
	─────────────────────────────────────────────────────────────────     
	1    MD5
	2a   Blowfish (not in mainline glibc; added in some Linux
	     distributions)
	5    SHA-256 (since glibc 2.7)
	6    SHA-512 (since glibc 2.7)

So, $5$ and $6$ indicates two different SHA hashing algorithms.

Cheers,
Andreas
Details
Message ID
<20261111103008.594062a9@bonsai.doitto.me.uk>
In-Reply-To
<avQ_1dN3rjUFHtHG@eeyore.invalid> (view parent)
DKIM signature
missing
Download raw message
Thanks guys, I wouldn't have worked that one out!  I'm a home
user, not a pro, so don't anyone panic ;)

Cheers, Ian
--
Details
Message ID
<avRYOHrnIx2l186_@inkjet.my.domain>
In-Reply-To
<20261111095622.76a783a4@bonsai.doitto.me.uk> (view parent)
DKIM signature
missing
Download raw message
This is about hash function used, not the actual hashed password.

From https://linuxize.com/post/etc-shadow-file/

  Encrypted Password: The hashed password in $type$salt$hash format. The $type prefix identifies the hashing algorithm:
    $1$ - MD5
    $2b$ - bcrypt
    $5$ - SHA-256
    $6$ - SHA-512
    $y$ - yescrypt (default on modern distributions such as Debian 13, Ubuntu 22.04+, and Fedora 35+) 

The best to you

On Wed, Nov 11, 2026 at 09:56:22AM +0000, Ian Smith wrote:
> One of the necessary conditions for the vulnerability is stated as:
> 
> "At least one local account has a $5$ or $6$ password hash."
> 
> Those do not look like any hash values that I have ever seen, and seem
> unlikely to arise randomly, so I must assume that I do not understand
> the advisory.
> 
> So, are those literal hash values, or do $5$ and $6$ represent
> something more general that I do not recognise?
> 
> Cheers.
> -- 
Details
Message ID
<CAOyb_EwTcGysHxyo6rLM0pcqyGi1QV=i-74K+QGrhq2eDtq9pQ@mail.gmail.com>
In-Reply-To
<20261111103008.594062a9@bonsai.doitto.me.uk> (view parent)
DKIM signature
missing
Download raw message
I don't like how he refers to the musl (I pronounce it like muscle - he
says moose-L; but)

https://youtu.be/ErB1SRcksDc
<https://youtu.be/ErB1SRcksDc?is=ZXl3pfqj-9Gcx6mi>

He talks about it and explains in simple ish detail

Hope this helps

On Wed, Nov 11, 2026 at 5:30 AM Ian Smith <m4r35n357@gmx.co.uk> wrote:

> Thanks guys, I wouldn't have worked that one out!  I'm a home
> user, not a pro, so don't anyone panic ;)
>
> Cheers, Ian
> --
>
Reply to thread Export thread (mbox)