T09 · Insecure Skill Coding Practices
- Location
scripts/config_manager.py:55- Finding
Douyin Session Cookie Exposed Through Command-Line Arguments and Plaintext Storage
- Content
View full analysis
") return manager.set_cookie(sys.argv[2]) ``` ### Technical Analysis The Skill instructs users to provide a live Douyin session cookie as a command-line argument. Command-line secrets can be exposed through shell history, terminal logs, process-monitoring tools, process listings, or diagnostic data. The configuration manager then persists the cookie directly in `config.json` as plaintext. The file is created using the process's default permissions and current `umask`. The code does not explicitly require owner-only permissions, use an operating-system credential store, encrypt the secret, or validate whether an existing configuration file is a symbolic link. A Douyin session cookie is an authentication credential rather than ordinary configuration data. Anyone who ...[truncated 1301 chars]- Remediation
View remediation
