mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-10 20:53:27 +08:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
id: graphql-sangria-detect
|
|
info:
|
|
name: Graphql Sangria Detect
|
|
author: princechaddha
|
|
severity: info
|
|
reference: https://github.com/dolevf/graphw00f/blob/main/graphw00f/lib.py
|
|
tags: tech,graphql,sangria
|
|
|
|
http:
|
|
- method: POST
|
|
path:
|
|
- "{{BaseURL}}/graphql"
|
|
- "{{BaseURL}}/api/graphql"
|
|
- "{{BaseURL}}/query"
|
|
- "{{BaseURL}}/"
|
|
body: '{"query":"queryy { __typename }"}'
|
|
headers:
|
|
Content-Type: application/json
|
|
redirects: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
words:
|
|
- 'Syntax error while parsing GraphQL query. Invalid input "queryy", expected ExecutableDefinition or TypeSystemDefinition'
|
|
part: body
|
|
|
|
- type: word
|
|
words:
|
|
- 'Content-Type: text/html'
|
|
part: header
|
|
negative: true
|
|
|
|
- type: word
|
|
words:
|
|
- '<html'
|
|
- '<body'
|
|
part: body
|
|
condition: or
|
|
negative: true
|
|
# digest: 4a0a0047304502210085b8851527daa787c4e0d016b78dbf3e1ce6cf88ed30b841fdf3124ab280752802203f505d4c561b414ac7fe2a95e5d67b00aa75f1d49dc2af2ff8ed4359d090919f:922c64590222798bb761d5b6d8e72950 |