From f5addb24c1941d7071ce902232a37da431701951 Mon Sep 17 00:00:00 2001 From: sandeep <8293321+ehsandeep@users.noreply.github.com> Date: Fri, 4 Jun 2021 23:53:21 +0530 Subject: [PATCH] misc updates --- technologies/{graphql.yaml => graphql-detect.yaml} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename technologies/{graphql.yaml => graphql-detect.yaml} (96%) diff --git a/technologies/graphql.yaml b/technologies/graphql-detect.yaml similarity index 96% rename from technologies/graphql.yaml rename to technologies/graphql-detect.yaml index eafbfe26f2..1794593fe9 100644 --- a/technologies/graphql.yaml +++ b/technologies/graphql-detect.yaml @@ -1,7 +1,7 @@ -id: graphql +id: graphql-detect info: - name: GraphQL API + name: GraphQL API Detection author: NkxxkN & ELSFA7110 severity: info @@ -51,6 +51,7 @@ requests: headers: Content-Type: application/json + body: '{"query":"query IntrospectionQuery{__schema {queryType { name }}}"}' matchers-condition: and @@ -58,8 +59,10 @@ requests: - type: status status: - 200 + - type: regex regex: - "__schema" - "(Introspection|INTROSPECTION|introspection).*?" - ".*?operation not found.*?" + condition: or \ No newline at end of file