Lurker News
Back to discussion

Comment by miroljub

miroljub4 replies#
That's because of the HN security. It prints all passwords as stars.

You can try putting your HN password in a comment, it would be visible only by you, and the others will not see it.

meepmorp1 reply#
hunter1
markx22 replies#
Close.

hunter2

meepmorp1 reply#
Wait, how did you see my password?

Continue this thread — 1 reply

theginger3 replies#
What? I just see stars

Continue this thread — 3 replies

notarget1371 reply#
How about ****** Did it work?
tomrod1 reply#
Oh wow, you kiss your mother with that mouth?
actionfromafar#
I use my fingers to type passwords and ehh...
bayindirh2 replies#
I guess you're right. My HN password is *****.

When I edit, I can see it, but when I save the comment, it becomes starred. It even randomizes the length every time I save.
Brilliant!

GTP4 replies#
But this also means that they know your plaintext password, meaning that they're saving passwords in plaintext. Given that this is mostly a technical community, it's much more the risk of keeping a database of plaintext passwords than the benefit of being able to obfuscate passwords in comments.

EDIT: thanks to another commenter, I understood that what's happening in the above comments is just a meme and HN isn't storing plaintext passwords. Sorry for the misunderstanding.

Volundr2 replies#
In case you're unclear why your being down voted, comment chain is a riff on one of the more famous bash.org quotes: https://knowyourmeme.com/memes/hunter2.

HN does not actually know your password or hide it in comments.

Continue this thread — 2 replies

svnt#
What actually happens is more complex: when you type a *******, HN tries to log in once for every string in your *******, and then when it succeeds it goes back and replaces that string with a randomized length of asterisks.
BuildTheRobots6 replies#
(sticking with the obliviousness for a moment,) Would they need to store the plaintext password? Hashing every word typed isn't efficient but it's possible to achieve without knowing the plaintext.

It reminds me of Facebook allowing login even when you've mistyped your password: https://security.stackexchange.com/questions/214814/why-can-...

Continue this thread — 6 replies

Tainnor#
I love that some 20-30 years after that famous chat somebody still fell for it.
asztal#
*****? That's amazing! I've got the same password on my luggage!
nirui1 reply#
This has to be a joke.

The only way it can be realistically implemented involves the storage of clear-text user password to enable string replacement during comment submission. Either that or converting user comment to a prefix/suffix table (or something similar) and then hash each item to search for a match. Both option is ridiculously unnecessary.
Anyway, my HN password is ****. I bet it don't work.

thomaslord1 reply#
Fortunately with modern serverless architecture, it's possible to make this performant! Just split up each comment into words and dispatch each word to a queue where AWS Lambda workers can check the words against the user's password hash. It might cost $20 to process each comment, but at least it'll autoscale to handle any comment volume you throw at it!
Affric#
Can passwords include spaces?