News for hackers. Stuff that matters.
Re:Tell HN: Bash.org Is No More by Scarblac on Thursday January 11, 2024 @07:25AM (#38951296)
Almost, the password is ********.
Re:Tell HN: Bash.org Is No More by bayindirh on Thursday January 11, 2024 @07:28AM (#38951319)
I can't read it. pfft
Re:Tell HN: Bash.org Is No More by miroljub on Thursday January 11, 2024 @07:51AM (#38951553)
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.

Re:Tell HN: Bash.org Is No More by bayindirh on Thursday January 11, 2024 @08:11AM (#38951756)
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!

Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @09:11AM (#38952364)
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.

Re:Tell HN: Bash.org Is No More by Volundr on Thursday January 11, 2024 @09:27AM (#38952590)
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.

Re:Tell HN: Bash.org Is No More by mewpmewp2 on Thursday January 11, 2024 @11:28AM (#38954417)
> HN does not actually know your password or hide it in comments.

Does it not know? What if I post it in this comment? My password is *****.

Re:Tell HN: Bash.org Is No More by Duanemclemore on Thursday January 11, 2024 @11:17AM (#38954247)
(whistles softly as he changes password from a string of twelve asterisks to ******)
Re:Tell HN: Bash.org Is No More by BuildTheRobots on Thursday January 11, 2024 @09:50AM (#38952896)
(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-...

Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @10:20AM (#38953374)
Yes, that's true. But since HN is famously hosted on a single not-so-powerful server, that would be unlikely to be the employed solution.
Re:Tell HN: Bash.org Is No More by BuildTheRobots on Thursday January 11, 2024 @10:38AM (#38953664)
Considering how laggy the comment box is on reddit, it makes me wonder if they're not already doing something similar, but client-side in js. I guess it would expose the salt though.
Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @11:45AM (#38954699)
Exposing the salt isn't an issue, it can (and should) even be a different one for each account.
Re:Tell HN: Bash.org Is No More by latexr on Thursday January 11, 2024 @01:08PM (#38956129)
> Hashing every word typed

Wouldn’t work if your password contains spaces.

Re:Tell HN: Bash.org Is No More by KETHERCORTEX on Thursday January 11, 2024 @04:24PM (#38959306)
They just hash every substring that can be a password.

Don't write long comments. Show some love to HN's server carrying its O(n^2) burden.

Re:Tell HN: Bash.org Is No More by bbarnett on Thursday January 11, 2024 @01:38PM (#38956637)
But it does! They, instead, hash each letter independently, that's how they can do this.
Re:Tell HN: Bash.org Is No More by svnt on Thursday January 11, 2024 @09:49AM (#38952875)
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.
Re:Tell HN: Bash.org Is No More by Tainnor on Thursday January 11, 2024 @10:36AM (#38953619)
I love that some 20-30 years after that famous chat somebody still fell for it.
Re:Tell HN: Bash.org Is No More by asztal on Thursday January 11, 2024 @05:34PM (#38960378)
*****? That's amazing! I've got the same password on my luggage!
Re:Tell HN: Bash.org Is No More by notarget137 on Thursday January 11, 2024 @07:57AM (#38951622)
How about ****** Did it work?
Re:Tell HN: Bash.org Is No More by tomrod on Thursday January 11, 2024 @08:34AM (#38951974)
Oh wow, you kiss your mother with that mouth?
Re:Tell HN: Bash.org Is No More by actionfromafar on Thursday January 11, 2024 @04:45PM (#38959628)
I use my fingers to type passwords and ehh...
Re:Tell HN: Bash.org Is No More by meepmorp on Thursday January 11, 2024 @07:57AM (#38951611)
hunter1
Re:Tell HN: Bash.org Is No More by markx2 on Thursday January 11, 2024 @08:07AM (#38951724)
Close.

hunter2

Re:Tell HN: Bash.org Is No More by meepmorp on Thursday January 11, 2024 @08:26AM (#38951904)
Wait, how did you see my password?
Re:Tell HN: Bash.org Is No More by test1235 on Thursday January 11, 2024 @08:41AM (#38952042)
we see it as asterisks ... you see it as hunter2 and not **** 'cos it's your password
Re:Tell HN: Bash.org Is No More by theginger on Thursday January 11, 2024 @10:37AM (#38953645)
What? I just see stars
Re:Tell HN: Bash.org Is No More by CoastalCoder on Thursday January 11, 2024 @11:30AM (#38954448)
Get to a doctor!
Re:Tell HN: Bash.org Is No More by pigeons on Thursday January 11, 2024 @05:47PM (#38960563)
What? I just see stars

Have you seen a doctor?

No, just stars

Re:Tell HN: Bash.org Is No More by dllthomas on Thursday January 11, 2024 @01:36PM (#38956596)
Ready when you are, Raul.
Re:Tell HN: Bash.org Is No More by nirui on Thursday January 11, 2024 @10:44AM (#38953752)
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.

Re:Tell HN: Bash.org Is No More by thomaslord on Thursday January 11, 2024 @11:23AM (#38954342)
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!
Re:Tell HN: Bash.org Is No More by Affric on Thursday January 11, 2024 @04:21PM (#38959261)
Can passwords include spaces?
Re:Tell HN: Bash.org Is No More by zellyn on Thursday January 11, 2024 @09:44AM (#38952813)
I love each and every one of you who have posted into this subtree, although it's bittersweet if bash.org really is going away… <3

https://archive.is/0y1yT is the archive of http://www.bash.org/?244321

Re:Tell HN: Bash.org Is No More by romwell on Thursday January 11, 2024 @01:18PM (#38956287)
FIY, your archive link is not working too at the moment.

What do we do?

Sigh

I put on my robe and wizard hat

https://web.archive.org/web/20190228221758/http://www.bash.o...

Re:Tell HN: Bash.org Is No More by RainaRelanah on Thursday January 11, 2024 @04:27PM (#38959337)
Works for me. Do note that archive.is blocks CloudFlare DNS.
Re:Tell HN: Bash.org Is No More by philsnow on Thursday January 11, 2024 @05:46PM (#38960538)
This has bitten me before; now my pihole has this line in its dnsmasq configuration

      server=/archive.is/archive.ph/8.8.8.8
so that even if I'm using cloudflare dns for everything else, it will query 8.8.8.8 for those two domains
Re:Tell HN: Bash.org Is No More by qingcharles on Thursday January 11, 2024 @10:42PM (#38963400)
This hack needs to be pinned to the front of HN :)
Re:Tell HN: Bash.org Is No More by more_corn on Saturday January 13, 2024 @11:37PM (#38987527)
Seriously. I’ve been hitting this for months.
Re:Tell HN: Bash.org Is No More by RainaRelanah on Wednesday January 17, 2024 @12:48AM (#39023751)
Gonna go out on a limb and agree with the archive.is owner -- the reason he blocks it is bc cloudflare intentionally doesn't support edns client subnet. They cite privacy reasons, but it comes at the at the cost of performance -- most cdns use DNS based routing, so using cloudflare DNS means you connect to random server for a lot of websites. CloudFlare on the other hand uses anycast routing for their CDN, so they don't suffer at all.

I hate Google but my pihole is configured to use their DNS resolvers. Lesser of two evils.

Re:Tell HN: Bash.org Is No More by error503 on Wednesday January 17, 2024 @11:16AM (#39029710)
It shouldn't be that bad, CloudFlare's anycast should direct you to a nearby resolver, and doing your GeoDNS on that resolver IP instead of ECS is probably not that much worse than doing it on the actual client IP. Both approaches aren't great at picking an ideal CDN node, GeoIP is notoriously unreliable, and it tells you nothing about network topology.

Breaking DNS entirely is much worse behaviour, especially because GeoDNS itself is arguably not in the spirit of DNS which is distributing a consistent database, not making it up on the fly based on the client's info. The archive.is admin is being ridiculous, the least they could do is block anyone not using a resolver supporting ECS to be consistent, but no they have something personal against Cloudflare.

Re:Tell HN: Bash.org Is No More by romwell on Thursday January 11, 2024 @05:38PM (#38960424)
Works for me now too, probably the server was not handling the load.
Re:Tell HN: Bash.org Is No More by imgabe on Thursday January 11, 2024 @10:12AM (#38953237)
Hey, how did you get my Hacker News password?
Re:Tell HN: Bash.org Is No More by CoastalCoder on Thursday January 11, 2024 @11:28AM (#38954418)
> Hey, how did you get my Hacker News password?

Relax, they didn't. Your password is 3 characters longer.

Re:Tell HN: Bash.org Is No More by hunter2_ on Thursday January 11, 2024 @11:51AM (#38954803)
Indeed, over the years a symbol gets added for length/complexity/rotation purposes.
Re:Tell HN: Bash.org Is No More by opello on Thursday January 11, 2024 @05:43PM (#38960487)
chef's kiss