VDB
EN
MEDIUM

GHSA-cwcx-382v-8m9g

Weblate Vulnerable to Authenticated SSRF via Project Backup Import bypassing validate_repo_url

상세

### Impact An authenticated user with `project.add` permission (default on hosted Weblate SaaS and for any user holding an active billing/trial plan) can import a crafted project backup ZIP whose `components/<name>.json` contains an attacker-chosen `repo` URL pointing at a **private address** (e.g. `http://127.0.0.1:9999/`) or using a **non-allow-listed scheme** (e.g. `file://`, `git://`). Weblate persists the component via `Component.objects.bulk_create([component])[0]`, which bypasses Django's `full_clean()` and therefore never runs the `validate_repo_url` validator. The URL is subsequently written verbatim into `.git/config` by `configure_repo(pull=False)`.

### Patches * https://github.com/WeblateOrg/weblate/pull/19061 * https://github.com/WeblateOrg/weblate/pull/19062

### Workarounds Limiting who can create projects limits the scope.

### Resources Weblate thanks @fg0x0 for reporting this vulnerability via GitHub.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

PyPI / weblate
최초 영향 버전: 0 수정 버전: 5.17.1
수정 pip install --upgrade 'weblate>=5.17.1'

참고