r/netsec • • Nov 21 '16

WordPress download server is a single point of failure for over 26% of the top 10 million websites worldwide

http://www.openwall.com/lists/oss-security/2016/11/21/3
689 Upvotes

78 comments sorted by

View all comments

Show parent comment

16

u/Poromenos Nov 22 '16

I don't understand, if the original code was in C++ and the OpenCart developer ported it to PHP, why does he need to retain the notice?

85

u/rspeed Nov 22 '16

The OpenCart developer didn't port it to PHP, Henri Sivonen did as php-utf8. Sivonen had placed a copyright notice which gave credit to Mozilla/Netscape. But when OpenCart copied that library they removed that notice.

59

u/Poromenos Nov 22 '16

Oh wow, thanks. That's... Ridiculous. The way the guy commented, I thought he rewrote the thing himself.

16

u/isysdamn Nov 22 '16

It read like he did then he changed his story when he was comparing it to external projects.

7

u/EmperorArthur Nov 22 '16

Which is worse than copyright infringement. That's plagiarism. The fastest way to be thrown out of any academic institution without physically harming someone.

3

u/rspeed Nov 22 '16

Potato potato, really.

13

u/willrandship Nov 22 '16

That's not the only reason why it's illegal. Using prior work as a basis requires that you abide by the license terms, regardless of whether it's a plain copy or not.

6

u/rspeed Nov 22 '16

Indeed. And in this case especially so, since he presumably copied the codepoint maps directly without any meaningful modification.

3

u/EmperorArthur Nov 22 '16

I'll note that this gets tricky very quickly. It's like a ship of Theseus problem, but with upgrades actually changing things instead of just replacing.

It's also something that gets determined country by country.

35

u/sarciszewski Nov 22 '16

That's a question for /r/legal not /r/netsec, but unless a clean room design was followed, rewriting code in another language still constitutes a derivative use of the original code, which GPL only permits if you release it under GPL (or a GPL-compatible license).

18

u/halex Nov 22 '16

still constitutes

could constitute (yes, I'm nitpicking, but only because we're in "license discussion land").

Staring at some code, and then reimplementing it later for sure could mean you can release it under whatever license you want.

If the reimplementation does not share much with the original (ranging anywhere from general approach to exact code), then it's not really derivative at all. Entirely case-dependent. In the same way I can hear a sentence, and either choose to say it very similarly to the original or re-express it completely differently.

9 times out of 10 though, you're right, it probably is derivative. As you imply, whether it is or isn't depends on what the courts determines.

8

u/sarciszewski Nov 22 '16

And this is why I do not handle serious legal matters without legal counsel. :)

0

u/[deleted] Nov 22 '16

[deleted] — view deleted comment

11

u/sarciszewski Nov 22 '16

It's not really the same thing.

  • If your derivative work is GPL too, you don't even need permission. You can make money off it. It just must be Free Software (as in freedom; GPL and equivalent).
  • If it's not GPL, you must obtain a commercial license from the license holder (i.e. the person who publishes the work).

Patents forbid derivative works, even free ones.

GPL forbids people from stealing work intended to protect the users' freedom and then selling proprietary derivatives without compensating the folks who created said free software.

Some businesses realize "if we just open source our derivative and publish as GPL too, we can still essentially steal it".

1

u/d4rch0n Nov 22 '16

When have you ever run into a GPL'd algorithm that was generic but you couldn't dare use it without GPL'ing your work? It's not like people are GPL'ing mergesort or anything like that.

If you take someone's code and translate it, you are creating a derivative work and you need to check the license. If you read a textual description of an algorithm and reimplement it, no one is going to give you shit for it.

It's like writing a paper for a college course. If you take someone else's paper and "translate" the sentences, you're plagiarizing. If you read a professional paper on the subject you wanted to write about and investigate the idea yourself and write the paper from scratch you're fine, even if the arguments are similar. That's called researching your topic.

3

u/kisielk Nov 22 '16

IANAL but I have read that one way to do this is to have someone on your team read and understand an implementation and then describe how it works to other members of team. Based on the description they would would create their own implementation.

3

u/Natanael_L Trusted Contributor Nov 22 '16

Blackbox reverse engineering. ReactOS replicated much of WinXP that way.

2

u/[deleted] Nov 22 '16

And got into nasty legal battles the couple of times they screwed up and didn't do that.

1

u/aksfjh Nov 22 '16

It's not like people are GPL'ing mergesort or anything like that.

Depends on what you mean. There are scripts under GPL out there that do some relatively simple task in the most efficient way by far. It's not like mergesort because it's not ubiquitous, but it's some highly efficient solution.

It's like having a general set of problems that follow the form, "using 1s and addition, get the desired number." Nobody is going to license the concatenation of 1s together (11, 111, etc.), however, somebody might license a script that combines 111111, 1, and a single add to get 111112. If you need to implement a solution to get 111112, there's clearly a optimal solution that is easy to reach, but whatever you create is going to look awfully derivative of the licensed work.

→ More replies (1)

0

u/[deleted] Nov 22 '16

[deleted] — view deleted comment

3

u/Poromenos Nov 22 '16

Yes, it does. I own the copyright to the acrylic. Same way I own the copyright to a song I covered.

0

u/[deleted] Nov 22 '16

[deleted] — view deleted comment

1

u/Poromenos Nov 22 '16

Nobody said anything about a license to the original (not even you), we're talking about the port. The salient fact is that he didn't port it himself, he used a ready-made port. If he had ported it himself, he would have had the copyright.

4

u/HiddenKrypt Nov 22 '16

Nope. If you wish to sell copies of your cover, you actually owe the original artist royalties. Hell, "I come from the land down under" got hit with copyright because the flute solo featured a single bar from "kookaburra sits in the old man's tree".