
Scripts d'exploitation éducatifs pour les attaques HTTP/3 (CVE-2022-30592) incluant HTTP3-loris, HTTP3-stream et HTTP3-flooding, testés contre des serveurs compatibles QUIC.
Basé sur le travail : E. Chatzoglou, V. Kouliaridis, G. Kambourakis, G. Karopoulos, and S. Gritzalis, "A hands-on gaze on HTTP/3 security through the lens of HTTP/2 and a public dataset", Computers & Security, p. 103051, 2022.
Le dépôt actuel a pour but de partager les scripts que nous avons utilisés à des fins éducatives. Ces attaques faisaient partie de notre étude et ont été testées contre 6 serveurs compatibles QUIC (IIS, NGINX, LiteSpeed, Cloudflare, H2O et Caddy) configurés pour communiquer avec HTTP/3. Le script http-stream est l'exploit du problème CVE-2022-30592 qui affectait la bibliothèque lsquic. Ce script peut également être exploité contre le serveur Litespeed.
Pour l'exploitation de ces attaques, le client Ubuntu 18.04 a été utilisé, avec l'aide de la bibliothèque Python aioquic pour HTTP3-loris et HTTP3-stream. Pour l'attaque HTTP3-flooding, l'outil curl a été utilisé, avec le support de HTTP/3. Les instructions suivantes concernent l'installation d'aioquic, pour les assauts HTTP3-loris et HTTP3-stream.
Modifiez le paramètre URL pour celui de la cible. Notez qu'en fonction des capacités du serveur ciblé, différentes valeurs peuvent être nécessaires pour chaque paramètre des exploits.
Les instructions suivantes concernent l'installation de curl, pour l'assaut HTTP3-flooding.
Après la connexion bash au docker, exécutez ./http3-flood.sh.
====================================================
Licence MIT
Copyright (c) 2022 Efstratios Chatzoglou
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.