Skip to content

fix: remove hardcoded secret in cli.js (CWE-798) - #28

Open
anupamme wants to merge 1 commit into
simonnilsson:mainfrom
anupamme:fix-repo-ios-uploader-cwe-798-cli-password-env
Open

anupamme wants to merge 1 commit into
simonnilsson:mainfrom
anupamme:fix-repo-ios-uploader-cwe-798-cli-password-env

Conversation

@anupamme

Copy link
Copy Markdown

The application accepts Apple ID passwords via command-line argument (-p, --password) which exposes credentials in process listings. On Linux/macOS systems, any user can read /proc/[pid]/cmdline or run 'ps aux' to view command-line arguments of running processes in cleartext. The affected code is bin/cli.js:15. This change is the fix I would apply.

Reference: CWE-798

What changed

  • bin/cli.js

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant