The article mentions that RubyGems is vulnerable to this, and that Shopify in particular downloaded and ran a gem named "shopify-cloud", but I'm curious as to how this is possible given a "normal" bundler pure-lockfile setup, or more generally the source-block directives I've seen in most Gemfiles. That is, given a Gemfile.lock like, e.g. GIT remote: https://github.com/thoughtbot/appraisal revision: 5675d17a95cfe904c…
Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
21–30 of 412 posts
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#22I’m cackling at how great this is. This is what happens when you trust the internet forever and just scarf down any old thing at build time. Of course it’ll get exploited! That’s what evil people do.
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#23I’m cackling at how great this is. This is what happens when you trust the internet forever and just scarf down any old thing at build time. Of course it’ll get exploited! That’s what evil people do.
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#24Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#25I know that node has `package-lock.json` and `yarn.lock`, which include integrity checks. Are these checks decorative only? How could npm have been affected by this issue?
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#26Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#27I’m cackling at how great this is. This is what happens when you trust the internet forever and just scarf down any old thing at build time. Of course it’ll get exploited! That’s what evil people do.
I'm more amazed by the fact that they got bounties because the attack wouldn't be (easily) possible without insider knowledge on which dependencies their internal build system used
If I'm not mistaken insider knowledge wasn't necessary.
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#28I dunno, feels like fair game to me
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#29I’m cackling at how great this is. This is what happens when you trust the internet forever and just scarf down any old thing at build time. Of course it’ll get exploited! That’s what evil people do.
Re: Dependency Confusion: How I Hacked Into Apple, Microsoft and Other Companies
#30I know that node has `package-lock.json` and `yarn.lock`, which include integrity checks. Are these checks decorative only? How could npm have been affected by this issue?
So this probably wouldn't show up on the final build distributed and deployed somewhere. But it did manage to run arbitrary code on developers' machines of those companies.