No access check for attachment download #7908
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
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).
The text was updated successfully, but these errors were encountered: