Moodle Jmol Filter 6.1 Directory Traversal / Cross-Site Scripting -

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1617683 漏洞类型
发布时间 2019-05-21 更新时间 2019-05-21
漏洞平台 N/A CVSS评分 N/A
# Exploit Title: Moodle filter_jmol multiple vulnerabilities (Directory Traversal and XSS)
# Date: 20 May 2019
# Exploit Author: Dionach Ltd
# Exploit Author Homepage:
# Software Link:
# Version: <=6.1
# Tested on: Debian

The Jmol/JSmol plugin for the Moodle Learning Management System displays chemical structures in Moodle using Java and JavaScript. The plugin implements a PHP server-side proxy in order to load third party resources bypassing client-side security restrictions. This PHP proxy script calls the function file_get_contents() on unvalidated user input.

This makes Moodle instances with this plugin installed vulnerable to directory traversal and server-side request forgery in the default PHP setup, and if PHP's "expect" wrapper is enabled, also to remote code execution. Other parameters in the plugin are also vulnerable to reflected cross-site scripting. Note that authentication is not required to exploit these vulnerabilities.

The JSmol Moodle plugin was forked from the JSmol project, where the directory traversal and server-side request forgery vulnerability was partially fixed in 2015.

* Plugin:
* Note on functionality:
* Vulnerability announcement:
* Partial fix:

This issue is tracked at the following URLs:


== Proof of Concept ==

1. Directory traversal
2. Reflected cross-site scripting
3. Malware distribution