Skip to content

No access check for attachment download #7908

Closed
@davidsvantesson

Description

@davidsvantesson

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions