🇰🇷 한글 설명
Gitea의 저장소 생성 양식 및 API에서 gitignores 필드의 길이를 제한하지 않아 발생하는 취약점입니다. 공격자가 비정상적으로 큰 값을 제출하면 템플릿 읽기 및 메모리 사용량이 증폭되어 시스템 가용성이 저하될 수 있습니다.
💡 쉬운 설명
저장소를 만들 때 입력창에 너무 많은 데이터를 넣으면 서버의 메모리를 과도하게 사용하여 서버가 느려지거나 멈출 수 있습니다. 이는 일종의 메모리 과부하 공격입니다.
🇺🇸 원문 (English)
Gitea does not limit the length of the gitignores field accepted by repository-creation forms and the API. Repository initialization splits the field into template names, repeatedly reads the referenced templates, and buffers their contents in memory. An attacker who can create repositories can submit an oversized value to amplify template reads and memory use, impairing availability.
📍 영향받는 시스템
Gitea (gitignores 필드 입력이 가능한 모든 버전)
⚔️ 공격 벡터
저장소 생성 API 또는 웹 양식을 통한 대규모 gitignores 데이터 전송
🛡️ 대응 방법
Gitea를 최신 보안 패치가 적용된 버전으로 업데이트하거나 입력값 길이에 대한 제한을 설정하십시오.
🔧 검증 코드
출력된 Gitea 버전을 확인하여 해당 취약점이 해결된 최신 버전인지 대조하십시오.
curl -s http://<gitea-instance>/api/v1/version | grep -i 'gitea'