StackStorm / StackStorm/st2-packages
StackStorm credentials leak from '~/.st2/config'
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 28
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
curl|bash installer creates a ~/.st2/config file containing StackStorm login creds with read-all permissions:
$ ls -la ~/.st2/config
-rw-r--r-- 1 vagrant vagrant 54 May 23 14:09 /home/vagrant/.st2/config
This way unauthorized Linux user can read st2 login creds username:password saved by the other user.
Ideally, ~/.st2/ dir should have also 2750 permissions, (currently 0755), - that part could be addressed in StackStorm/st2 core itself.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the curl|bash installer that creates ~/.st2/config and inspect how it creates ~/.st2/ and writes credentials. Verify the resulting permissions with ls -la and confirm that another Linux user cannot read the saved username and password; the directory-permission change may belong in StackStorm/st2 core.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100