Skip to content

Feature Proposal - Dependency Confusion Warning #17

@davidus27

Description

@davidus27

In pip there is a known possibility for dependency confusion attack. There were discussions in pip about solving this problem by removing potentially dangerous flag --extra-index-url or returning an error on install.

AFAIK there wasn't any real fix or alternation of this vulnerability. Your tool might be an ideal for solving this problem.

Proposed feature:

  • In case when two different registry urls are provided as arguments by using --extra-index-url the tool could raise an warning about dangerous configuration.

  • On top of that, in case when it installs the version from alternative registry with bigger package version (red flag for possible attack) it might warn the developer for possible dependency confusion attack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions