id: graphql-go-detect
info:
  name: Graphql Go Detect
  author: princechaddha
  severity: info
  reference: https://github.com/dolevf/graphw00f/blob/main/graphw00f/lib.py
  tags: tech,graphql,go

http:
  - method: POST
    path:
      - "{{BaseURL}}/graphql"
      - "{{BaseURL}}/api/graphql"
      - "{{BaseURL}}/query"
      - "{{BaseURL}}/"
    body: '{"query":""}'
    headers:
      Content-Type: application/json
    redirects: true

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200
          - 400

      - type: word
        words:
          - 'Must provide an operation.'
        part: body
# digest: 4b0a00483046022100c9a78cd8223e2bc43d57cb84e2debd261d1ac8bcf13d499dd17b2904933a2696022100b12389cac30c8a7f94e0f2d8f5eee66ca925c4f25b82545c946618ec990c62ac:922c64590222798bb761d5b6d8e72950