Skip to content

Conversation

@ronalchn
Copy link
Contributor

There exists a security issue where any user on the system can obtain root privileges, because isolate is vulnerable to a privilege escalation attack.

The default setup installs isolate with the permissions of 4755, so any user can execute isolate and perform this attack. A corresponding pull request for MOE is at bblackham/moe-cms#3. A demonstration of how it might be performed (without actually performing it), is at https://github.com/ronalchn/isolate-cheater, in the test which uses system-cronjob-writer/main.cpp.

To protect your system against the attack immediately, you can do one of the following:

  • delete the isolate executable
  • chmod to 4754, chgrp to a new group, and only add to the group users who already have root access
  • or just apply this commit

Note that any old copy of the isolate executable can be used as an attack vector - check to see if any old versions are used

isolate: Update from NZOI/moe-cms@ee98549

drop root privileges, use real user id to open metafile - security issue - can be used for privilege escalation attacks for users permitted

close metafile to prevent box_inside writing false data to it - see https://github.com/ronalchn/isolate-cheater
@giomasce giomasce merged commit ab511bb into cms-dev:master Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants