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.
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.
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.