logoalt Hacker News

cpuguy83today at 3:51 PM2 repliesview on HN

The problem isn't the language here, it's cargo executing build.rs from dependencies which necessarily allows arbitrary code execution.


Replies

jaentoday at 8:42 PM

(as I and others have mentioned in the thread): The attacker can just move the malicious code from build.rs to lib.rs (ie. build-time -> test/execution-time).

Then the problem is the language, as the grandparent observes.

show 1 reply
dwattttttoday at 8:54 PM

Running what you've built when you've added a malicious dependency also causes arbitrary code execution.