id: vendure-detect

info:
  name: Vendure - Detect
  author: theamanrawat
  severity: info
  description: |
    Vendure headless commerce platform was detected via the presence of the vendure-auth-token response header on the Shop API endpoint.
  reference:
    - https://github.com/vendure-ecommerce/vendure
    - https://docs.vendure.io/
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.header:"vendure-auth-token"
    fofa-query: header="vendure-auth-token"
    google-query: inurl:"/shop-api"
  tags: tech,vendure,detect

http:
  - raw:
      - |
        POST /shop-api HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"query":"{ __typename }"}

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "vendure-auth-token"

      - type: word
        part: body
        words:
          - '"data"'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022031f0b734d62078c207ad5ebfed560234b514b8bae46edab4456ffc8e142e250c022100bfb2d2a87ca36efc13ecb27a2d400d83275c8a5f18ca4b1bc1bc0217bc8fff41:922c64590222798bb761d5b6d8e72950