Just looked through the security assessment on the rust rewrite of core utils, a...

@encthenet@flyovercountry.social

Just looked through the security assessment on the rust rewrite of core utils, and this is why just rewriting everything in the last language is such a dangerous things. They literally threw out 20+ years of security fixes because they thought it was cool and would increase security.

At least a security assessment was done, but some of those failures are pretty bad, and very likely to have had serious security implications if they were deployed into any real world system. Setting mode bits incorrectly, TOCTOU, arbitrary file overwrites are just terrible.

Would I have likely introduced some of the bugs if I had done the work? Yes. Would I have done the work? No, I'm not that crazy.

I do wonder if they did white box or black box when they copied functionality. I'm suspecting black box because of some of the errors.

github.com/Zellic/publications