News for hackers. Stuff that matters.
Re:Is Haskell a good choice for software security? by lelanthran on Friday December 17, 2021 @12:45PM (#29595549)
> You would immediately see that a function which was only ever meant to do context lookups also has network access.

I still don't see how that would help - this logging library was SUPPOSED to have network access. Would a user pause to wonder what the network access is for when it's literally part of the featurelist?

Re:Is Haskell a good choice for software security? by light_hue_1 on Friday December 17, 2021 @01:20PM (#29596037)
Because in Haskell, you don't give the library permissions. It doesn't matter if the library had permissions to do something. The library is not an entity.

You give functions permissions on a fine-grained basis, permissions which are automatically derived. The specific function which has the bug didn't need network access. It just needed to look something up in the environment. That function would never have a type that gave it network access, that would be insane and a type error.

Re:Is Haskell a good choice for software security? by lelanthran on Friday December 17, 2021 @04:21PM (#29598505)
> The specific function which has the bug didn't need network access.

My reading of the bug and exploit is that the specific function not only needed network access, it was a intentional feature.

> It just needed to look something up in the environment.

That's not how I understand it - it parses the user-supplied input, and fetches (and subsequently executes) the package in the user-supplied input. The environment is irrelevant.

Now, bearing in mind that this was intentionally put in, and that the feature is working as intended and expected, how would a different programming language help?

Even if written in (for example) Haskell, the behaviour will be coded the same way, because that is the intended behaviour.

Re:Is Haskell a good choice for software security? by inkeddeveloper on Saturday December 18, 2021 @07:24PM (#29610150)
Similar to warfarin. It was intended as rat poison. But then someone said “we should use this for blood thinning in humans.” And then no one questioned why doctors were prescribing rat poison because it had the feature that was desired. Saying, no language can prevent a developer from using something when they very much intentionally use it.