News for hackers. Stuff that matters.
Re:Mojolicious – Perl real-time web framework by doesnt_know on Monday July 28, 2014 @05:24AM (#8095830)
The "installation" instructions wgets a script (over http) which in turn curls a raw github link of cpanminus which is "a script to get, unpack, build and install modules from CPAN" which then downloads and installs the perl module.

How many developers or "power users" would have just ran that command without even thinking about it?

I guess signing packages with trusted keys and serving them over https is far too lame for devs these days.

(Not that I'm calling out this particular project, it's seems to be crazy popular to offer "curl some.script | bash" as installation instructions lately for some reason.)

Re:Mojolicious – Perl real-time web framework by txutxu on Monday July 28, 2014 @05:49AM (#8095886)
This is a fully open source project. And that, includes all the packaging and deployment tools involved and available (tons of options).

Big corps (and users which avoid smartphones, certain social networks, marketing campaigns, etc, like me), should develop their internal git mirrors, cpan mirror, build systems, etc. As usual.

Many developers reproduce the same issue with node, python, ruby etc. That does not remove LOVE from this beautiful framework.

I can state that the mojolicio.us "web development can be fun again" is true for me.

Just go for it, check yourself the docs and the source, hack, and judge by yourself.

We are talking about that, not about the lack of common sense of many developers, when the topic is about systems, security and operational tasks.

Perl apps can be deployed securely after auditing them. What knowledge do you lack about this defocus topic ?

Re:Mojolicious – Perl real-time web framework by odc on Monday July 28, 2014 @05:51AM (#8095891)
These instructions are for people unfamiliar with perl and CPAN.

Developers are supposed to do "cpanm Mojolicious", like for any other perl module.

Re:Mojolicious – Perl real-time web framework by dsr_ on Monday July 28, 2014 @07:35AM (#8096124)
So the people least equipped to evaluate the security implications of the friendly instructions are the ones who are most encouraged to do something awful?

"Thou shalt not curse the deaf, nor put a stumbling-block before the blind"

Re:Mojolicious – Perl real-time web framework by sigzero on Monday July 28, 2014 @08:27AM (#8096302)
That is a big leap in logic really.
Re:Mojolicious – Perl real-time web framework by VLM on Monday July 28, 2014 @08:41AM (#8096349)
Whats awful about it? I don't understand the difference in security vetting between that installer or the code its installing.

What I'm getting at is its probably easier for me to get this line of source code added to a perl module:

# Don't actually run this in a Perl interpreter, esp not as root, OK?

`rm -Rf /`;

It would be harder to get this added to the installer:

# Don't actually run this in a shell script, esp not as root, OK?

rm -Rf /

Also if CPAN / its installer / github / etc get owned, the last problem to be concerned about is one little perl module. You have bigger trouble.

Re:Mojolicious – Perl real-time web framework by tokenizerrr on Monday July 28, 2014 @10:07AM (#8096746)
Not if you're a MITM attacker... CPAN (presumably) retrieves its source code either over HTTPS or validates what it downloads using signing keys like 'doesnt_know' referred to. These curl scripts do not, they just grab executable code using http, and then blindly execute it. If you were MITMing these people, you could easily adjust this code and pwn their machines. This isn't about CPAN/github getting compromised, this is about things being modified on the wire (which is a very real possibility when using insecured wifi, or less likely if for some reason the goverment wants you).
Re:Mojolicious – Perl real-time web framework by friedo on Monday July 28, 2014 @10:42AM (#8096983)
So then install it via CPAN, or via your OS package manager.
Re:Mojolicious – Perl real-time web framework by tokenizerrr on Monday July 28, 2014 @11:29AM (#8097332)
Yes, I realize this is possible. The point is we shouldn't encourage other developers to use insecure methods when secure alternatives are easily available.
Re:Mojolicious – Perl real-time web framework by mike-cardwell on Monday July 28, 2014 @05:32AM (#8095845)
Hopefully, most people would check their package managers first. Debian and Centos both have packages for it at least.
Re:Mojolicious – Perl real-time web framework by collyw on Monday July 28, 2014 @06:22AM (#8095953)
Distro packages are often a bit behind the official releases. I prefer to develop in the most recent version of a framework / library, as it generally makes things a bit more future proof.
Re:Mojolicious – Perl real-time web framework by BugBrother on Monday July 28, 2014 @08:02AM (#8096213)
What collyw said. And most people prefer to use their own installation of Perl (see perlbrew) instead of the system Perl for development. The same seems to go for other scripting environments.
Re:Mojolicious – Perl real-time web framework by singingfish on Monday July 28, 2014 @09:50PM (#8100326)
nope, cpan is a fast changing target. You can make it easy on yourself by building your own perl (with perlbrew, super easy) and managing your cpan modules with cpanminus. The system perl is for the system, your perl is for you.
Re:Mojolicious – Perl real-time web framework by sarciszewski on Monday July 28, 2014 @07:30PM (#8099903)
Oh god, wait until you see this thread? https://github.com/kraih/mojo/issues/656
Re:Mojolicious – Perl real-time web framework by mst on Monday July 28, 2014 @07:49PM (#8099958)
When your immediate response to a post pointing out your non-constructive attitude is to say "Oh excuse me your highness." followed by "Blow me", I'd say the project leader's initial estimation of how constructive you were intending to be was pretty accurate.
Re:Mojolicious – Perl real-time web framework by sarciszewski on Monday July 28, 2014 @07:56PM (#8099974)
Self-fulfilling prophecy if anything.
Re:Mojolicious – Perl real-time web framework by sigzero on Tuesday July 29, 2014 @07:52AM (#8101731)
Would have been so hard to just ask "Hey, why do you do the shell/pipe install?" and then engage in MEANINGFUL conversation about the pro/cons? Guess not.