Headline
CVE-2022-41955: RCE via MOSS functionality
Autolab is a course management service, initially developed by a team of students at Carnegie Mellon University, that enables instructors to offer autograded programming assignments to their students over the Web. A remote code execution vulnerability was discovered in Autolab’s MOSS functionality, whereby an instructor with access to the feature might be able to execute code on the server hosting Autolab. This vulnerability has been patched in version 2.10.0. As a workaround, disable the MOSS feature if it is unneeded by replacing the body of run_moss
in app/controllers/courses_controller.rb
with render(plain: "Feature disabled", status: :bad_request) && return
.
Impact
A remote code execution vulnerability was discovered in Autolab’s MOSS functionality, whereby an instructor with access to the feature might be able to execute code on the server hosting Autolab.
Patches
The vulnerability has been patched in v2.10.0.
Workarounds
Disable the MOSS feature if it is unneeded by replacing the body of run_moss in app/controllers/courses_controller.rb with render(plain: "Feature disabled", status: :bad_request) && return.
References
- Instructions to set up MOSS
- Uncontrolled Command Line
- Command Line Injection in Ruby
For more information
If you have any questions or comments about this advisory:
- Open an issue in https://github.com/autolab/Autolab/
- Email us at [email protected]