this post was submitted on 10 Apr 2024
33 points (86.7% liked)

Programming

17537 readers
181 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 30 points 7 months ago (1 children)

it's a windows vulnerability not rust, haskell also send a patch to fix it

[–] Deebster 15 points 7 months ago (1 children)

I'd say it's more like it demonstrates how quirky the requirements are that Haskell also failed to get it right. The error and the fix are both in Rust code.

[–] arendjr 18 points 7 months ago

It’s a bit arguing about semantics really. But Rust and Haskell are merely the first ones with patches out. The issue affects other languages as well, including Java, Node.js, Python and seemingly every language with Windows support. I think it’s fair to call it a Windows problem, since it affects everyone there.

But languages like Rust and Haskell are promising their users that they are protected from this kind of behavior, which is why they want to patch it quickly. Some of the others merely updated the documentation, effectively saying yeah it’s a risk. Java went as far as saying they won’t fix the issue.

[–] [email protected] 17 points 7 months ago

This, btw, is why CVE scores are insane at times.

The vulnerability is that when spawning a new process which is a bat file you need special treatment of the arguments to avoid spawning a second process.

So you need a rust program setup to spawn other processes which also somehow forwards unparsed user input into those processes and is executing a bat file.

There's a reason nobody has fixed this, it's because it's an insane setup that affects basically no rust programs.

[–] [email protected] 9 points 7 months ago