-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedissue/not-a-bugThe reported issue is the intended behavior or the problem is not inside GiteaThe reported issue is the intended behavior or the problem is not inside Giteamodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Description
- Gitea version (or commit ref): 1.6.2
- Git version: 1.9.1
- Operating system: Debian 7
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
Several API endpoints can be accessed without any authorization at all. I have found following GET requests which responded to me this way:
/orgs/{org}/repos
/orgs/{org}/members
/orgs/{org}
Some other endpoints I have tested require authorization (e.g. /orgs/{org}/hooks
). I think the only gitea API endpoint which should be accessible without any authorization is version
- any listing of repositories, users or organization should require it.
Screenshots
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedissue/not-a-bugThe reported issue is the intended behavior or the problem is not inside GiteaThe reported issue is the intended behavior or the problem is not inside Giteamodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality