Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
laundmo opened this issue Jan 27, 2023 · 1 comment · Fixed by #22620
Labels
topic/packages topic/ui Change the appearance of the Gitea UI type/bug

Comments

@laundmo
Copy link

laundmo commented 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: 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

@laundmo laundmo added type/bug topic/ui Change the appearance of the Gitea UI labels Jan 27, 2023
@laundmo
Copy link
Author

laundmo commented 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.

KN4CK3R added a commit that referenced this issue Jan 27, 2023
Fixes #22616

Co-authored-by: zeripath <art27@cantab.net>
yardenshoham pushed a commit to yardenshoham/gitea that referenced this issue Jan 27, 2023
Fixes go-gitea#22616

Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/packages topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants