-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
API privacy / security - organization endpoints can be accessed without an access token #5603
Comments
Hmm, I don't think this is an issue. GitHub allows unauthorized access in their APIs as well. I tried querying my org and it did not show my private repos given your steps. |
|
It should probably follow setting if public access is allowed or not and based on that require token or allow without it. Needs rechecking if this is really is issue or not |
I see my repro on gitea test server is not representative, given the server is public. My gitea server is set to allow access only to registered users ( |
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. |
According #6731, @OndrejSpanel there is no problem here. |
What I do not understand after reading that issue: Do you mean the behaviour I describe is as designed (or at least acceptable), or that the issue was fixed meanwhile? |
@OndrejSpanel That means it's as designed. My tests haven't found a privacy / security problem on that. Those APIs will return public content when you have no access token. |
My issue about privacy is that I think no content should be considered "public" (accessible without an access token) when you require login even to access the Gitea main pages (i.e. when you use the option REQUIRE_SIGNIN_VIEW = true). |
This is how it currently works, and what @lunny test show in #6731 If
As they all should, based on: Lines 75 to 83 in 19ec260
I don't see an example of this not working (the screenshot in the original issue is from public gitea that doesn't not have Is there a specific example that can be seen of this not working? |
I was concerned about issues like this but before migrating to Gitea (from GitLab) but I tested with my local install (running 1.8 with Assuming there are no issues in
|
Let's close this and please feel free to reopen it. |
I confirm the issue does not exist. My previous testing methodology was bad, as I was testing it in a browser session which has already performed the authentication. Testing in a fresh browser returns error as expected. |
No harm no foul. Better to be careful about these sorts of things. |
[x]
):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 isversion
- any listing of repositories, users or organization should require it.Screenshots
The text was updated successfully, but these errors were encountered: