Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain separate local account on shared host
-
DeliveryVictim runs gdrive_init under umask 022
-
ExploitFiles land 0644 in 0755 directory
-
ExecutionRead ~/.config/whatstk/gdrive/client_secrets.json
-
ImpactExfiltrate plaintext OAuth client secret
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Default permission hardening
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires all of: (1) the attacker already holds a separate unprivileged local account on the same machine; (2) the victim actually used the opt-in Google Drive feature by running gdrive_init in an affected version (0.5.0-0.8.x); (3) a permissive umask (the report assumes the default 022) was in force when gdrive_init ran, causing os.makedirs to create the dir 0755 and shutil.copyfile/open to write client_secrets.json and settings.yaml 0644 - note that because shutil.copyfile does not preserve source permissions, even a 0600 source secret is written world-readable; and (4) the permissions on parent directories above ~/.config/whatstk/gdrive permit another user to traverse and read them. Limiting factors: strictly local (AV:L), no remote vector, no exploitation if the victim never used Google Drive integration or ran under a restrictive umask, and exposure is confined to the client secret and settings.yaml - the refresh token in credentials.json is written by pydrive2 at 0600 and is not affected. |
| Impact | This is a genuinely low-priority, local information-disclosure issue, and the signals agree rather than conflict. The input CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:N, VC:L only) scores 2.0, and the vuln.today decision label is 'monitor' - both pointing to low urgency. It is NOT in CISA KEV, no EPSS probability is supplied, and the input contains no confirmed working exploit code (only the reporter's own CNA advisory at secur0.com), so exploitation status is: no public exploit identified at time of analysis. The AV:L means there is no remote exposure at all - an attacker must already hold a separate local account on the same shared machine. The AT:P (attack requirement) correctly reflects that exploitation is contingent on conditions outside the attacker's control: the victim must have run gdrive_init under a permissive umask and have parent-directory permissions that allow traversal. Impact is bounded - only the OAuth client secret and settings.yaml are exposed (VC:L); the more sensitive refresh token in credentials.json is written by pydrive2 at 0600 and is NOT disclosed. Net: a real-but-minor hardening bug on multi-user hosts, not an emergency. No key signals conflict; the main gaps are the absence of EPSS data and any independently verified exploit. |
| Exploit ScenarioDerived | On a shared multi-user Linux host, a victim installs whatstk 0.5.0-0.8.x and runs the Google Drive setup (gdrive_init) under the default umask 022; the tool copies their OAuth client secret to ~/.config/whatstk/gdrive/client_secrets.json at mode 0644 inside a 0755 directory. A second, unprivileged local user who can traverse the home directory simply reads that world-readable file and recovers the plaintext OAuth client secret and settings. No confirmed working exploit code is published - only the reporter's advisory describing the flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Local information disclosure in whatstk 0.5.0 through 0.8.x: the Google Drive setup helper gdrive_init() creates ~/.config/whatstk/gdrive and its contents using umask-derived permissions, so the user's Google OAuth client secret (client_secrets.json) and generated settings.yaml can be read in plain text by other users of the same machine. Exposure requires that the victim actually ran gdrive_init on an affected version and that a permissive umask such as the common 022 was in force, producing a 0755 directory and 0644 files; because shutil.copyfile does not carry source permissions over, even a client secret the user had locked to 0600 is written out world-readable. Severity is low (vendor CVSS 4.0 score 2.0; independent assessment CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N) and the priority label is monitor; no public exploit identified at time of analysis, and the refresh token in credentials.json is written separately by pydrive2 at 0600 and is not affected.
RemediationAI
Upgrade whatstk to 0.9.0 or later (release tag v0.9.0, upstream fix in PR #183 / commit 01d66d8); the patch sets the config directory to 0700 and client_secrets.json, settings.yaml and the pydrive2-written credentials.json to 0600, creating files via os.open with the mode so they are never briefly world-readable, and it also re-tightens a config directory left permissive by an older version. For installations that cannot upgrade immediately, the exposure is governed entirely by the umask, so the practical compensating controls are to run gdrive_init under a restrictive umask (umask 077 - side effect: every file and directory created by that shell session becomes owner-only, which can break other tooling) and to manually correct existing artefacts with chmod 700 ~/.config/whatstk/gdrive and chmod 600 on client_secrets.json, settings.yaml and credentials.json (side effect: manual steps must be repeated per user and per machine and are not enforced by the library). Because the client secret may already have been readable by other local accounts, rotating the OAuth client secret in the Google Cloud console is warranted where exposure is suspected; note that disabling the Google Drive integration entirely avoids the issue but removes the feature, and the OS-level Windows case has no equivalent permission exposure because those bits are not honoured there. Advisory references: https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0 and https://secur0.com/en/cna/cve-list/cve-2026-141426-whatstk-world-readable-gdrive-client-secret.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
whatstk is a Python library for WhatsApp chat analysis that offers an opt-in Google Drive integration; gdrive_init() in whatstk/utils/gdrive.py bootstraps that integration by creating a configuration directory with os.makedirs (no mode argument), copying the user-supplied OAuth client-secret JSON into client_secrets.json with shutil.copyfile, and writing settings.yaml through a plain open() call, then delegating authentication to pydrive2. The root cause is CWE-276 (Incorrect Default Permissions): none of those three creation paths specifies a mode, so all inherit whatever the process umask allows - under the default 022 the directory lands at 0755 and both files at 0644. A subtlety that makes the flaw worse than a simple umask slip is that shutil.copyfile does not preserve the source file's permission bits, so a client secret deliberately restricted to 0600 is re-created at 0644 regardless of how carefully the user protected the original. Whether other local users can actually read the secret then depends on the umask in force at run time and on the permissions of the parent directories above ~/.config/whatstk/gdrive rather than on the supplied file. The refresh token in credentials.json is written by pydrive2 rather than by whatstk and was observed at 0600, so token theft is not part of this issue. The upstream fix (PR #183, commit 01d66d8) introduces CONFIG_DIR_MODE 0o700 and CREDENTIAL_FILE_MODE 0o600 and a _write_private helper that passes the mode directly to os.open so the file is never briefly world-readable, and also tightens a pre-existing permissive config directory and the pydrive2-written credentials.json after authentication; the permission bits are POSIX-only and largely ignored on Windows. The trigger is the plain creation of these paths - no special race or crafted input is described in the available sources.
Know when Whatstk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Local co-tenant account needed (AV:L, PR:L); exposure depends on umask and parent-directory perms outside attacker control (AC:H); only client secret leaks, no integrity/availability impact (C:L, I:N, A:N).
Primary rating from Vendor (Secur0).
CVSS VectorVendor: Secur0
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Memory and disk exhaustion in whatstk 0.7.0 through 0.8.x lets anyone who supplies a chat export force the parsing proce
Silent message loss in whatstk 0.3.0 through 0.8.x lets a party who supplies one of the chat exports cause messages to v
EUVD-2026-140469
GHSA-cxvf-m5wc-m5fp
NVD
CVE.org
Exploit-DB