Hacker News new | ask | show | jobs
by missmewiththatl 45 days ago
I'm was super glad I could just copy/paste that code in my LLM-of-choice and it gave me a reasonable explanation of how to exploit it. Thank god an attacker couldn't do that.
2 comments

This doesn’t require any fancy analysis. You can literally read the password off it — the last bit is an oddly decompiled string comparison.
Well most SWEs need an llm to spell their own name now.
That's not true, copy and paste hasn't fully atrophied for most people yet.
Claude disagreed with this take but I'm but I'm not sure it's true myself.
Not everybody writes in the language they want to exploit I suppose, that's the great thing about LLMs!

on edit: even though I don't know C or C++ (I suppose it's C but can't be sure) I do think I can figure out what it's doing and how to guess what the password is, so that seems bad.

It’s the Windows dialect of C with Microsoft quasi-Hungarian-notation type names. Whole generations of programmers have grown up with these and all too many somehow think they make sense :)

But the relevant bit is at the end, from “if” to “return”, and should be pretty accessible to anyone familiar with an imperative language who can get past the general ugliness of the code. Once that’s figured out, you can recover the password by copying and executing the rest of the function.

The fact that Russia has access to LLMs that could decompile and explain this firmware ( and possibly even translate the explanation to Russian! ) is just another proof that this was definitely part of the hybrid war and Europe needs to spend a few more tens of billions on weapons and possibly impose restrictions on open weight LLMs.
That's not a solution. Russia can just take the next LLM rolling out of China. The fix is to not be stupid and fix our broken infrastructure. Especially, IT infrastructure, but also things like idiotically Internet-connected fridges of supermarkets apparently.
Internet-connected fridges are fine. Sometimes you want to control your fridges remotely and the internet is perfect for that.

But use strong cryptography (tls1.3) and authentication (oidc)

There are zero reasons you should not be using VPN or at least IP whitelisting for that. Especially in the industrial settings.
> at least IP whitelisting

home or mobile users often have dynamic IPs and thus can't be "whitelisted". Why would you not want someone on their phone access the controls?

And VPNs are just external authentication & encryption mechanisms, you might as well implement those properly inside the application and forego VPN entirely.

Application and VPN work on totally different OSI layers, so what other comment already pointed out - it's defence in dept that exactly is meant to prevent such cases: when one control fails, other might save the day. IP whitelisting is mostly suitable for centralised command center and fixed locations which might have been sufficient in this case, as I really don't believe that these fridges were individually and manuallly controlled by human users via their phones rather than some server and automation.
> home or mobile users often have dynamic IPs and thus can't be "whitelisted". Why would you not want someone on their phone access the controls?

points vaguely at the exploit and how easy it is to find the targets.

If "change it from their phone" is a requirement, they can connect the phone to shop's network, or VPN from phone to HQ then bounce to the controller.

It is security by obfuscation, yes, but it is somewhat effective at low cost.

> And VPNs are just external authentication & encryption mechanisms, you might as well implement those properly inside the application and forego VPN entirely.

The controllers go out of support after some years. They work just fine, so replacing one if possible is costly and seen as unnecessary.

Putting it between $50 VPN box decouples "keeping VPN software up to date" and "keeping the controller up to date". It also gives your IT a single type of VPN config to support rather than being controller dependent.

I think the commenter above is making the point that this should be defence-in-depth.

Yes, of course use good encryption and auth{n,z}, but _also_ layer on restrictions at the network layer to stop general traffic from even getting there.

There is not good reason to control commercial fridges from home or from a mobile device.

There are rarely good reasons to control domestic fridges remotely. Why would you want to trigger defrosting when you are not there?

I have actually never had the urge to control any fridge remotely, and I believe the world can live without this feature.
None of what you said follows, and I can't tell whether it's a joke.
I am amazed and disappointed anyone here thought this was not sarcasm.
The wording reads like sarcasm to me.
It probably was Russia - just on the balance of probability - and defense spending is unrelated to this.

The solution is for supermarkets to stop being moronic by putting refrigerators on the internet.