OSClass Directory Traversal and Arbitrary File Upload Vulnerabilities
OSClass is prone to a directory-traversal vulnerability and an arbitrary-file-upload vulnerability. An attacker can exploit these issues to obtain sensitive information and to upload arbitrary code and run it in the context of the webserver process. To exploit the arbitrary file upload vulnerability, an attacker can take a php file and rename it .gif, upload it as a picture for a new item, change the useragent of the browser to 'Mozilla/4.0 (compatible; MSIE 5.0', use combine.php to move itself to oc-content/uploads, use uploads/combine.php to move the malicious php file to /remote.php, and then run the uploaded php file. To exploit the directory traversal vulnerability, an attacker can change the useragent of the browser to 'Mozilla/4.0 (compatible; MSIE 5.0', move combine.php into the web root, and then run combine to download config.php.