News for hackers. Stuff that matters.
Re:The lack of namespaces on crates.io is a feature by papaf on Friday September 11, 2020 @01:08PM (#24444855)
We did look and learn; a lot of crates.io was informed by several of us having experience with CPAN, RubyGems, and npm.

Don't those package registries all suffer from not having namespaces? RubyGems in particular [1].

[1] https://thehackernews.com/2020/04/rubygem-typosquatting-malw...

Re:The lack of namespaces on crates.io is a feature by rat87 on Friday September 11, 2020 @03:31PM (#24446453)
Namespaced packages have almost the same problem

People can just have maliciously typeo-d namespaces

Actually you could argue it's worse since people tend to pay more attention to package names rather then namespace names

Re:The lack of namespaces on crates.io is a feature by steveklabnik on Friday September 11, 2020 @01:10PM (#24444879)
Everything has upsides and downsides. There are downsides to the Rubygems approach.

However, typosquatting is an orthogonal problem to namespacing, you can still typosquat a namespace.

Re:The lack of namespaces on crates.io is a feature by papaf on Friday September 11, 2020 @01:35PM (#24445197)
From the article:

This is not the first time typosquatting attacks of this kind have been uncovered.

Popular repository platforms such as Python Package Index (PyPi) and GitHub-owned Node.js package manager npm have emerged as effective attack vectors to distribute malware.

"Orthogonal" suggests no connection but what I see above is a list of package managers that don't have namespacing.

Re:The lack of namespaces on crates.io is a feature by steveklabnik on Friday September 11, 2020 @01:40PM (#24445251)
They didn't make the claim that no namespaces had anything to do with this, that's an inference you're making from the specific list, when it could be for any number of reasons. For example, these are some of the largest package management ecosystems in the world, so they're more likely to be attacked than smaller ones. (You can of course come back and say that there are other massive ecosystems too, but that's kind of my point: there's more to a discussion than a random article listing a few ecosystems.)

I stated my reasoning in my comment: you can typo squat a namespace, just as easily you can any identifier. I don't see any inherent difference between the two.

Re:The lack of namespaces on crates.io is a feature by arthur_pryor on Friday September 11, 2020 @04:10PM (#24446820)
> "Orthogonal" suggests no connection but what I see above is a list of package managers that don't have namespacing.

correlation does not equal causation.

how is it not apparent that typosquatting is possible regardless of whether namespacing is in play?

for example, URLs are namespaced, and are the classic example of typosquatting: https://en.wikipedia.org/wiki/Typosquatting