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

Closed
opened 2025-11-02 08:59:56 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @laundmo on GitHub (Jan 27, 2023).

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: https://github.com/pypa/pip/issues/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

Originally created by @laundmo on GitHub (Jan 27, 2023). ### 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: https://github.com/pypa/pip/issues/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](https://user-images.githubusercontent.com/24855949/215058616-7af41516-36b3-4230-9d6f-ebd171f4e9f0.png) ### 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
GiteaMirror added the topic/packagestopic/uitype/bug labels 2025-11-02 08:59:56 -06:00
Author
Owner

@laundmo commented on GitHub (Jan 27, 2023):

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

@laundmo commented on GitHub (Jan 27, 2023): note: i set **Can you reproduce the bug on the Gitea demo site?** to No because i have not tried to reproduce it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10161