News for hackers. Stuff that matters.
Re:Steam: Seeing other people's accounts when logged in by Santzes on Friday December 25, 2015 @04:21PM (#10792392)
Apparently it's a caching bug - if you add some random query parameters like ?r=123456789 to the url you get the correct page.
Re:Steam: Seeing other people's accounts when logged in by benwilber0 on Friday December 25, 2015 @04:44PM (#10792444)
yeah pretty obvious caching bug. im sure they accidentally told their cache to ignore cookies or something stupid.
Re:Steam: Seeing other people's accounts when logged in by geofft on Friday December 25, 2015 @05:16PM (#10792526)
Amazon CloudFront all but encourages you to ignore cookies and query strings in caching. This is exactly what you want in some cases, like images or CSS, but it seems like a very dangerous option, and there's no scary text around the option.
Re:Steam: Seeing other people's accounts when logged in by ChipWolf on Friday December 25, 2015 @06:24PM (#10792693)
Valve would have to entirely rewrite their current caching system in order to repair this which they've avoided for so long.
Re:Steam: Seeing other people's accounts when logged in by blibble on Friday December 25, 2015 @06:54PM (#10792751)
I'd put my money on someone bringing up some new varnish servers to handle the xmas day load with default config...

or the backend service, and not setting the Vary header correctly

Re:Steam: Seeing other people's accounts when logged in by bottled_poe on Friday December 25, 2015 @05:55PM (#10792632)
Ew, cookies? I thought those days were behind us..
Re:Steam: Seeing other people's accounts when logged in by gizmo385 on Friday December 25, 2015 @08:33PM (#10792928)
As someone who really doesn't do that much web programming, what is the modern way to handle the kinds of information that cookies are/were used for?
Re:Steam: Seeing other people's accounts when logged in by bottled_poe on Friday December 25, 2015 @08:55PM (#10792966)
Session variables are awful, which is the main selling point for cookies. I prefer basic auth with server-side user settings. This is how I implement stateless web apps and services, which greatly simplifies application architecture and makes it easy to implement automated atomic web testing.
Re:Steam: Seeing other people's accounts when logged in by tom9729 on Friday December 25, 2015 @11:48PM (#10793300)
It's unfortunate that people are down-voting instead of responding to you. I'm far from an expert but it would be interesting to see what other people think here...

Basic auth is insecure (i.e. sending credentials in plaintext) and poorly supported by browsers. For example how would you handle these scenarios:

  - Force users to reauthenticate after a certain period of time.
  - Allow user to logout without closing their browser.
I think Basic auth is more reasonable for server-server communications, combined with HTTPS and client-certs.

The best setup IMO is to have an HTTPS login page (form auth, hopefully with MFA) and use a session cookie. You can do server-side settings with this setup, you minimize the time when credentials are being sent (basically just once on login), and you can force your users to occasionally reauthenticate (either session timeout or manual logout) just in case they forgot to logout of a public computer.

For testing you could allow basic auth (make it configurable, or use user-agent sniffing to force browsers to use form auth).

Edit: formatting

Re:Steam: Seeing other people's accounts when logged in by bottled_poe on Saturday December 26, 2015 @12:33AM (#10793388)
> Basic auth is insecure

When used over HTTPS it is about as secure as any other web auth method.

> Force users to reauthenticate after a certain period of time.

With basic auth, there is no session. Authentication credentials are sent with each request.

> Allow user to logout without closing their browser.

There is no session. Only authenticated requests.

It's not for everyone, but I find that stateless APIs are much easier to work with.

Re:Steam: Seeing other people's accounts when logged in by chei0aiV on Saturday December 26, 2015 @12:44AM (#10793412)
Best practice authentication is client-side SSL certificates.
Re:Steam: Seeing other people's accounts when logged in by cheald on Friday December 25, 2015 @10:02PM (#10793115)
Cookies.