Skip to content
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

There's code injection vulnerability of alluxio.util.CommonUtils.getUnixGroups #17766

Open
LetianYuan opened this issue Jul 12, 2023 · 1 comment
Labels
type-bug This issue is about a bug

Comments

@LetianYuan
Copy link

LetianYuan commented Jul 12, 2023

Affected Alluxio Version:
All the version before the latest(2.9.3).

Describe the vulnerability
Passing username with special characters of unix shell as parameter of alluxio.util.CommonUtils.getUnixGroups(java.lang.String) can inject malicious commands. For example, the following code
CommonUtils.getUnixGroups("| echo 123");
would finally execute bash -c id -gn | echo 123; id -Gn. Therefore malicious code echo 123 is executed.

To Reproduce
Just execute alluxio.util.CommonUtils.getUnixGroups("| echo 123") would reproduce it.

Are you planning to fix it
I've already submitted a pull request. See #17256.

@LetianYuan LetianYuan added the type-bug This issue is about a bug label Jul 12, 2023
@ChunxuTang
Copy link
Member

@LetianYuan Thanks for raising the issue and submitting the PR!
FYI: @yyongycy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

No branches or pull requests

2 participants