LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2017, 02:16 PM   #16
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319

Here's a good description of the actual problem:

http://incolumitas.com/2016/06/08/ty...kage-managers/

Obviously, Igadoter, the reason this didn't happen on CPAN is because no-one decided to tried it on CPAN yet. That's the only reason. Why not? Well, the fact that Perl usage has been going into the toilet for the last decade is probably a factor..

Last edited by dugan; 09-18-2017 at 03:03 PM.
 
2 members found this post helpful.
Old 09-18-2017, 03:25 PM   #17
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Albert Einstein said:

Quote:
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
So, 17289 hosts affected?

PS. The typosquatting could affect any huge repository, have no importance the programming language. For example, there is something about PHP and its Composer:

https://phpsec.xyz/composer-typosqua...y-877d263509ec

Last edited by Darth Vader; 09-19-2017 at 05:52 PM.
 
1 members found this post helpful.
Old 09-19-2017, 01:51 AM   #18
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by igadoter View Post
Seems Perl is free from such problems. One point more for Perl.
HAHA No.

As much as I'd like to root for Perl/CPAN being scott-free here, the real reason is simply that Perl/CPAN isn't as attractive as an attack vector as much as it used to be. In fact, an earlier attempt at typosquatting attacks concluded with

Quote:
The CPAN ecosystem was simply too complex and cumbersome to try to attack. The declining popularity of CPAN and Perl in the past years was another reason to exclude it from research.
As a CPAN author myself, I could add another reason: there are many eyes (human and otherwise) looking at the CPAN upload queue especially at post-upload; from places like #perl freenode IRC as well as on Twitter and MetaCPAN.
 
Old 09-19-2017, 08:41 AM   #19
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by Didier Spaier View Post
Do you really think that you know what you are speaking about?
I hope yes. If there is libpyth.so and there is call foobar (whatever) from this library you need to put something instead which looks like foobar from libpyth.so. I hope it is possible to extract core (minimal) python install which is needed by the system, and replace that core by something else. Maybe I will have a look what is minimal Python install, once I will succeed I will post here. I mean to run Slackware with only minimal Python install.

Say let start with minimal Salckware installation, let extend it and look at which point I need Python. There are many resources, which may help in this: LFS - do I need Python to build LFS? Maybe yes because system-wide scripts are written in Python (as it is in Debian). One can take BSD ports to have a look which apps require Python and what libraries actually, and of course one can directly query app what libraries are needed for this app. I don't think it is really very difficult. It is only the question: why should I to do that? If you guys don't care for such things, why should I? I am only PC computer user. Playing games, surfing web, watching movies, and making Linux my hobby.
 
Old 09-19-2017, 09:13 AM   #20
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by igadoter View Post
I mean to run Slackware with only minimal Python install.
Is it just because of this attack? Because Pat doesn't use pip for python scripts. He grabs all the source and builds the packages manually using SlackBuilds. The SlackBuilds on SBo provide links directly to source and you build the packages using SlackBuilds.

The issue in the news with PyPI is when users use pip to install something and they misspell the package... if someone decided to upload a package to it that had that misspelled name, pip would install it. PyPI didn't get hacked, and no legitimate packages were affected (unless they were pulling things in via pip and misspelled the packages). This isn't even limited to python, as node.js and ruby both ran into the same issue.

Quote:
For his bachelor's thesis, Tschacher explored the feasibility of typosquatting attacks on programming language package registries, specifically Python's PyPI, Node.JS's npm and Ruby's gem.

By creating 214 versions of popular packages with misspelled names (eg, "reqeusts" instead of Python's "requests"), he was able to distribute thousands of fake code libraries.

SOURCE: https://www.theregister.co.uk/2017/0...n_poor_typing/
There's two very easy fixes for this. 1. Build things yourself. If there isn't already a python SlackBuild on SBo, it's not hard to create and then you can upload it yourself. 2. Make sure you spell things right if you decide to use pip.

Now... if you have other reasons to remove python from Slackware, then that could make more sense, but if it is just a knee-jerk reaction to this news, then personally, I think you're overreacting.
 
2 members found this post helpful.
Old 09-19-2017, 09:18 AM   #21
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by igadoter View Post
I don't think it is really very difficult.
I think it would be very difficult. Many applications these days use Python in one way or another, and it's not easy to track because Python is normally used by invoking the interpreter, not by linking against a shared library.

Quote:
Originally Posted by igadoter View Post
It is only the question: why should I to do that?
That's a very good question. If your goal is to waste time securing your machine against an imaginary vulnerability, then by all means do it. Otherwise, I can't think of any reason.
 
Old 09-19-2017, 09:33 AM   #22
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Igadoter, you "don't think it's very difficult" to replace all of the Python interpreter's link libraries (including the one that implements most of the interpreter itself) with implementations of your own?

I was going to say this a couple of messages ago, but: I think this has gone on long enough. You've been getting more ridiculous with each post. Feel free to stop trolling any time.

Last edited by dugan; 09-19-2017 at 09:35 AM.
 
2 members found this post helpful.
Old 01-03-2019, 09:33 PM   #23
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
https://twitter.com/badthingsdaily/s...96079569158144
 
Old 01-04-2019, 01:55 AM   #24
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,499

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Excuse me, but if someone try to install Slackware and ends with installing Dlackware, it is no one fault but he's just at mercy of his own stupidy.

Same here.

Last edited by LuckyCyborg; 01-04-2019 at 01:57 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tor Suite Malicious Software? Teufel LQ Suggestions & Feedback 4 11-03-2014 02:23 PM
LXer: First malicious apps to exploit critical Android bug found in the wild LXer Syndicated Linux News 0 07-24-2013 10:20 AM
LXer: Introducing Ubuntu PyPi Lens for Unity LXer Syndicated Linux News 0 12-06-2012 02:30 PM
Linux and Trojans/Malicious software in general thelinuxist Linux - Security 3 11-24-2012 09:47 PM
Libraries not found after compiling software. TwineSatchel Linux - Software 5 10-16-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration