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

lgtm warning - misc. #329

Closed
avan989 opened this issue Dec 23, 2019 · 3 comments · Fixed by #355
Closed

lgtm warning - misc. #329

avan989 opened this issue Dec 23, 2019 · 3 comments · Fixed by #355
Milestone

Comments

@avan989
Copy link
Contributor

avan989 commented Dec 23, 2019

Describe the bug
reference issues #320

posix/osfileapi.c

line 186:
execl(shell, "sh", "-c", Cmd, NULL); /* does not return if successful */
--
  | The value of this argument may come from call to getenv and is being passed to execl

Reporter Info
Anh Van, NASA Goddard

@avan989
Copy link
Contributor Author

avan989 commented Dec 26, 2019

Moved osapi-filesys.c, and os-impl-posix-files.c to separate issue.

@skliper
Copy link
Contributor

skliper commented Dec 30, 2019

This is a significant security concern. Suggestion is to separate out the shell functionality and make it optionally included (preference is per build system option). Or remove shell functionality entirely.

Related to nasa/cFE#84

@skliper
Copy link
Contributor

skliper commented Jan 8, 2020

CCB 20190108 - see comment on #332, will move forward with current pull request and consider separation/optional inclusion in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants