Описание
Soft Serve vulnerable to arbitrary file writing through SSH API
Attackers can create/override arbitrary files with uncontrolled data.
For a PoC, spin up an instance of soft-serve as explained in the README, and execute the following command:
ssh -p23231 localhost repo commit icecream -- --output=/tmp/pwned
It should have created a file in /tmp/pwned.
Пакеты
Наименование
github.com/charmbracelet/soft-serve
go
Затронутые версииВерсия исправления
< 0.10.0
0.10.0
Связанные уязвимости
CVSS3: 7.7
nvd
5 месяцев назад
Soft Serve is a self-hostable Git server for the command line. In versions 0.9.1 and below, attackers can create or override arbitrary files with uncontrolled data through its SSH API. This issue is fixed in version 0.10.0.