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

Missing call to setgroups before setuid in sway/main.c #884

Closed
Fale opened this issue Sep 6, 2016 · 1 comment
Closed

Missing call to setgroups before setuid in sway/main.c #884

Fale opened this issue Sep 6, 2016 · 1 comment

Comments

@Fale
Copy link
Contributor

Fale commented Sep 6, 2016

In https://github.com/SirCmpwn/sway/blob/master/sway/main.c#L159 there is a call to setgroups before setuids.
There is a high probability this means it didn't relinquish all groups, and this would be a potential security issue to be fixed.
See https://www.securecoding.cert.org/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges

@Fale
Copy link
Contributor Author

Fale commented Sep 28, 2016

Closed via #911

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

No branches or pull requests

1 participant