-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-addS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
Say a company has an internal registry and with an internal crate company-utils
. If an attacker knows this and creates a malicious crate in crates.io with that name, people will pick it up when running cargo add
and forgetting the --registry
flag
Proposed Solution
Warn the user when a new registry dependency is added without --registry
and the dependency name exists in one of the configured registries.Se
Notes
See also killercup/cargo-edit#451
weihanglo
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-addS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.