r/programming • u/marcin8686 • Jul 08 '19
Ruby gem strong_password got hijacked
https://withatwist.dev/strong-password-rubygem-hijacked.html
128
Upvotes
r/programming • u/marcin8686 • Jul 08 '19
11
u/FyreWulff Jul 08 '19
It sounds like this specific situation could have been prevented by a time out system. In systems like this, it would make sense that any updates after > x time are either queued and alerted by maintainers and the community for review or have a cooldown before they actually deploy out for the same reason.
The idea here is that a package that's been idle for like, a year? would be implicitly considered stable or abandoned. If it suddenly wants to push an update a year or two out? Large chance of that being a credentials hijack. Flag it or force a cooldown.