Skip to content

Mention python package index --extra-index-url potential dependency confusion attack in web-ui #22616

@laundmo

Description

@laundmo

Description

Currently, Gitea suggests using the command pip install --extra-index-url <gitea-url> <packagename>. The --extra-index-url is susceptible to dependency confusion attacks, see: pypa/pip#8606
This suggested command also does not match the documented command which uses the --index-url <gitea-url> --no-deps flags.

This should be mentioned in the web-ui to make users aware of the potential security risks from using this for private packages.

Screenshots

image

Gitea Version

1.18.3

Can you reproduce the bug on the Gitea demo site?

No

Operating System

No response

Browser Version

Firefox 109.0

Activity

laundmo

laundmo commented on Jan 27, 2023

@laundmo
Author

note: i set Can you reproduce the bug on the Gitea demo site? to No because i have not tried to reproduce it.

added a commit that references this issue on Jan 27, 2023
51a92cb
added a commit that references this issue on Jan 27, 2023
7c12b1e
locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @KN4CK3R@laundmo

      Issue actions

        Mention python package index --extra-index-url potential dependency confusion attack in web-ui · Issue #22616 · go-gitea/gitea