id: cloudflare-access-panel

info:
  name: Cloudflare Access - Login Panel Detection
  author: rxerium
  severity: info
  description: |
    Detected exposed Cloudflare Access login pages.
  remediation: |
    - Ensure Cloudflare Access policies are properly configured to restrict access to authorized users only
    - Review and enforce appropriate authentication rules and multi-factor authentication requirements
    - Limit exposure of Access login pages to necessary endpoints only
  reference:
    - https://developers.cloudflare.com/cloudflare-one/applications/configure-apps/
    - https://developers.cloudflare.com/cloudflare-one/
    - https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/
  tags: cloudflare,panel,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Sign in ・ Cloudflare Access"

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