News for hackers. Stuff that matters.
Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @03:08PM (#3663786)
Given the recent story on HN about how former YouSendIt founder had taken their servers down to prove their vulnerability [1] [2], I'm surprised how little reverence these "lol-hackers" (that's going to be my term for them) give to showcasing these vulnerabilities by exploiting them in the real-world and messing with people's real things.

I know as hackers, we feel a duty to show people how serious these things are and that we get impatient and annoyed when ignored. And I also know that it's hard for us to reconcile the idea that when we show the owners rather than tell, it's suddenly considered a crime. But it is.

Let's try an analogy. Door locks on houses are ineffective. Think about it. Your house is covered with windows, which are made of glass. Glass is really easy to break. I mean really easy. If you found out your neighbor didn't have a house alarm, you might talk to them and tell them they should get one. If they didn't get one, would you then break into their house one night and walk into their bedroom to show them how dangerous it is?

OK, who knows, maybe you have a weird relationship with your neighbor. Furthermore, this is an imperfect analogy, because here, Rails and Github are both responsible for other people's property.

But now imagine it's a business across town and that you don't actually know the business owner. If you broke into their business to show them their building's security vulnerabilities, you bet your ass they would press charges and I don't think anyone would blame them. Even if you're doing it with the best intentions, it's still vandalism at best.

All of that being said, this is a very effective way of making your point and getting people to fix the problem. That doesn't make it right. But if you're willing to put yourself in harm's way and essentially become a martyr to get these security vulnerabilities fixed, more power to you.

[1] http://news.ycombinator.com/item?id=3643102

[2] http://www.inc.com/magazine/201203/burt-helm/a-silicon-valle...

Re:"Egor, stop hacking Github" by marshray on Sunday March 04, 2012 @03:30PM (#3663857)
Door locks on physical houses are just a small part of a much greater security picture involving your community, observant neighbors, other monitoring systems, the police, even dogs. And yes, houses do get broken into causing a massive amount of aggregate economic loss every year.

But on the internet everyone's front door is accessible from even the most remote and hostile places in the world and you're pretty much on your own for securing it. Internet-facing systems also tend hold far more valuable things than your typical home.

For these reasons, I don't think the household lock analogy works very well.

Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @03:47PM (#3663930)
EDIT 2: Hmm, maybe I shouldn't have removed my original response, I just didn't want to derail the conversation upon second thought. For posterity's sake, my original response was something along the lines of this:

---

I think you may be overestimating the effects of "the greater security picture" involving community, observant neighbors, other monitoring systems for the average community. For example, my first startup was RateMyStudentRental.com, and as I recall adding automated motion-activated sensors and lighting actually had a negative effect on break-in protection. As in, adding such a system actually increased your chances of having a break-in. According to the study, neighbors don't actually pay much attention to someone standing at a well-lit door (mileage varying based on the specific community obviously).

---

ORIGINAL EDIT: I won't comment on the technicality of the differences between the analogous situation and the actual situation at hand; the differences have nothing to do with the point being made. Don't get caught up in the analogy, because it's just an analogy.

In case it wasn't clear the first time around, the entire point of the analogy was that, breaking into and vandalizing someone's business just to show them that it can be done is generally a bad idea. Though I don't think anyone would argue it isn't effective.

Re:"Egor, stop hacking Github" by humbledrone on Sunday March 04, 2012 @03:57PM (#3663963)
> [...] automated lighting systems actually have a negative effect on break-in protection [...]

Do you have a source for this? I've always been under the commonly held impression that this has a preventative effect, and it would be very interesting if the opposite really is true.

Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @04:31PM (#3664083)
Good question. It was a long time ago, and I'm having trouble googling for it, because all I get in search results are articles and how-tos by motion-sensor companies selling their products. I'll search though and update if I find it.

UPDATE: Hey, awesome, turns out we blogged about it back in the day: http://blog.ratemystudentrental.com/2008/03/05/a-safe-home-i...

Here is the original article: http://www.schneier.com/blog/archives/2007/09/light_and_crim...

Much so-called security lighting is designed with little thought for how eyes -- or criminals -- operate. Marcus Felson, a professor at the School of Criminal Justice at Rutgers University, has concluded that lighting is effective in preventing crime mainly if it enables people to notice criminal activity as it's taking place, and if it doesn't help criminals to see what they're doing. Bright, unshielded floodlights -- one of the most common types of outdoor security lighting in the country -- often fail on both counts, as do all-night lights installed on isolated structures or on parts of buildings that can't be observed by passersby (such as back doors). A burglar who is forced to use a flashlight, or whose movement triggers a security light controlled by an infrared motion sensor, is much more likely to be spotted than one whose presence is masked by the blinding glare of a poorly placed metal halide "wall pack." In the early seventies, the public-school system in San Antonio, Texas, began leaving many of its school buildings, parking lots, and other property dark at night and found that the no-lights policy not only reduced energy costs but also dramatically cut vandalism.

I remembered it incorrectly, as apparently motion-activated lighting helps, but on-all-night floodlighting makes the situation worse.

Re:"Egor, stop hacking Github" by marshray on Sunday March 04, 2012 @05:12PM (#3664269)
Peter Gutmann reported some interesting studies in his keynote talk at Shmoocon this year. It's probably available on Ustream or the Shmoocon site.

In short, sometimes darkness helps. Consider a tall glass office building. If all the lights are out, nothing stands out to a security guard more than a flashlight waving around in the darkness.

Re:"Egor, stop hacking Github" by jroll on Sunday March 04, 2012 @06:35PM (#3664586)
Hey Steve! Good to see another Kettering grad on here :)
Re:"Egor, stop hacking Github" by sek on Sunday March 04, 2012 @04:38PM (#3664116)
This analogy is just wrong, on the web exists perfect anonymity. Very often you also can hide your traces and nobody will ever find out what you did.

You have to assume every exploit will be abused. The most stupid thing you can do is attack the white hats, because the next hacker will shove your stupidity down your throat. On a lulz way or on a black hat way.

I would never let my data near a company which doesn't respect white hats, for security and moral reasons. I would remind you that we are on Hacker News, that doesn't exclude the popular meaning of the word.

Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @04:48PM (#3664162)
I agree security vulnerabilities should be addressed by the company as much as they can. But there's no such thing as a perfectly secure system, so there will always be some amount of vulnerability. My only point is that there are ways to communicate with companies and help them fix things without committing a crime and breaking them.

I wouldn't throw a brick at a store window to make sure they have an alarm installed. Likewise, I wouldn't screw with someone else's production system to make sure they have X or Y security vulnerabilities patched. If you're worried about your own data, then try the exploits on your own account, or repository as the case may be. If it's a concern, get a hold of the company and let them know.

Re:"Egor, stop hacking Github" by sek on Sunday March 04, 2012 @05:00PM (#3664213)
You are on the mercy of the guy who found the vulnerability, if you like it or not. This person can have any personality and most of them don't care about your costs. They did your work and invested a lot of time. Most of then don't want money, they want appreciation for what they did. You can give it to them, or they take it and they have the perfect tool for that.
Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @05:14PM (#3664282)
Entirely true. And that person is at the mercy of their governing law and the company's ability to pursue and press charges should they decide to take matters into their own hands, regardless of intent (unless their governing law takes intent into account).
Re:"Egor, stop hacking Github" by jebblue on Monday March 05, 2012 @12:57AM (#3665598)
Has he been arrested yet? If not, I wonder why not. Github should press charges.
Re:"Egor, stop hacking Github" by kellenfujimoto on Monday March 05, 2012 @01:14AM (#3665631)
There's a big difference between acknowledging that a crime can be committed, and condoning that crime when it happens.
Re:"Egor, stop hacking Github" by dthunt on Sunday March 04, 2012 @05:03PM (#3664226)
> If it's a concern, get a hold of the company and let them know.

Easier said than done. It's hard enough to find the right people to talk to when people are so paranoid about connecting devs with customers, and if by chance you wind up talking to a PM first, the first thing he does is engage legal, which means instead of fixing the problem and protecting their customers and data, you may now be threatened with lawsuits, have the incident reported to the FBI or someone for investigation (on the assumption that you are in fact trying to extort them or something).

In this world, I'm not sure you can 'win' at this situation at present. Until there are protections for white hats that are broadly recognized, I'm going to side with people like Egor, who find a big damn problem and don't use it for ill.

Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @05:17PM (#3664298)
That's a very good point about there not necessarily being a right answer. Though of all the companies in the world, Github is one of the easiest to get in touch with their developers.
Re:"Egor, stop hacking Github" by dthunt on Sunday March 04, 2012 @08:16PM (#3664898)
And yet Egor made several attempts to illustrate the depth of a single problem, and nobody was able to understand that this was serious badness.

Sometimes, it is actually necessary to pull down someone else's pants to expose a problem. I think the record here speaks for itself.

Re:"Egor, stop hacking Github" by PakG1 on Monday March 05, 2012 @12:24AM (#3665538)
Maybe you do need to sometimes pull down someone else's pants to expose a problem. I think that's a moot point because nobody should really be able to disagree with that on pure logic. I think the important question is when someone feels they have no other choice, so they pull down the person's pants, should this be considered an immoral or criminal act? The guy can always say, "Look, I never intended to do any harm, I just wanted to get people's attention to fix this before someone who was intending to do harm came along." The problem is then how do you prove that they really were so benign? I think it'd be easy for a lot of blackhats to hide behind that if they ever got caught, or no? Even if there was complete immunity for people who immediately came out in the open and claimed responsibility for the sake of clearing the air, it'd still be easy for blackhats to hide their rationales in there, while they did something else more malicious (and then if that malicious thing was ever found, the blackhat can easily say, "Hey, I told you guys to fix it!! Now look what happened!! Wasn't me though!".
Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @08:34PM (#3664966)
Maybe I missed something, but from looking through his posts, it seems that Egor felt the defaults in Rails were insecure (let's face it, they are), and then when he didn't get the immediate feedback from the rails team that he had hoped for, he decided to illustrate his point by hacking Github, which happens to be built on Rails. Nowhere did I read, on his own blog or within any of the rails issue tickets, that he actually tried reaching out to Github (i.e. contacting [email protected]) before exploiting the vulnerability.

Maybe he did try to contact Github first, but I didn't see anything mentioning that in any of the linked posts.

Re:"Egor, stop hacking Github" by dthunt on Sunday March 04, 2012 @08:38PM (#3664981)
The immediate feedback was multiple issues closed as if they were not serious.
Re:"Egor, stop hacking Github" by sek on Sunday March 04, 2012 @05:15PM (#3664287)
In Germany we have the CCC, they provide legal advice for these cases and have a ton of experience.

Do you have something similar in the states?

Re:"Egor, stop hacking Github" by dthunt on Sunday March 04, 2012 @08:15PM (#3664892)
EFF has a network of people they can put people in touch with, even if for a variety of reasons they can't offer legal help in a particular instance.

But that's not the point. While we can be grateful for the CCC and the EFF for existing and doing the community a great service, we can also believe that their extraordinary contributions should be unnecessary.

Re:"Egor, stop hacking Github" by ben0x539 on Sunday March 04, 2012 @04:03PM (#3663978)
Breaking some poor dude's window probably causes a whole bunch more economic damage than a spurious commit into a github repos.
Re:"Egor, stop hacking Github" by marshray on Sunday March 04, 2012 @05:16PM (#3664293)
Do you have any idea how much it costs to clean up after an "intrusion" or "data breach"?

Of course, it's unfair to blame all those costs on the guy who had to go as far as actually escalating his privileges in order to unmask the Rails developers for being such knuckleheads.

Re:"Egor, stop hacking Github" by smsm42 on Monday March 05, 2012 @03:45AM (#3665924)
Cleaning up after the breach constitutes of two parts: 1. Changing passwords, removing unauthorized changes/fraudulent transactions, etc. dealing with evil people accessing info that shouldn't be accessed. 2. Notifying clients of vulnerability existence, securing the system properly and changing procedures so that such kind of breach would have less chance of happening again.

In the white hat scenario, the first part does not exist and the white hat does not actually do anything harmful. The second part still exists and can cost tons of money, but this part is not the fault of the person who found the problem.

So while the costs _after_ a benign "intrusion" like was done to Github can be substantial - both in money and reputation, the costs _because_ of it are much less, since most of the costs weren't caused by it, it only exposed the pre-existing need of bear those costs. Like a doctor diagnosing somebody with serious illness - he's not at fault that the person now has to spend tons of money on drugs and medical procedures.

Re:"Egor, stop hacking Github" by ben0x539 on Sunday March 04, 2012 @05:30PM (#3664350)
As I understand it, for all you know, there were other intrusions anyway and you'd have to go looking for them and clean up after them anyway as soon as you learned that there was an exploit. Whether one dude actually posted something under someone else's name doesn't affect that there has been a huge hole in github for (apparently?) years.
Re:"Egor, stop hacking Github" by marshray on Sunday March 04, 2012 @06:42PM (#3664608)
Right. As if this guy who reported it was the only one at the time who could have pwned Github with it.

For all we know, this bug has been abused for a long time to commit backdoors to other projects (perhaps those too big and active to notice).

Re:"Egor, stop hacking Github" by wisty on Monday March 05, 2012 @07:09AM (#3666253)
There's an old debate over what constitutes "gray hat" hacking, and whether it's moral.

I haven't looked at Egor's actions too closely, but he seems fairly close to a "white hat". He's been a bit immature, and so has Github, but there's been no real lasting damage.

Anyone who's written a web app knows that mistakes can happen, and they take time to fix. I'm sure Github will handle the PR crisis with an informative and unbiased mea culpa (even if they secretly think Egor was a bit brash). People will keep using them, because their interface rocks.

This will stay on the front page for about 24 hours, then there will be a few link bait articles that also cash in on it, but that's about it.

Re:"Egor, stop hacking Github" by ricardobeat on Sunday March 04, 2012 @11:02PM (#3665358)
Terrible analogy. More like someone's automatic door lock is opening by itself at random times of the day, and the owner doesn't believe it, so you leave a note on the inside. It's creepy, but not wrong.
Re:"Egor, stop hacking Github" by baq on Monday March 05, 2012 @11:45AM (#3667112)
but the owner doesn't know that. he has to assume you left a bomb under the passenger's seat, left illicit substances in hard to get spots and put a potato in the exhaust.
Re:"Egor, stop hacking Github" by fluidcruft on Monday March 05, 2012 @12:05PM (#3667212)
So...? The owner has to assume that anyway because they relied on faulty security. Assuming they even care--and honestly why would you think they care now when the evidence is they have not cared about this for at least months.
Re:"Egor, stop hacking Github" by ktizo on Sunday March 04, 2012 @04:44PM (#3664148)
If he used a known vulnerability to break into github, then he didn't break in, he walked in.

Admittedly he did then do the online equivalent of pissing on the wall, so minus several million points for artistic endeavor.

Re:"Egor, stop hacking Github" by JangoSteve on Sunday March 04, 2012 @05:39PM (#3664382)
It's more of a legal grey area I think. If I climb through an unlocked window of a company to enter a restricted area for which I don't have access, and then write (or piss) on the wall, I think it still counts as breaking and entering. Or trespassing and vandalism at least.

I don't think I'm going to take this analogy any further though; things get dangerous when you base an argument entirely on analogy.

Re:"Egor, stop hacking Github" by Drbble on Sunday March 04, 2012 @07:52PM (#3664824)
It's obviously not "breaking". In fact "breaking" is the difference between burglary and theft, and theft insurance is way more expensive than burglary insurance (which I experienced today reading an insurance offer) , because theft is nearly impossible to prove and usually due to the victim's negligence.
Re:"Egor, stop hacking Github" by JangoSteve on Monday March 05, 2012 @04:07AM (#3665957)
In the legal sense, you don't need to literally break something for it to be breaking in entering.

From the legal-dictionary [1]:

breaking and entering v., n. entering a residence or other enclosed property through the slightest amount of force (even pushing open a door), without authorization. If there is intent to commit a crime, this is burglary. If there is no such intent, the breaking and entering alone is probably at least illegal trespass, which is a misdemeanor crime.

[1] http://legal-dictionary.thefreedictionary.com/breaking+and+e...

Re:"Egor, stop hacking Github" by Drbble on Friday March 16, 2012 @03:28AM (#3712367)
Ah, sorry. Insurance underwriter takes a different view than criminal law, I guess.
Re:"Egor, stop hacking Github" by ktizo on Sunday March 04, 2012 @05:59PM (#3664466)
I wonder what the Young's modulus of an analogy is ;)