Security concerns of "the first person who asks" for crate ownership transfer #7173
Replies: 1 comment 4 replies
-
yes
there are currently no additional checks performed. the reason for that being that in all of the cases so far the crate in question was just a name squatted crate without any previous content or downloads.
IMHO this is out of scope for the crates.io team to handle. crate owners can already add new maintainers to their crates without contacting the crates.io team and the same issues would apply in these cases. similarly, the crate owners can also add new people to their projects on GitHub without the GitHub team checking their credentials first. |
Beta Was this translation helpful? Give feedback.
-
Currently https://crates.io/policies says:
(rust-lang/rfcs#3463 includes that as well)
How exactly does this "the first person who asks" work? If a crate has this in its README, does one really just have to write a mail to [email protected] to get access? Are there any checks done by the crates.io team, or can a completely anonymous person, who has never even contributed to the crate, take over the crate like this?
From a security perspective this sounds quite risky, especially considering how Cargo works and that it pulls the latest SemVer compatible version for dependencies, and therefore a potentially malicious version.
Should this policy maybe expanded to explicitly specify which checks will be done by the crates.io team to make sure the requester is somewhat trustworthy (e.g. must have contributed to the crate before)?
Or otherwise, should this section maybe be removed from the policy? Because an unmaintained crate might be better than one taken over by someone with malicious intents.
Beta Was this translation helpful? Give feedback.
All reactions