id: laravel-horizon-unauth

info:
  name: Laravel Horizon Dashboard - Unauthenticated
  author: vagnerd
  severity: medium
  description: |
    Laravel Horizon Dashboard unauthenticated was detected.
  remediation: |
    - Configure Authentication in Laravel Horizon.
  reference:
    - https://github.com/laravel/horizon
    - https://laravel.com/docs/10.x/horizon#dashboard-authorization
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.favicon.hash:450899026
  tags: laravel,unauth,dashboard,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/stats"
      - "{{BaseURL}}/horizon/api/stats"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "queueWithMaxRuntime"
          - "recentJobs"
          - "status"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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