-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crmsh - shell injection in cmd status
#1429
Comments
nicholasyang2022
added a commit
to nicholasyang2022/crmsh
that referenced
this issue
May 30, 2024
cmd status
nicholasyang2022
added a commit
to nicholasyang2022/crmsh
that referenced
this issue
May 30, 2024
nicholasyang2022
added a commit
to nicholasyang2022/crmsh
that referenced
this issue
May 30, 2024
nicholasyang2022
added a commit
to nicholasyang2022/crmsh
that referenced
this issue
May 30, 2024
liangxin1300
added a commit
that referenced
this issue
May 31, 2024
`crm status ...` appends tail arguments to the `crm_mon -1` without quoting or escaping. This is unsafe as they will be parsed as a shell command. This patch changes how crmsh calls `crm_mon`. Arguments is passed as string arrays instead of shell cmdline. Fixes #1429.
liangxin1300
added a commit
that referenced
this issue
May 31, 2024
liangxin1300
added a commit
that referenced
this issue
May 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to Nicholas Yang, it is "maybe some kinds of shell injection. The tailing arguments get appended to
crm_mon -1
without being quoted and executed as a cmdline"; hence, I'm opening this bug.The text was updated successfully, but these errors were encountered: