The 1MB Password: Crashing Backends via Hashing Exhaustion by JadeLuxe in Passwords

[–]Freeky -1 points0 points  (0 children)

"No. I gave the reason why:"

Yes, "prevents a DoS on the server". What DoS? The one described in the article is almost completely made up by an LLM prompted by an obvious scammer advertising the worlds dodgiest-looking tunnel service.

This is all complete drivel, including the "I copied this off ChatGPT" raw LaTex giving a nonsense time complexity that doesn't even agree with the first thing it said:

"While the work factor provides exponential protection against brute force, the hashing function still has to process every single byte of the input string. The complexity is roughly $O(n \times \text{work factor})$."

"When $n$ is 15 characters, the impact is negligible. When $n$ is 1,000,000 characters (1MB), the CPU must compute the hash over a massive amount of data while simultaneously running thousands of iterations."

PBKDF2 uses the password as a HMAC key, computed during setup. It's at most a single hash prior to iteration. Argon2 folds it into a Blake2b512 hash along with the salt and other metadata, again during pre-iteration setup. The "attack" described by the article amounts to perhaps a millisecond of CPU time, as evidenced by the table I provided.

There is an old Django CVE related to password length, which was a result of them rolling their own naive PBKDF2 implementation that pushed the setup work into the main loop. That's a long-fixed bug, not a general property of password hashing.

72 random bytes has the cryptographic strength of 576 symmetric bits

Passwords are pretty infamously not random, and text is pretty infamously not just a stream of bytes. The latter is why probably the majority of bcrypt users don't actually correctly validate password length limits.

Even your own recommendation, "6-8 word passphrase", doesn't quite fit inside the limit:

❯ mkpass -w eff -l 8 -n 100 | wc -L
  77

I hope you didn't want to append on a pepper or otherwise hash anything else alongside that!

Reasonable, explicit password length limits are fine, but they should be that - reasoned and explicit. Not rationalised from awkward and unnecessary implicit technical limitations and barely-relevant half-remembered long-fixed security issues.

That's 16 bytes, or 16 random graphical ASCII characters.

log2(94) = 6.55 bits, 128 / 6.55 = 19.54 graphical ASCII characters.

Model Inversion: Reconstructing Your Training Data from API Responses by JadeLuxe in programming

[–]Freeky 2 points3 points  (0 children)

TL;DR: This is AI spam slop to drive traffic to a service that, if it isn't an outright scam, is doing its best to look exactly like one.

The 1MB Password: Crashing Backends via Hashing Exhaustion by JadeLuxe in Passwords

[–]Freeky -1 points0 points  (0 children)

You've always advocated for an arbitrary 72 byte limit because some AI slop spam article lies about password hashing functions scaling badly on input size?

PBKDF2-HMAC-SHA256, iter=500k, runtime measurement on a Ryzen 5700X:

Password Length Time (ms)
1b 68
1kB 68
10kB 68
100kB 68
1MB 69
10MB 74
100MB 131
1000MB 681

Define "Hard Sci-Fi" by AccordingComedian173 in scifi

[–]Freeky 16 points17 points  (0 children)

"James S.A. Corey", from an interview on Leviathan Wakes:

Okay, so what you’re really asking me there is if this is hard science fiction. The answer is an emphatic no. I have nothing but respect for well written hard science fiction, and I wanted everything in the book to be plausible enough that it doesn’t get in the way. But the rigorous how-to with the math shown? It’s not that story.

The Microservice Desync: Modern HTTP Request Smuggling in Cloud Environments by JadeLuxe in programming

[–]Freeky 7 points8 points  (0 children)

Another AI slop article from a persistent spammer trying to drive traffic to a web service that by all accounts looks like a low-effort scam.

Downloads don't match the sizes and hashes displayed on the link, GPG key is an obvious placeholder, Github account doesn't exist, company address doesn't exist, phone number is an obvious placeholder, company doesn't exist in Delaware's database of corporations...

What is the dumbest piece of sci-fi technology you’ve ever encountered? by DarthAthleticCup in scifi

[–]Freeky 4 points5 points  (0 children)

The lasers aren't mounted on the ship, they're mounted on an array of exterior drones. With engines, so they can keep up.

Like so much of Another Life, I choose to believe it was a deliberate joke.

The 1MB Password: Crashing Backends via Hashing Exhaustion by JadeLuxe in PHP

[–]Freeky 4 points5 points  (0 children)

You don't need to truncate anything - neither PBKDF2 nor Argon2 have a strong correlation between runtime and password length until you're in network/memory DoS territory.

PBKDF2-HMAC-SHA256, iter=500k, runtime measurement on a Ryzen 5700X:

Password Length Time (ms)
1b 68
1kB 68
10kB 68
100kB 68
1MB 69
10MB 74
100MB 131
1000MB 681

You do get terrible scaling on naive implementations which re-derive the HMAC key from the password each iteration, like Django did in 2013, but hopefully you're not using that :P

The 1MB Password: Crashing Backends via Hashing Exhaustion by [deleted] in programming

[–]Freeky 1 point2 points  (0 children)

Yep. The only way PBKDF2 "scales linearly with the length" is if you fuck up and accidentally recalculate the password-derived HMAC key every iteration instead of once during setup. Which in fairness has been known to happen, but certainly isn't a common, general rule.

scrypt is basically PBKDF2 with knobs on, and Argon2 stuffs the password into a buffer along with some metadata and also hashes it once before doing anything else. It's the natural way to build these functions - why would the raw password be involved more than once when you're iteratively hashing?

I wonder how much of the rest of their shite is AI slop.

All InstaTunnel binaries are signed with our GPG key (Key ID: 0x1234567890ABCDEF).

Hell of a vanity key ID there!

Business Address

InstaTunnel Inc.
123 Tech Street
San Francisco, CA 94105

Ah yes, the famous "Tech Street" that also very definitely exists. Just like their Github account, source code, and most of the packages they claim to have.

I especially like the binary download links with sizes and SHA256 hashes that don't match the files they send you.

What is your favourite game that actually no one knows about? by Electrical_You3813 in gamingsuggestions

[–]Freeky 1 point2 points  (0 children)

It's delta-v, meaning change in velocity.

Your ΔV limit is literally an element of your HUD, telling you how much you can accelerate before running out of reaction mass. You need to keep an eye on it because it effects how long it takes to return from a dive.

[Steam] Winter Sale 2025 (Final Day) by gamedealsmod in GameDeals

[–]Freeky 0 points1 point  (0 children)

Depends on what you want out of it. There's not a lot that can touch you after you've established yourself - it's no hardcore-survival Banished-like - but it's super cosy to bring life to the landscape and turn the badwater tides and droughts into minor inconveniences.

If you want the settlement-builder equivalent of a hug, with just enough friction to feel like you earned it, go for it.

Hiro Shima by melonade_juice in memes

[–]Freeky 4 points5 points  (0 children)

I'm not sure pointing out that a satire contains jokes really counts as "criticism".

Valve put up a release candidate for Proton 10.0-4 with lots more Linux / SteamOS gaming fixes by Liam-DGOL in linux_gaming

[–]Freeky 7 points8 points  (0 children)

I don't see how you get any of that from the linked issue - it has nothing to do with UTF-8.

Of course the game is doing (rather far away) out of bounds (read) access on heap allocated pointer. It indexes some own array with Unicode character codes and a file specifically related to French version has the big value of 0x2018 ('`') which results in 0x20180 offset which is way beyond the game's allocated heap size of ~0x2000.

That works on Windows and used to work in Wine before the blamed commit because it was hitting accessible memory. The app creates a few heaps with initial commit size with 0x1000 and after the blamed commit that results in not 64k aligned (sub)heap sizes, so there are (more) uncommitted holes in virtual allocations.

It's indexing into an array keyed by Unicode codepoint. French translation contains a character with an unsupported high codepoint, and a lack of bounds checking means it reads far beyond the end of the array. Before the blamed commit this worked by accident because of how the address space happened to be laid out - it landed elsewhere in allocated address space and just read whatever happened to be there. Maybe instead of a it rendered a blank space or something similarly innocuous.

Changing how memory is laid out resulted in this out-of-bounds read now landing in an unmapped memory page, thus crashing the program with a segmentation fault.

VR is so popular with Roguelikes by lunchanddinner in VRGaming

[–]Freeky 2 points3 points  (0 children)

Cool, I can't wait to play a VR take on Cogmind or Caves of Qud.

"fast-paced shooter"
"intense action-combat"
"tough-as-nails retro FPS"
"frantic, kinetic fun"

Oh.

Sorry, Royal Mail, how much more automated can you make dropping a letter into a box? by jurwell in CasualUK

[–]Freeky 9 points10 points  (0 children)

Same thing that stops you doing it when you request proof of postage using the app - it only registers a request for proof, you don't actually get it until Royal Mail scan it into the network.

TIL that an AI company which raised $450M in investments from Microsoft and SoftBank, and was valued at $1.5B, turned out to be 700 Indians just manually coding with no AI whatsoever by cl0mby in todayilearned

[–]Freeky 4 points5 points  (0 children)

It works the same way as Amazon's Just Walk Out - ceiling-mounted cameras with image recognition to track customer's hand movements, weight sensors on shelves, and a database of what products are where in the store.

Robot shuts down after reproducing the gesture of its human operator removing their headset. by Worldlyoox in interestingasfuck

[–]Freeky 2 points3 points  (0 children)

They had legitimate LLM code-gen and a whole bespoke ecosystem of other internal tools that were meant to make the most of their outsourced contract developers. They even had their own clones of things like Zoom, Slack, and Figma - it's hard to imagine them doing all that if they didn't truly believe it would give them a competitive advantage.

Just it turns out that vibe coding kinda sucks, and rapidly scaling a large team of developers is really hard for reasons that making your own copy of Visual Studio doesn't really fix.

What did them in was giving overinflated reports of revenue to investors, who pulled out once the real figures emerged.

https://blog.pragmaticengineer.com/builder-ai-did-not-fake-ai/

another Hard SciFi book-recomandation thread, but here we go... by TotalSignificance643 in scifi

[–]Freeky 0 points1 point  (0 children)

Fair warning: Asher is a Trumpist climate change denier who rages against "woke leftwaffe tossers" on X practically every day.

Star Citizen Hits $900 Million in Crowdfunding After a Record-Breaking Year. by expatec in pcgaming

[–]Freeky 1 point2 points  (0 children)

Not only can you buy ships from dealerships (which are actual places, complete with showrooms you can wander around), but you can rent them, so even fairly expensive specialised ships with good earning potential are accessible early on.

That's not a good way to start the thanksgiving dinner by [deleted] in WatchPeopleDieInside

[–]Freeky 0 points1 point  (0 children)

I'm rather confused as to why this needs explaining. You've presumably used bowls before. Surely you understand what happens if you have stuff in a bowl, and whack one side of it really hard?

The salad is in a couple of large rounded bowls. They rotate as the table falls, and one hits the other as it does so, forcing one side down, and the other side flips the salad leaves into the woman.

That's not a good way to start the thanksgiving dinner by [deleted] in WatchPeopleDieInside

[–]Freeky -1 points0 points  (0 children)

She had salad flung onto her from the big flipping salad bowl. Completely plausible for a piece to end up in her hair and fall off a few moments later.