News for hackers. Stuff that matters.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by jimrandomh on Wednesday June 10, 2015 @02:24PM (#9694282)
Brief summary:

Thejesh has accused Indian Airtel and Flash Networks Layer8 of something that may be a crime (depending on the particulars of Indian law) and is definitely a scandal. Specifically, the accusation is that Flash Networks Layer8 wrote a piece of malicious software and that Airtel injected it into customers' network connections. Thejesh republished the injected script on GitHub.

Flash Networks sent a nasty letter to GitHub asking them to take down the evidence, claiming that their malicious software is copyrighted. GitHub complied.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by smhenderson on Wednesday June 10, 2015 @02:36PM (#9694367)
Additionally Airtel denies foreknowledge and says it has nothing to with the C&D. I would not be surprised if this is PR (given their weasel-worded reasoning behind being affiliated with Flash NW in the first place [1]) but on the face of it they also think the C&D was unwarranted and not a good idea...

[1] “This is a standard solution deployed by telcos globally to help their customers keep track of their data usage in terms of mega bytes used. It is therefore meant to improve customer experience and empower them to manage their usage. One of our network vendor partners has piloted this solution through a third party to help customers understand their data consumption in terms of volume of data used. As a responsible corporate, we have the highest regard for customer privacy and we follow a policy of zero tolerance with regard to the confidentiality of customer data. We are also surprised at the Cease & Desist notice served by Flash Networks to Thejesh GN, and categorically state that we have no relation, whatsoever, with the notice.”

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @02:33PM (#9694344)
Just because code/webpages are delivered to you over the web doesn't mean you can take them and republish them somewhere else.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by jimrandomh on Wednesday June 10, 2015 @02:36PM (#9694364)
Just because fingerprints were found at the scene of the burglary doesn't mean you take them and republish them somewhere else.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by ars on Wednesday June 10, 2015 @02:50PM (#9694447)
Fingerprints are not copyrighted, code is.

You might claim fair use if you published it as part of an article, but probably not on GitHub which is intended for using and editing code.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by Steveism on Wednesday June 10, 2015 @03:26PM (#9694688)
What about the copyright of the webpage whose code was altered with these injected ads? It's ironic that a company whose product disrespects the copyright of others would be so sensitive to the issue.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by jimrandomh on Wednesday June 10, 2015 @03:17PM (#9694631)
That was a very imprecise analogy. What we actually have here is the intersection of copyright, digital forensic evidence, three jurisdictions, and facts and circumstances that are in dispute. Figuring out what the law actually says on this matter would be a sizable project for a law firm, and probably can't be settled without a judge.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by DrJokepu on Wednesday June 10, 2015 @03:15PM (#9694612)
But fingerprints are personal data and at least in the EU the handling of personal data is very strictly regulated. It's not the same thing at all, but still the analogy works I think.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by ars on Wednesday June 10, 2015 @03:16PM (#9694622)
Personal data and copyright are completely different things. The analogy doesn't work at all.

For example, even if you are worried about personal data, you can still publish a fingerprint if you don't identify the individual.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:01PM (#9694514)
Publishing research on malware should be perfectly legit.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @03:04PM (#9694539)
Publishing a book report is very different than publishing the book itself.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:14PM (#9694603)
If that book is malware itself? It should be OK, because it's security research and exposure of that malware. It should be covered by fair use.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by errtnsd on Wednesday June 10, 2015 @02:46PM (#9694432)
Doesn't that fall under vigilantism? Publishing fingerprints might get you in trouble.

In most countries you are forbidden to take photos in a private setting without permission, and in some even in public.

wvenable's comment is on point. Just as public websites aren't public domain, publishing information delivered on request might not be legal.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by 0xdeadbeefbabe on Wednesday June 10, 2015 @03:00PM (#9694507)
It may not be legal, but I'm not sure it is wrong either (the web stuff and not the burglary)
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by derefr on Wednesday June 10, 2015 @03:23PM (#9694671)
"Just because", no. But:

1. The server has no access restrictions for the Javascript URL, presumably. So, if you trust the server's configuration to match the owner's intent, then the owner was saying "this page is intended for public consumption."

Which is to say, importantly, not only for their customers to view in exchange for their subscription fees (which would put the ad-injector script under license of whatever TOS the customers agreed to), but rather for anyone to view who has no prior relationship with them, for any purpose.

This is the "reproductions are allowed of works of artistic craftsmanship (buildings, sculptures, etc.) that are permanently situated in a public place or in premises open to the public" argument.

2. The owner never put a copyright claim against anyone else making copies of this work. Like the Internet Archive's copy of their website, say (if there is one.) That would suggest this takedown notice is a motivated use of copyright law to attack someone, rather than business-as-usual of them enforcing their IP.

Judges don't like it when you have a history of not caring about people doing something you could have complained about. They take that as evidence you don't care.

3. Fair use! This is a:

• transformative use (it's visible source code, not an executing program!),

• of a small part of their copyrighted work (it's just the Javascript!),

• intended for a purpose that could be said to be both parody (revealing a previously-unnoticed essence of the original work through transformation) and edification (teaching people that the network is doing this thing.)

There's probably even more arguments than these. I hope the poster takes some of them to Github with a counter-takedown to get their repo back up.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @04:08PM (#9694939)
> The server has no access restrictions for the Javascript URL, presumably. So, if you trust the server's configuration to match the owner's intent, then the owner was saying "this page is intended for public consumption."

That argument did not help weev with AT&T. If they are distributing the code, they are allowed to do that as the copyright owner. That's why it's called copyright. But that doesn't grant anyone else the right to distribute the content. By your argument, any content posted anywhere publicly on the Internet is not subject to copyright restrictions. Which is clearly not the case.

> The owner never put a copyright claim against anyone else making copies of this work.

It's unlikely they are aware of anyone else distributing their work. This may be the only unauthorized distribution of this work so far.

> transformative use (it's visible source code, not an executing program!),

There is nothing transformative about this.

> of a small part of their copyrighted work (it's just the Javascript!),

It must be very small; an excerpt. This is not an excerpt of the program.

> There's probably even more arguments than these.

If they're of the same quality they're unlikely to make a difference. These are poor arguments. Fair use never* applies to copying a complete work.

* It's perhaps possible; but this case certainly doesn't qualify.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by belorn on Thursday June 11, 2015 @07:07AM (#9698887)
It also didn't help in a famous piracy case in Sweden where people shared paid web streamed sports that didn't have any access restrictions. Since the cable company intended for the web pages to be access only by paying customers, sharing them was seen as infringing copyright.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @02:55PM (#9694472)
Is illegal code (i.e. malware) protected by the copyright to begin with? If it is, then all antiviruses blatantly violate copyright. But something tells me they don't need to ask any permission from malware authors.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @03:01PM (#9694512)
It seems like illegal works should be protected by copyright[1]

But that begs the question, as ad injectors are probably not illegal.

[1] http://www.cardozo.yu.edu/sites/default/files/Eldar%20Haber,...

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by walshemj on Wednesday June 10, 2015 @03:28PM (#9694695)
In the UK it would be an offence under the section 3 of Computer misuse act.

"3.unauthorised modification of computer material, punishable by 12 months/maximum fine (or 6 months in Scotland) on summary conviction and/or 10 years/fine on indictment;[8]"

Does India not have something similar on the books.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:09PM (#9694566)
I'm not sure they are not illegal. At least they shouldn't be any less illegal than many other types of malware. But I'm not familiar what laws that falls under.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @04:14PM (#9694974)
Injecting ads into content has been what television stations have been doing for decades. Users of the network service may even have agreed to this in the terms of service for using the network. It's a crappy thing to do but not all crappy things are illegal.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @04:20PM (#9695025)
This example was not about injecting ads. It was about collecting data about users which is violating their privacy (i.e. it's malware).
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @06:16PM (#9695984)
What are you basing this on? Flash Networks said "The javascript mentioned does not collect or store any user data but is used to deliver user messages." and I haven't heard anything to contrary.

In fact, it doesn't sound like it was even going to be used to inject ads except for offering users to upgrade to larger plan when they were near their data expiration.

I agree that any code injection is shady and unwanted but you're just making stuff up.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @06:43PM (#9696150)
On the article:

> “This is a standard solution deployed by telcos globally to help their customers keep track of their data usage in terms of mega bytes used. It is therefore meant to improve customer experience and empower them to manage their usage. One of our network vendor partners has piloted this solution through a third party to help customers understand their data consumption in terms of volume of data used.”

The same thing was claimed about various malware in the past, which was found capable of doing all kind of weird things way beyond "improving customer experience".

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @06:55PM (#9696214)
You are not stating any facts and so this doesn't add anything to the discussion.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by chrisBob on Wednesday June 10, 2015 @03:02PM (#9694516)
Using a copyright work and modifying it in some way often qualifies for fair use. I also think that in your example the antivirus companies would be happy to see who complains about their copyright violation.

http://copyright.gov/fair-use/

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by dkersten on Wednesday June 10, 2015 @03:17PM (#9694629)
Regardless of whether or not it is, the article makes statements about how its " freely downloadable via any browser" and how "The crime, it seems, was the uploading of public code to a public repository". The point is that (legal or not), the code is not public and shouldn't be treated as such. No other code (eg javascript from all the HN starstups' web apps) that is downloadable is automatically "public code". Innocent until proven guilty and all that.

But... since copyright automatically applies to all works, yes, I think it does and should apply to illegal code (and every other code or work out there).

Having said that, I don't particularly see much morally objectionable with what this guy did in this case, even if its not legal.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:29PM (#9694698)
> The point is that (legal or not), the code is not public and shouldn't be treated as such.

I brought a few examples (like antiviruses). How publishing security research even into the public repository with the code of malware that's involved wrong? Fair use should cover it. If it's indeed illegal, then all antiviruses are illegal too, because not only they publish - they redistribute that said code.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @04:16PM (#9694989)
You keep making this argument but it's wrong. Antivirus software does not contain complete copies of malware.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by biot on Wednesday June 10, 2015 @03:33PM (#9694726)
Antivirus software is based upon code signatures. When you install some AV software, it does not come with complete, unabridged copies of every single sample and every mutation of every piece of malware ever. Not only is that a bad idea from a copyright standpoint (regardless of whether any malware author would bother to enforce their rights), but also because the AV software would completely fill up your hard drive and it would give everybody (including competitors) access to complete copies of malware.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:56PM (#9694871)
So aren't those signatures derivative works then?
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @04:13PM (#9694960)
Excerpts of materials are fair use. A signature is even a transformative excerpt. You can't reconstruct the original malware from the signature.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by forgottenpass on Wednesday June 10, 2015 @03:04PM (#9694535)
I assume there is some fair use cover AV providers could argue ("purpose and character of use" sounds like their bag) but I'd be surprised if many authors want to come out of the woodwork to fight that fight with them in the first place. As we can see in this case, it's a big deal that the author is seeking copyright takedown.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:07PM (#9694554)
It should teach them a lesson. Being exposed as malware authors (with intent to sell it to be used for malicious purposes) will not serve them well.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by rosser on Wednesday June 10, 2015 @03:25PM (#9694679)
Yes, malicious code is protected by copyright.

Antivirus software isn't distributing the copyrighted virus, and I can't begin to wrap my head around the conception you must have of how they work, in order to think they do. Copyright is utterly irrelevant to the relationship between computer virii and antivirus software.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:32PM (#9694721)
> Antivirus software isn't distributing the copyrighted virus

Why not? Many of them include patterns for detecting viruses, which literally contain originals in some way (partially at least). There are tons of malware types, including one that's not polymorphic.

Regardless, even if they include malware in full, it should be perfectly fine under fair use. I.e. that malware souldn't be protected by the copyright in such case (because it's for the purpose of security).

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by rosser on Wednesday June 10, 2015 @03:39PM (#9694758)
Fair use doesn't remove a copyrighted work's protections. What ever gave you that idea?

Think of it in criminal law terms: it's like the "affirmative defense" that having a medical marijuana card gives you in states that have such programs. Pot is still illegal, but if you get caught with some, and have a card (and are compliant with the restrictions of your local MMJ program), then the charges are dismissed.

It doesn't change the law; it changes how the law applies to you.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @03:57PM (#9694873)
> Fair use doesn't remove a copyrighted work's protections.

It doesn't remove them, it just says that that they aren't even applicable in that case. I.e. there is nothing to remove when it's not there to begin with.

I agree that it's somewhat poorly defined that's why there can be different ways to view it. See https://w2.eff.org/IP/eff_fair_use_faq.php

Approach of "affirmative defense" doesn't sound logical to me. Approach of limiting copyright applicability makes more sense. I.e. fair use defines some borders beyond which copyright can't reach.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @04:20PM (#9695024)
Fair use is a defense against claims of copyright infringement. In other words, claiming fair use will not keep the law suit from being filed but you can use it as a defense. It isn't a direct limit on copyright applicability.

In other words, distribution of a copyrighted material isn't considered fair use until a judge says it is.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @04:22PM (#9695040)
> Fair use is a defense against claims of copyright infringement.

That's an interpretation of what fair use is. Another one says that it defines public rights, as in limiting the reach of copyright. I.e. it defines exceptions to where copyright applies (and this makes perfect sense to me, unlike the other interpretation). I.e. it defines uncopyrightable scenarios.

The problem is that the law itself is not clearly defined, that's why it becomes a matter of interpretation and is given to judges to handle. May be copyright reform can fix this making this an explicit right in the law to avoid this ambiguity.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by rosser on Wednesday June 10, 2015 @04:32PM (#9695134)
If copyright worked the way you seem to think it does, then the GP's scenario — where someone using a work under Fair Use terms could still be sued, and then has to prove that their use was legitimately Fair Use — wouldn't be the norm.

But it is.

So, there's how you appear to think it works, and there's how it works in the world outside your skull. It turns out, that things in the real world are sometimes sloppy, or inefficient, or illogical, or just plain weird; just because something makes "more" or "perfect" sense to you doesn't begin to make it correct.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @05:25PM (#9695556)
> If copyright worked the way you seem to think it does, then the GP's scenario — where someone using a work under Fair Use terms could still be sued, and then has to prove that their use was legitimately Fair Use — wouldn't be the norm.

So where did presumption of innocence go? I know it's tossed out all the time in copyright (that's the core of the whole DRM approach), but it's not supposed to be that way. If they claim that copyright is violated, they need to prove it (i.e. violation and lack of fair use), and not those who say it was fair use need to prove they have that right.

And if you say that's what's going on in practice (presumption of guilt) - then the whole system is seriously perverted and requires deep fixing.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by rosser on Wednesday June 10, 2015 @05:42PM (#9695699)
I'm not even sure why I'm bothering any more. You seem determined not to hear what anyone else is saying, but instead just keep talking about how things should be, how they're supposed to be.

Which might be an interesting discussion to have, if you were aware enough of how things actually worked to understand the difference between civil and criminal court proceedings. "Presumption of innocence" exists in criminal cases. The kinds of suits that copyright holders tend to engage in over things where the defense argues Fair Use are overwhelmingly civil. (Seriously, has there ever been a criminal copyright infringement prosecution where the defense argued fair use? If so, how did that work out for them?)

Please stop spouting off about how shit should be based solely on an embarrassingly broken a priori idea of how the things you're railing against work, and try to understand how they really, actually work. I promise you that, if nothing else, doing so will better enable you to fight the fight you seem to believe so much in.

Either way, I'm not going to argue any more with you, if you continue to insist on engaging from broken premises. Enjoy the rest of your day.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @05:52PM (#9695787)
Since I'm not a lawyer, please explain why presumption of innocence isn't applied in civil cases? That would be more productive than expecting that everyone should know that just because you do.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @06:25PM (#9696044)
Presumption of innocence doesn't prevent you from having to go to court and defend yourself. However, the DMCA provides safe harbor for sites and networks, essentially removing them from the conflict entirely, if they quickly act to remove contentious materials. Then there is a process by which the two sides actually involved can dispute over the materials can make their case.

The DMCA favors copyright complainants but it also completely absolves providers of liability. So it's a messy compromise.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @06:47PM (#9696174)
> Presumption of innocence doesn't prevent you from having to go to court and defend yourself.

That's right, but you have to defend against what they should prove to the court. But @rosser is claiming that it's not even applicable in the civil law. That's really surprising to me (IANAL just to be clear), so I want to understand why.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by wvenable on Wednesday June 10, 2015 @06:59PM (#9696235)
@rosser is wrong, there is presumption of innocence in civil cases as well (at least in the US). Or to rephrase, the the necessity of proof always lies with the person who lays charges.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by rosser on Wednesday June 10, 2015 @07:19PM (#9696322)
Burden of proof isn't presumption of innocence. Burden of proof always lies with the party making the positive assertion. In criminal trials, that's something like "Shmerl did it, with a pipe, in the pantry" or whatever.

This is why, for example, a criminal defense of insanity must be proven by the defense — and why such a defense is risky. The defense is stipulating to the fact that the defendant committed the act, but arguing the defendant didn't have the requisite mens rea to make their actions a crime. That eliminates the State's burden to prove that they did it, and assumes the burden of proving the defendant's state of mind/lack of culpability at the time.

In a civil case, the question is more one of "Here's why Shmerl is responsible (and, consequently, liable) for what happened." The facts (that Shmerl did whatever, to whomever, at whatever time) are often stipulated to. The positive assertion being made by the plaintiff against him is the degree of liability.

Consider the oft-mocked case of Liebeck v. McDonald's. No one disputed for a second that she bought the coffee at McDonald's, that it was the temperature it was, or that it was spilled. That wasn't remotely the question. Rather, the question was, "Should they have known better, to a degree that makes what happened to her their fault?"

Does that distinction make sense?

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shmerl on Wednesday June 10, 2015 @09:06PM (#9696777)
> The facts are often stipulated to

But they have to prove that those facts constitute a violation of copyright, don't they? And that's not given, since that should mean they have to prove it's not fair use (since fair use can be viewed as a right). If it's not viewed as a right, then what you said is correct. But how it's viewed is decided by the judge ad hoc (since the law is ambiguous). Or there is some other logic there?

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by gcb0 on Wednesday June 10, 2015 @03:06PM (#9694551)
why not?

i can probably patent a full auto gun, even if it's illegal for me to have one

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by sarciszewski on Wednesday June 10, 2015 @02:38PM (#9694380)
If anyone finds themselves in a similar situation, please email me the snippets and explain the story. I'll mirror them for you.

[email protected]

Fuck censorship.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by shiven on Wednesday June 10, 2015 @02:57PM (#9694491)
Your site is down.

Error 526 Ray ID: 1f474c500f7a0ef1 • 2015-06-10 18:56:46 UTC Invalid SSL certificate

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by chrisBob on Wednesday June 10, 2015 @03:14PM (#9694605)
The link in his profile works (https://scott.arciszewski.me/)

even though I see the same error when going directly to https://arciszewski.me/ does not.

My guess is that arciszewski.me is not on the certificate because it is not meant to host web content, only the subdomains do.

Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by sarciszewski on Wednesday June 10, 2015 @03:20PM (#9694649)
Oh, right. I had SSL on both endpoints and the main site was intended to be just a list of family members' domains I hosted (and by that, I usually mean "reverse proxied" because I don't trust them).
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by techaddict009 on Wednesday June 10, 2015 @03:04PM (#9694532)
https://scott.arciszewski.me/contact/ this is the site url probably.
Re:Indian Programmer Exposes Code Injection, Gets a Cease an... by sarciszewski on Wednesday June 10, 2015 @03:00PM (#9694504)
Oh? It's up from here. Maybe it's a CF issue?

Regardless, I have other domains/sites for mirroring content. ;)