Improper Access Control
Gitea versions prior to 1.6.3 and 1.7.x prior to 1.7.0-rc2 contain an Incorrect Access Control vulnerability in Delete/Edit file functionality that can result in an attacker deleting files outside the repository he/she has access to. For this vulnerability to be exploited an attacker must get write access to "any" repository including self-created ones.
CWE-284 - Improper Access Control
Listed 5th in the 'OWASP Top Ten', improper (or broken) access control attacks are a fundamental type of vulnerability. This includes a broad range of design flaws that enable users to act outside of their intended permissions. They can use these privileges to gain access to restricted files and functionality such as accessing restricted information, falsifying records, destroying data, or executing commands.