Katalog CVE

CVE-2026-141426

NiskieCVSS 2.0
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.17%

Percentyl 7 - wyżej niż 7% wszystkich znanych CVE

Streszczenie

Nieprawidłowe domyślne uprawnienia (CWE-276) w funkcji gdrive_init() w whatstk (wersje 0.5.0 do 0.9.0) powodują, że katalog ~/.config/whatstk/gdrive i pliki client_secrets.json oraz settings.yaml są tworzone z uprawnieniami wynikającymi z umask (domyślnie 0755/0644), umożliwiając innym lokalnym użytkownikom odczyt sekretu klienta OAuth Google Drive.

Ocena ryzyka

Inny użytkownik tej samej maszyny może odczytać sekret OAuth i uzyskać dostęp do zasobów Google Drive użytkownika.

Rekomendacja

Zaktualizuj whatstk do wersji zawierającej poprawkę lub ręcznie ustaw restrykcyjne uprawnienia (0600/0700) na katalogu i plikach konfiguracyjnych.

Inne podatności w whatstk

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Incorrect Default Permissions (CWE-276) in gdrive_init() (whatstk/utils/gdrive.py) in whatstk from 0.5.0 before 0.9.0 allows another user of the same machine to read the Google Drive OAuth client secret of the user who ran it. The function creates ~/.config/whatstk/gdrive with os.makedirs and no mode argument, copies the supplied client secret file to client_secrets.json with shutil.copyfile, and writes settings.yaml through a plain open call, so all three take whatever the process umask allows. Under a default umask of 022 the directory is created 0755 and both files 0644. shutil.copyfile does not carry the source file's permissions over, so a client secret the user had restricted to 0600 is written out at 0644. Whether the files end up readable by other local users therefore depends on the umask in force when gdrive_init runs and on the permissions of the directories above them, and not on the permissions of the file the user supplied. The refresh token in credentials.json is written by pydrive2 rather than by whatstk and is observed at 0600. This results in the OAuth client secret and the generated settings being readable in plain text by other users of the machine.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS