Moodle (Modular Object-Oriented Dynamic Learning Environment) is an open source software e-learning platform that provides educators tools to create a course web site. Moodle has been developed under the General Public License and many of its components were developed without a specific design documentation including its security services. This paper presents an object oriented model of Moodle using the Unified Model Language and an analysis of its security services as well as solutions to its security vulnerabilities.