🔍 CVE-2026-105268

4.3
CVSS Score
MEDIUM
2026-10-06
2026-10-13 14:38
✅ 완료

🇰🇷 한글 설명

Gitea의 이슈 첨부파일 API 경로가 이슈 본문뿐만 아니라 댓글에 달린 첨부파일까지 허용하는 취약점입니다. 이로 인해 이슈 작성자가 댓글에 게시된 다른 사용자의 첨부파일 이름을 변경하거나 삭제할 수 있습니다.

💡 쉬운 설명

게시글을 올린 사람이 댓글에 달린 다른 사람의 사진이나 파일을 마음대로 지우거나 이름을 바꿀 수 있는 문제입니다. 파일 내용 자체를 수정할 수는 없지만, 파일 관리에 대한 권한이 잘못 설정되어 있습니다.

🇺🇸 원문 (English)

The Gitea API routes for issue attachments (`/api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}`) also accepted attachments that belong to comments on the issue. Because the author of an issue may edit and delete the issue's attachments, a user who opened an issue could rename or delete attachments that other users had posted in comments on that issue. The contents of the attachments could not be changed.

📍 영향받는 시스템

Gitea (해당 취약점이 해결되기 전 버전)

⚔️ 공격 벡터

이슈 작성자가 특정 API 경로를 호출하여 댓글에 포함된 첨부파일의 ID를 대상으로 삭제 또는 이름 변경 요청을 보냄

🛡️ 대응 방법

Gitea를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

댓글 첨부파일 ID로 API 요청 시 권한 오류(403 Forbidden 등)가 발생하지 않고 조작이 가능하다면 취약한 상태입니다.

Shell / Script
curl -s http://<gitea-instance>/api/v1/repos/<owner>/<repo>/issues/<index>/assets/<attachment_id> | grep -q 'error'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

💻 영향받는 소프트웨어

Git