News for hackers. Stuff that matters.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by korijn on Thursday February 11, 2021 @05:39PM (#26108361)
In obvious cases like that, I agree with you. In real life however my dependencies are rarely that simple.

So let's imagine a REST API library that needs disk and network access to do it's work. How do I know it doesn't abuse my permission?

And what about its transient dependencies?

Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by jonny_eh on Thursday February 11, 2021 @06:18PM (#26108843)
But why would a REST API library need disk access? If it required that, it would raise suspicion for me.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by korijn on Friday February 12, 2021 @05:04PM (#26119083)
Maybe it support serving files (static content)? Or writing them to disk? Either way can we rather argue the point instead of the example?