crates.io security incident: improperly stored session cookies (blog.rust-lang.org)
from neme@lemm.ee to rust@programming.dev on 12 Apr 15:10
https://lemm.ee/post/61123846

#rust

threaded - newest

DWin@feddit.uk on 12 Apr 17:20 collapse

Would using rust have prevented this issue?

Traister101@lemmy.today on 12 Apr 18:23 collapse

Lol but no essentially somebody accidentally logged the ID for an actively logged in user (not the user ID) when an error happens. Surprising they even released a thing about this

DWin@feddit.uk on 13 Apr 11:46 collapse

Yeah, I wonder why any developer thought logging either the session cookie itself was a good idea. I guess they could decode it and figure out which user was having an issue? Still bizzare

Miaou@jlai.lu on 14 Apr 21:57 collapse

Probably some automatic serialization that included the field. Someone forgot a #[serde(skip)]!

DWin@feddit.uk on 15 Apr 07:00 collapse

Yeah I reflected on that after I posted it, maybe it just dumped all the headers to the logs