The “security issue”
I looked around a bit to find out more about the security issue this morning. Since it’s clear that Tumblr will never, ever post any sort of information about what the fuck is going on when there are problems, I’ll engage in a little bit of armchair analysis and wild-ass speculation. I’m not an expert on this kind of web development, but I know a bit. Caveat lector.
So, the “security issue” looks like someone fucked up at tumblr and some of the server-side code that renders the site was displayed rather than executed. Maybe someone was fooling with the front end web server (Apache?) configs or something.
Some krafty kidz who saw this code then had the foresight to post it to github and apparently other places for posterity. (Or posterous. Heh.) So even though tumblr probably stopped showing it to randoms quickly, it was in the wild for good very soon.
My quick glance at it shows that there are a bunch of passwords and private API keys in there, stuff for Google Hosts, Amazon AWS, Facebook, Twitter, Captcha. This is the Major Bummer. I’m sure they changed those passwords and invalidated those keys quickly, and I am mostly inclined to believe their claim that this stuff is some distance from the database of production user passwords and profile info. This is an epic fuckup, no other way to describe it. It’s also as good an argument against hard coding your passwords and other critical config info into executable script code as you’ll ever see. Put that shit in a config file that has 0.00 chance of ever being rendered, fellas.
Beyond that, a bunch of their internal private IP addresses are exposed, which would only be useful to someone who had already penetrated the security perimeter, and someone who’d done that could find that stuff in other ways. There’s a little to be inferred about their architecture from the code itself, but it doesn’t look like rocket science to me. Looks like fairly vanilla CMS/bloggy goodness. Their load balancing scheme starting around line 395 appears pretty lame. This we already knew.
So, it’s pretty bad, but survivable. I’m guessing the problems uploading pictures this morning were because of the Amazon AWS keys being changed.
I’ll reiterate that this is 100% speculation, based only on my fairly quick glance of the assets that were compromised. But one outside nerd’s semi-informed opinion is better than anything we will ever get from davidkarp (nice password…are those your girlfriend’s initials?) and friends. Take it for whatever you think it’s worth.