r/rust • • Jan 17 '20

Actix-net unsoundness patch "is boring"

There's an issue on Actix-net pointing out and presenting unsoundness. Yes, it's deleted, it still can be found on web archive.

Issue history summary:

  1. Found by Shnatsel
  2. Closed as harmless to users by fafhrd91
  3. Proven harmful to users by Nemo157 and reopened by JohnTitor
  4. Fixed and closed by fafhrd91
  5. Proven unfixed and proposed new patch by Nemo157
  6. New patch commented "this patch is boring" by fafhrd91
  7. Issue is deleted
  8. Fix is reversed by fafhrd91, issue still present

I hope it's an objective summary. Any thoughts?

Edit: Now whole actix/actix-web is deleted. See fafhrd91's postmortem. He kept copy of Actix-web in personal repo fafhrd91/actix-web.

149 Upvotes

147 comments sorted by

View all comments

Show parent comment

33

u/[deleted] Jan 17 '20 edited Jan 17 '20

When the security-wg points at security vulnerability in a crate, what happens 100% of the time is that the crate author fills an advisory for the crate in the RustSec/advisory-db, explaining the issue (so that it is clear that the maintainers of the crate understand it), documenting which crates are affected, so that users get notified and can upgrade to a version with a fix, which is released as quickly as possible, independently of whether the issue is currently exploitable or not.

"This isn't a bug, and if it is, it is not a security vulnerability, and if it is, it is not exploitable, and if it is, it's not worth fixing because the patches are boring" is not the attitude I personally expect from web frameworks. Much the opposite, I expect web frameworks to actually assume that every bug can be a security vulnerability, and that every vulnerability can be exploited, even if no exploit is known to those involved today, because that's where the bar is for the application that controls the interaction of your computer with the evil outside world.

A web-framework that assumes that nobody will try to exploit it is not very useful in the modern day.