crates.io security incident: improperly stored session cookies

https://blog.rust-lang.org/2025/04/11/crates-io-security-session-cookies.html

28 points · 5 comments · view on lemmy.world

5 Comments

DWin@feddit.uk · 13 pts · 1y (4 replies)

Would using rust have prevented this issue?

Traister101@lemmy.today · 4 pts · 1y (3 replies)

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 · 1 pts · 1y (2 replies)

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 · 2 pts · 1y (1 reply)

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

DWin@feddit.uk · 2 pts · 1y

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