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

No access check for attachment download #7908

Closed
1 of 3 tasks
davidsvantesson opened this issue Aug 18, 2019 · 2 comments
Closed
1 of 3 tasks

No access check for attachment download #7908

davidsvantesson opened this issue Aug 18, 2019 · 2 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Milestone

Comments

@davidsvantesson
Copy link
Contributor

Description

Attachments are accessible just knowing their links, there are no access check of them. This was reported previously in #4721. That issue was closed with a fix on another issue regarding upload of attachment.

Note the behavior differs depending on setting.
With REQUIRE_SIGNIN_VIEW = false, attachments is public accessible without login.
With REQUIRE_SIGNIN_VIEW = true, attachments is only accessible if logged in, although still no check if you should have access to the specific file.

I find this behavior illogical. Either the UUID is enough as security and there should be no need to check authorization in any of the settings above. Or otherwise it should be checked if user has correct access right to the repository (or it is public).

@stale
Copy link

stale bot commented Oct 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Oct 18, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Oct 18, 2019
@stale stale bot removed the issue/stale label Oct 18, 2019
@sapk sapk added this to the 1.11.0 milestone Jan 5, 2020
@sapk
Copy link
Member

sapk commented Jan 5, 2020

Since #9340, all access to attachments are checked for right to access related to the issue or release their are attached.

@sapk sapk closed this as completed Jan 5, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants