FAQ — GDC Storage Check
English — Security & Token FAQ
What happens if ~/.config/gdc/store.json is leaked?
The impact is much lower than leaking your Google password or browser cookies, but you should still revoke the exposed tokens immediately.
- What an attacker CANNOT do (enforced by
drive.filescope): Cannot sign in to your Google account, change your password or 2FA, read/list/download/modify/delete existing personal Drive files, or access Gmail, Google Photos, Calendar, Contacts, or billing. - What an attacker CAN do: Read the
email,alias,purpose,manualPlan, andexpiresAtmetadata in the file, view Drive storage quota, upload spam files consuming Drive space (viadrive.file), or reuse your personal BYOclientId/clientSecretif configured.
Immediate recovery steps:
- Run
gdc remove <alias>for each affected account, or open Google Account Permissions and remove access for GDC Storage Check. - If using BYO mode, delete the exposed OAuth Client in Google Cloud Console and create a new one.
- Run
gdc add <alias>again to issue fresh, clean tokens.
Tiếng Việt — Câu hỏi thường gặp
Nếu bị lộ file ~/.config/gdc/store.json thì sẽ bị sao?
Mức độ ảnh hưởng nhẹ hơn nhiều so với lộ mật khẩu hay cookie đăng nhập, nhưng bạn vẫn cần thu hồi token ngay lập tức.
- Kẻ xấu KHÔNG làm được gì (nhờ scope tối thiểu
drive.file): Không đăng nhập hay đổi được mật khẩu/2FA; không đọc, liệt kê, tải về, sửa hay xóa file cá nhân có sẵn trên Google Drive; không truy cập được Gmail, Google Photos, Calendar, Contacts hay thanh toán. - Kẻ xấu LÀM ĐƯỢC gì: Đọc danh sách
email,alias, ghi chúpurpose,manualPlan,expiresAttrong file; xem dung lượng Drive; upload file rác làm đầy bộ nhớ Drive (do scopedrive.filecho phép tạo file mới); hoặc dùng ké quota API nếu bạn dùng chế độ BYO (clientId/clientSecret).
Cách xử lý ngay lập tức:
- Chạy
gdc remove <alias>cho từng tài khoản, hoặc vào Google Account Permissions và thu hồi quyền của GDC Storage Check. - Nếu dùng chế độ BYO, xóa OAuth Client cũ trong Google Cloud Console và tạo cặp mới.
- Chạy lại
gdc add <alias>để cấp bộ token mới hoàn toàn sạch.