Skip to content

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

Closed
@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions