News for hackers. Stuff that matters.
Re:Why Baidu Has Been Hijacked to Attack GitHub by Pirate-of-SV on Friday March 27, 2015 @09:29AM (#9276090)
That's exactly what they did! At the moment of this writing they are sending back:

    alert("WARNING: malicious javascript detected on this domain")
when you're trying to reach: https://github.com/greatfire/ or https://github.com/cn-nytimes/ That's why other people have started to notice it (as the article describes).

Timeline of the attack looks something like this:

1. The Chinese firewall hijacks requests to http://hm.baidu.com/h.js and sends back a script that attacks GH instead.

2. Github notices that a huge amount of people are trying to reach https://github.com/greatfire/ and https://github.com/cn-nytimes/

3. GH figures out what's happening and starts replying with the alert javascript snippet.

4. Users are now getting noticed by the alert every time their browser runs the hijacked javascript.

5. The person that wrote this article writes this article after investigating what the alert message is about.

Re:Why Baidu Has Been Hijacked to Attack GitHub by Fuxy on Friday March 27, 2015 @09:50AM (#9276216)
If I were Github I would redirect the attacker back at one of their own resources.

A attack reflection of sort.

Edit: You're technically not attacking you're reflecting if the attack stops there's nothing to reflect.

Just like in martial arts you don't just take a beating you defend and return the opponents attack back at them. Seems fair to me.

Re:Why Baidu Has Been Hijacked to Attack GitHub by alimbada on Friday March 27, 2015 @10:06AM (#9276321)
Who should they "reflect" the attack back at? Baidu, who seem to be a victim of HTTP hijacking in this case? Or the Chinese government? If the latter, then where exactly do you focus the counter-attack?
Re:Why Baidu Has Been Hijacked to Attack GitHub by Pirate-of-SV on Friday March 27, 2015 @10:56AM (#9276627)
http://www.gov.cn/

That will show them!

/s

Re:Why Baidu Has Been Hijacked to Attack GitHub by briandear on Friday March 27, 2015 @10:17AM (#9276378)
Baidu == Chinese Government
Re:Why Baidu Has Been Hijacked to Attack GitHub by true_religion on Friday March 27, 2015 @10:57AM (#9276634)
I don't know. If I were a private company, I'd go out of my way to avoid antagonizing nation-state level governments.
Re:Why Baidu Has Been Hijacked to Attack GitHub by TazeTSchnitzel on Friday March 27, 2015 @09:51AM (#9276228)
That does not seem wise. China vs. GitHub, China will win.
Re:Why Baidu Has Been Hijacked to Attack GitHub by shiggerino on Friday March 27, 2015 @10:39AM (#9276521)
It would be interesting to know how important Github is for China's economy and how important China is for Github's.
Re:Why Baidu Has Been Hijacked to Attack GitHub by billyhoffman on Friday March 27, 2015 @12:28PM (#9277274)
China's GDP is 10 Trillion dollars. Github is not at all important to China, other than a source of tools to citizens use to circumvent their authoritative regime.
Re:Why Baidu Has Been Hijacked to Attack GitHub by sixbrx on Friday March 27, 2015 @03:21PM (#9278472)
> Github is not at all important to China

If that were the case, I don't think they would have backed down and allowed access to Github again.

Re:Why Baidu Has Been Hijacked to Attack GitHub by click170 on Friday March 27, 2015 @04:41PM (#9278854)
Or maybe by blocking it during the timeframe they did, they have accomplished their mission and there was no further need for blocking.

I sincerely doubt github is at all important to China.

Re:Why Baidu Has Been Hijacked to Attack GitHub by morenoh149 on Friday March 27, 2015 @04:47PM (#9278887)
again, then why did they unblock it? it is important, we're in a new paradigm for software where developing in the open leads to higher quality software written faster than previous ways
Re:Why Baidu Has Been Hijacked to Attack GitHub by shiggerino on Saturday March 28, 2015 @06:01AM (#9280933)
It's hardly a new paradigm, it's just a place with a lot of software that you'd otherwise have to write from scratch. It's merely software development catching up with everything else.
Re:Why Baidu Has Been Hijacked to Attack GitHub by shiggerino on Saturday March 28, 2015 @06:05AM (#9280943)
I'm sure Github and free software is a goldmine to the country that built its economy on copying other people's stuff.

On the other hand, the capitalists running the communist party might scoff at the idea of software that everyone is allowed to copy, because that offers no advantage to the unscrupulous. At least I'd imagine they would scoff at copyleft, just like Github does.

Re:Why Baidu Has Been Hijacked to Attack GitHub by GutenYe on Friday March 27, 2015 @10:11AM (#9276347)
That is true, even Google can't fight against China.
Re:Why Baidu Has Been Hijacked to Attack GitHub by zachalexander on Friday March 27, 2015 @01:19PM (#9277667)
I imagine they have the technical resources to – they just don't because as a public company they are obligated to maximize shareholder value.
Re:Why Baidu Has Been Hijacked to Attack GitHub by lotu on Friday March 27, 2015 @03:40PM (#9278556)
I would put it more on the fact that attacking a foreign government is kinda usurping the role US government and they won't take kindly to that.
Re:Why Baidu Has Been Hijacked to Attack GitHub by jamiesonbecker on Saturday March 28, 2015 @12:27AM (#9280509)
Google made a choice.

You can always fight, even if you believe you will lose.

Re:Why Baidu Has Been Hijacked to Attack GitHub by natch on Friday March 27, 2015 @04:44PM (#9278873)
...in China. Outside of China, my money would be on Google.
Re:Why Baidu Has Been Hijacked to Attack GitHub by ISL on Friday March 27, 2015 @12:30PM (#9277284)
An eye for an eye makes the whole world blind?
Re:Why Baidu Has Been Hijacked to Attack GitHub by SamDLC on Friday March 27, 2015 @01:04PM (#9277539)
Apart from one person with one eye left
Re:Why Baidu Has Been Hijacked to Attack GitHub by itistoday2 on Friday March 27, 2015 @03:00PM (#9278367)
As much as I love MLK and Gandhi, this assertion never made sense to me.

An eye for an eye would leave two people blind: the person who blinded the other, and the one that was blinded.

Once people start seeing the severe consequence of blinding someone (getting blinded back), they and everyone else would most likely stop, not continue blinding more people.

Re:Why Baidu Has Been Hijacked to Attack GitHub by dragonwriter on Friday March 27, 2015 @03:05PM (#9278385)
The reason it doesn't make sense to you is because you are assuming it is applied in an ideal perfect universe, while the statement is referring to the real world, where any retributive rule is applied by imperfect actors who make errors in the assignment of culpability (both in identification of who is responsible and in identify whether their act was justified in the first place.)

Such errors result in people who shouldn't be blinded themselves being blinded, and are themselves the subject of retaliation by the same error-prone process.

Re:Why Baidu Has Been Hijacked to Attack GitHub by bashinator on Friday March 27, 2015 @04:26PM (#9278774)
And there are many, many real-world examples of this in the form of multi-generational inter-family feuds.
Re:Why Baidu Has Been Hijacked to Attack GitHub by itistoday2 on Friday March 27, 2015 @03:20PM (#9278469)
Well said. It's your nuance that I like, and it's the lack of nuance in the original assertion that I find wanting.
Re:Why Baidu Has Been Hijacked to Attack GitHub by pbhjpbhj on Friday March 27, 2015 @05:12PM (#9279023)
>An eye for an eye would leave two people blind

Well under your reading wouldn't it just leave them each without one eye. They may be blind but in most cases they will still have one other functioning eye. /pedantry

"Who paid retribution for the second blinding? The second paid for the first, I demand a third eye" ... ergo the aphorism.

Re:Why Baidu Has Been Hijacked to Attack GitHub by shiggerino on Saturday March 28, 2015 @06:08AM (#9280948)
That's correct, the only problem is it takes thousands of years for humanity as a whole to agree that the consequence is too severe to stand. On this time scale, the idea of not fighting wars because they cause damage is relatively new.
Re:Why Baidu Has Been Hijacked to Attack GitHub by yAnonymous on Friday March 27, 2015 @10:14AM (#9276363)
>redirect the attacker back at one of their own resources

Why only one? :)

Re:Why Baidu Has Been Hijacked to Attack GitHub by hk__2 on Friday March 27, 2015 @10:42AM (#9276544)
Because that’s not a DDoS anymore if you target a lot of traffic to a lot of different resources.
Re:Why Baidu Has Been Hijacked to Attack GitHub by yAnonymous on Wednesday April 01, 2015 @10:00AM (#9303562)
Yes, it is an amplified DDoS. The attack doesn't become weaker, it would only target more machines.
Re:Why Baidu Has Been Hijacked to Attack GitHub by myth_buster on Friday March 27, 2015 @10:10AM (#9276337)
Just to clarify, did the DDOS stop due to GitHub adding that warning text making the hack reflect poorly on Baidu and hence the perpetrators being subjected to internal pressure? If not, GitHub would still have to serve that JS and hence would still be bombarded by millions of content request.
Re:Why Baidu Has Been Hijacked to Attack GitHub by lewispb on Friday March 27, 2015 @10:34AM (#9276490)
Even better, popping up a JS alert stops further JS execution, so this was a clever way for Github to throttle connections (rather than them being made every 2 seconds as per the hijacked Baidu JS)
Re:Why Baidu Has Been Hijacked to Attack GitHub by myth_buster on Friday March 27, 2015 @12:36PM (#9277331)
I see; I missed the part where the resource request was executed every 2 seconds. The alert essentially would make the page unusable. From my understanding that Baidu is Google for china, the amount of productivity lost since people not being able to search, would mean the hack backfired spectacularly.
Re:Why Baidu Has Been Hijacked to Attack GitHub by SiVal on Friday March 27, 2015 @03:01PM (#9278370)
Well, except for the fact that it only impacts people who access Baidu from outside the Chinese firewall. People who access Baidu from inside China would not have their Baidu use interrupted.
Re:Why Baidu Has Been Hijacked to Attack GitHub by be5invis on Friday March 27, 2015 @11:37AM (#9276889)
they can do something better: they can put some javascript disabling the hijacked JS like

alert('......'); r_send = function(){}

Re:Why Baidu Has Been Hijacked to Attack GitHub by 15155 on Friday March 27, 2015 @02:26PM (#9278158)
window.top.location = "http://gov.cn";
Re:Why Baidu Has Been Hijacked to Attack GitHub by Bedon292 on Friday March 27, 2015 @10:20AM (#9276399)
It looks like what they did was change the url to only serve out the alert in plain text. Which is a lot less resources to use. I would also assume that they are willing to use those resources to fight back.
Re:Why Baidu Has Been Hijacked to Attack GitHub by totony on Monday March 30, 2015 @12:00AM (#9287589)
Imo they should have converted the targetted pages to a static cache and just document.body=page it, the users would notice (not able to access anything) and the pages would still be accessible on github.
Re:Why Baidu Has Been Hijacked to Attack GitHub by TazeTSchnitzel on Friday March 27, 2015 @09:33AM (#9276112)
Oh, I see, gotcha.