I’m running Gitea 1.24.6 on my Ubuntu server, and until recently everything worked fine. Suddenly, my SSH keys stopped working and I was being prompted for a password to fetch my remote (Gitea) repos. When I use a password, it says the repo doesn’t exist.
I am in the web interface and I can see my repos do still exist, and that the commits appear to be there, but I can’t access them using git.
I didn’t realize what was going on until I went into /admin/users/ and saw that I now have over 5,000 users, with email domains like gitea.local, exploit.local, db.invalid, attacker.com, and so on.
I just went into the .ini and set ENABLE_REGISTRATION to ‘false’. Clearly I had not configured this properly when I set it up. What do I do now? I need to get rid of all these thousands of users, and I need to be able to access my repos again.
To be fair, it’s maybe an overstatement to say it was hacked. It just has tons of registered, fake users. But this has coincided with the repos becoming unavailable so these things must be related.