Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade gitea.dev/models/user to version 1.27.0-rc0 or higher.
Affected versions of this package are vulnerable to Improper Restriction of Security Token Assignment in the organization and permission endpoints when a personal access token is restricted to public-only scope. An attacker can access private organization membership and authorization details by sending requests to endpoints such as /api/v1/user/orgs and /api/v1/users/{username}/orgs/{org}/permissions using a public-only scoped token.