id: livewire-detect

info:
  name: Laravel Livewire - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detects the presence of Laravel Livewire, a full-stack framework for Laravel that builds dynamic interfaces.
  reference:
    - https://livewire.laravel.com/
  metadata:
    verified: true
    max-request: 1
    product: livewire
    vendor: laravel
    shodan-query: html:"wire:id"
  tags: tech,discovery,livewire

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    redirects: true

    matchers:
      - type: word
        part: body
        words:
          - "wire:id="
          - "wire:initial-data="
          - "window.livewire_app_url"
          - "window.livewire_token"
          - "livewire.js"
          - "livewire.min.js"
        condition: or
# digest: 4a0a00473045022100cbbde87d29898817540e54e60cf64c69d10256a6d156c03e25b51fde6978666602201672cf534e30604a3ff1a9fa5a4da69688e755e96beca134aac858b9674bbe7f:922c64590222798bb761d5b6d8e72950