2021-06-04 18:23:21 +00:00
|
|
|
id: graphql-detect
|
2020-04-20 12:52:29 +00:00
|
|
|
|
|
|
|
info:
|
2021-06-04 18:23:21 +00:00
|
|
|
name: GraphQL API Detection
|
2022-03-15 13:53:23 +00:00
|
|
|
author: nkxxkn,elsfa7110,ofjaaah,exceed
|
2020-08-03 21:52:00 +00:00
|
|
|
severity: info
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 124
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: tech,graphql
|
2020-04-20 12:52:29 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-04-20 12:52:29 +00:00
|
|
|
- method: POST
|
2024-04-12 10:51:25 +00:00
|
|
|
path:
|
|
|
|
- "{{BaseURL}}{{paths}}"
|
|
|
|
body: '{"query":"query IntrospectionQuery{__schema {queryType { name }}}"}'
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
|
2024-04-12 10:31:51 +00:00
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- "/HyperGraphQL"
|
|
|
|
- "/___graphql"
|
|
|
|
- "/altair"
|
|
|
|
- "/api/cask/graphql-playground"
|
|
|
|
- "/api/graphql"
|
|
|
|
- "/api/graphql/v1"
|
|
|
|
- "/explorer"
|
|
|
|
- "/express-graphql"
|
|
|
|
- "/gql"
|
|
|
|
- "/graph"
|
|
|
|
- "/graph_cms"
|
|
|
|
- "/graphiql"
|
|
|
|
- "/graphiql.css"
|
|
|
|
- "/graphiql.js"
|
|
|
|
- "/graphiql.min.css"
|
|
|
|
- "/graphiql.min.js"
|
|
|
|
- "/graphiql.php"
|
|
|
|
- "/graphiql/finland"
|
|
|
|
- "/graphql"
|
|
|
|
- "/graphql-console"
|
|
|
|
- "/graphql-devtools"
|
|
|
|
- "/graphql-explorer"
|
|
|
|
- "/graphql-playground"
|
|
|
|
- "/graphql-playground-html"
|
|
|
|
- "/graphql.php"
|
|
|
|
- "/graphql/console"
|
|
|
|
- "/graphql/graphql-playground"
|
|
|
|
- "/graphql/schema.json"
|
|
|
|
- "/graphql/schema.xml"
|
|
|
|
- "/graphql/schema.yaml"
|
|
|
|
- "/graphql/v1"
|
|
|
|
- "/je/graphql"
|
|
|
|
- "/laravel-graphql-playground"
|
|
|
|
- "/playground"
|
|
|
|
- "/portal-graphql"
|
|
|
|
- "/query"
|
|
|
|
- "/query-api"
|
|
|
|
- "/query-explorer"
|
|
|
|
- "/query-laravel"
|
|
|
|
- "/sphinx-graphiql"
|
|
|
|
- "/subscriptions"
|
|
|
|
- "/v1"
|
|
|
|
- "/v1/altair"
|
|
|
|
- "/v1/api/graphql"
|
|
|
|
- "/v1/explorer"
|
|
|
|
- "/v1/graph"
|
|
|
|
- "/v1/graphiql"
|
|
|
|
- "/v1/graphiql.css"
|
|
|
|
- "/v1/graphiql.js"
|
|
|
|
- "/v1/graphiql.min.css"
|
|
|
|
- "/v1/graphiql.min.js"
|
|
|
|
- "/v1/graphiql.php"
|
|
|
|
- "/v1/graphiql/finland"
|
|
|
|
- "/v1/graphql"
|
|
|
|
- "/v1/graphql-explorer"
|
|
|
|
- "/v1/graphql.php"
|
|
|
|
- "/v1/graphql/console"
|
|
|
|
- "/v1/graphql/schema.json"
|
|
|
|
- "/v1/graphql/schema.xml"
|
|
|
|
- "/v1/graphql/schema.yaml"
|
|
|
|
- "/v1/playground"
|
|
|
|
- "/v1/subscriptions"
|
|
|
|
- "/v2"
|
|
|
|
- "/v2/altair"
|
|
|
|
- "/v2/api/graphql"
|
|
|
|
- "/v2/explorer"
|
|
|
|
- "/v2/graph"
|
|
|
|
- "/v2/graphiql"
|
|
|
|
- "/v2/graphiql.css"
|
|
|
|
- "/v2/graphiql.js"
|
|
|
|
- "/v2/graphiql.min.css"
|
|
|
|
- "/v2/graphiql.min.js"
|
|
|
|
- "/v2/graphiql.php"
|
|
|
|
- "/v2/graphiql/finland"
|
|
|
|
- "/v2/graphql"
|
|
|
|
- "/v2/graphql-explorer"
|
|
|
|
- "/v2/graphql.php"
|
|
|
|
- "/v2/graphql/console"
|
|
|
|
- "/v2/graphql/schema.json"
|
|
|
|
- "/v2/graphql/schema.xml"
|
|
|
|
- "/v2/graphql/schema.yaml"
|
|
|
|
- "/v2/playground"
|
|
|
|
- "/v2/subscriptions"
|
|
|
|
- "/v3"
|
|
|
|
- "/v3/altair"
|
|
|
|
- "/v3/api/graphql"
|
|
|
|
- "/v3/explorer"
|
|
|
|
- "/v3/graph"
|
|
|
|
- "/v3/graphiql"
|
|
|
|
- "/v3/graphiql.css"
|
|
|
|
- "/v3/graphiql.js"
|
|
|
|
- "/v3/graphiql.min.css"
|
|
|
|
- "/v3/graphiql.min.js"
|
|
|
|
- "/v3/graphiql.php"
|
|
|
|
- "/v3/graphiql/finland"
|
|
|
|
- "/v3/graphql"
|
|
|
|
- "/v3/graphql-explorer"
|
|
|
|
- "/v3/graphql.php"
|
|
|
|
- "/v3/graphql/console"
|
|
|
|
- "/v3/graphql/schema.json"
|
|
|
|
- "/v3/graphql/schema.xml"
|
|
|
|
- "/v3/graphql/schema.yaml"
|
|
|
|
- "/v3/playground"
|
|
|
|
- "/v3/subscriptions"
|
|
|
|
- "/v4/altair"
|
|
|
|
- "/v4/api/graphql"
|
|
|
|
- "/v4/explorer"
|
|
|
|
- "/v4/graph"
|
|
|
|
- "/v4/graphiql"
|
|
|
|
- "/v4/graphiql.css"
|
|
|
|
- "/v4/graphiql.js"
|
|
|
|
- "/v4/graphiql.min.css"
|
|
|
|
- "/v4/graphiql.min.js"
|
|
|
|
- "/v4/graphiql.php"
|
|
|
|
- "/v4/graphiql/finland"
|
|
|
|
- "/v4/graphql"
|
|
|
|
- "/v4/graphql-explorer"
|
|
|
|
- "/v4/graphql.php"
|
|
|
|
- "/v4/graphql/console"
|
|
|
|
- "/v4/graphql/schema.json"
|
|
|
|
- "/v4/graphql/schema.xml"
|
|
|
|
- "/v4/graphql/schema.yaml"
|
|
|
|
- "/v4/playground"
|
|
|
|
- "/v4/subscriptions"
|
2021-06-04 18:23:21 +00:00
|
|
|
|
2021-09-02 11:59:10 +00:00
|
|
|
stop-at-first-match: true
|
2020-10-09 15:49:07 +00:00
|
|
|
matchers-condition: and
|
2020-04-20 12:52:29 +00:00
|
|
|
matchers:
|
2020-10-09 15:49:07 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-06-04 18:23:21 +00:00
|
|
|
|
2021-11-12 05:57:26 +00:00
|
|
|
- type: word
|
|
|
|
part: header
|
2021-11-12 07:25:49 +00:00
|
|
|
words:
|
|
|
|
- "application/json"
|
2021-11-12 06:09:28 +00:00
|
|
|
|
2020-10-09 15:49:07 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "__schema"
|
|
|
|
- "(Introspection|INTROSPECTION|introspection).*?"
|
2020-10-15 09:05:13 +00:00
|
|
|
- ".*?operation not found.*?"
|
2021-10-08 06:40:53 +00:00
|
|
|
condition: or
|
2024-04-12 10:58:47 +00:00
|
|
|
# digest: 4a0a0047304502204cbf0b703f288cc2e26d59c7bc1231f5ecd0313924ab3f580b5e465987f5cdc702210081ca1d8928aba238bb18cfe3931adbb2b2dec1e1ec128dd8d8bc32297db1e19a:922c64590222798bb761d5b6d8e72950
|