Re:Klarna users are being signed in to random accounts
by matsemann on Thursday May 27, 2021 @07:28AM
(#27301691)
Something similar happened a few years ago in Norway, when the yearly tax returns were released. Everyone of course logs in at the same time. It goes down, and the cache serves someone else's data instead.
Re:Klarna users are being signed in to random accounts
by Silasdev on Thursday May 27, 2021 @04:22PM
(#27307885)
Happened for the danish tax authority about 10 years ago as well. Although I think the issue for them was that the unique login token was based on a timestamp that several users happened to share during very busy peaks.
Re:Klarna users are being signed in to random accounts
by AtNightWeCode on Thursday May 27, 2021 @10:57AM
(#27303903)
I would expect this to happen if an option in the line of "serve stale content if target server is unreachable" is enabled.
Re:Klarna users are being signed in to random accounts
by generic_dev_47 on Thursday May 27, 2021 @06:08PM
(#27309177)
Yes, you are right!
Re:Klarna users are being signed in to random accounts
by corroclaro on Thursday May 27, 2021 @07:11AM
(#27301544)
Ouch.
We had built and authentication service that, among other things, was used by a SyncML service that was used back in the day of feature phones to syncs contacts etc. You can imagine that getting someone else's contacts on your phone isn't exactly ideal. This was how we came to know about the problem, from customers getting other customers data!
The error was caused by a CDN switch. Our instructions to the the CDN team responsible for the switch was "Make sure the CDN honors our cache headers, if our HTTP responses say something can be cached do so, if they say that the response should not be cached then don't". We were in at least three meetings where we repeated this mantra.
I believe that the CDN team thought that they had setup the CDN correctly but they had missed an edge case. The CDN was in fact setup to cache even uncacheable responses, and served those, _only_ when it could not reach our servers.
So if there was a traffic spike and the CDN determined that our authentication servers were unreachable it would fall back to serving data that should never have been cached in the first place! Happily returning tokens to random users that had authenticated just before the traffic spike...