Gitea Pentesting
Common Directories
/api/swagger
/api/v1/repos/search?q=test
/api/v1/users/search?q=test
/api/v1/users/<username>/repos
/explore/organizations
/explore/repos
/explore/users
# OAuth
/.well-known/openid-configuration
/login/oauth/authorize
/login/oauth/access_token
/login/oauth/userinfo
/login/oauth/keysInvestigation
Source Code in Repositories
Go Back to Previous Commits
Get Secrets in Web Hooks
Find User Credentials
Git Fetch Remote Code Execution (RCE)
Metasploit
Git Hooks Remote Code Execution (RCE)
1. Login
2. Create a New Repository
3. Go to the Repository’s Settings
4. Update to the Reverse Shell Payload
5. Start Listener in Terminal
6. Create the New Repository in Terminal
Swagger API
Get New Token & Authorize
Delete the Two-Factor
Dump Credentials in Database
Last updated