🇰🇷 한글 설명
wger 2.6 미만 버전에서 인증된 공격자가 타인의 slot_entry ID를 사용하여 임의의 운동 로그를 삽입할 수 있는 취약점이 존재합니다. 소유권 검증 과정에서 slot_entry 외래 키가 누락되어 타인의 데이터에 접근이 가능하며, 이로 인해 피해자의 운동 데이터 계산이 오염될 수 있습니다.
💡 쉬운 설명
로그인한 사용자가 다른 사람의 운동 기록에 몰래 가짜 데이터를 끼워 넣을 수 있는 보안 결함입니다. 이로 인해 다른 사용자의 운동 목표치나 통계 데이터가 잘못 계산되는 문제가 발생합니다.
🇺🇸 원문 (English)
wger is a free, open-source workout and fitness manager. Prior to version 2.6, an authenticated attacker can inject arbitrary workout log entries into any other user's `SlotEntry` by supplying the victim's `slot_entry` ID in a `POST /api/v2/workoutlog/` request. The `slot_entry` foreign key is not included in the ownership verification performed by `WorkoutLogViewSet.get_owner_objects()`, so the server accepts and persists the cross-user reference without error. Because `SlotEntry.get_config_data()` retrieves associated logs via `self.workoutlog_set.all()` with no user filter, the attacker's injected data is silently folded into the victim's progressive-overload calculations, corrupting their auto-generated weight and repetition targets. Version 2.6 contains a patch.
📍 영향받는 시스템
wger version < 2.6
⚔️ 공격 벡터
인증된 공격자가 POST /api/v2/workoutlog/ 요청 시 피해자의 slot_entry ID를 포함하여 전송
🛡️ 대응 방법
wger를 최신 버전인 2.6 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 2.6 미만(예: 2.5.x)이면 취약한 상태입니다.
python3 -c "import wger; print(wger.__version__)" 2>/dev/null || echo 'Version check failed'