🇰🇷 한글 설명
Gitea의 웹 설치 프로그램이 이미 사용자가 존재하는 데이터베이스에 접근 가능한 경우, 기존 관리자 계정 이름으로 설치 양식을 제출하면 비밀번호 검증 없이 해당 계정의 인증 세션이 발급됩니다. 이로 인해 공격자는 관리자 권한을 획득하여 비밀번호를 변경하는 등 시스템 전체를 제어할 수 있습니다.
💡 쉬운 설명
설치 화면이 다시 열릴 수 있는 설정 오류를 이용해, 비밀번호를 몰라도 기존 관리자 계정으로 바로 로그인할 수 있는 보안 결함입니다. 공격자가 이 기능을 악용하면 관리자 권한을 통째로 뺏을 수 있어 매우 위험합니다.
🇺🇸 원문 (English)
When Gitea's web installer is reachable against a database that already contains users, such as after `INSTALL_LOCK` has been reset to `false`, submitting the install form with an administrator username matching an existing account issued an authenticated session for that account without verifying its password. If the account is an administrator, the session grants full administrative access, including changing the account's password. Databases with a single user also did not require the reinstall confirmation.
📍 영향받는 시스템
Gitea (INSTALL_LOCK가 false로 설정되어 웹 설치 프로그램에 접근 가능한 모든 버전)
⚔️ 공격 벡터
웹 설치 프로그램(Web Installer) 페이지에 접속하여 기존 관리자 계정 정보를 입력하여 인증 우회
🛡️ 대응 방법
설치 완료 후 INSTALL_LOCK 설정을 true로 변경하여 웹 설치 프로그램 접근을 차단하고 최신 보안 패치를 적용하십시오.
🔧 검증 코드
결과값에서 INSTALL_LOCK가 false로 되어 있다면 웹 설치 프로그램을 통한 인증 우회 공격에 취약한 상태입니다.
grep -r "INSTALL_LOCK" /path/to/gitea/conf/app.ini 2>/dev/null