Skip to content

"/api/packages/{username}/nuget" will always return http.StatusOK no matter whether doer has permission #23349

Open
@yp05327

Description

@yp05327

Description

Related to #22705 CI result: https://drone.gitea.io/go-gitea/gitea/68876

It seems that /api/packages/{ownername}/nuget will always return http.StatusOK no matter whether doer has permission.
Is it by design?

If it is by design, I think it will be a security problem which is same as #23150.
If I give an unexisted username, it will return Internal Server Error
If I give an existed Private username, it will return xml

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions