id: airflow-admin-login-panel

info:
  name: Apache Airflow Admin Login Panel
  author: pdteam
  severity: info
  description: An Apache Airflow admin login panel was discovered.
  reference:
    - https://airflow.apache.org/docs/apache-airflow/stable/security/webserver.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-668
    cpe: cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: apache
    product: airflow
    shodan-query:
      - title:"Sign In - Airflow"
      - http.title:"airflow - dags" || http.html:"apache airflow"
      - http.title:"sign in - airflow"
      - product:"redis"
    fofa-query:
      - apache airflow
      - title="airflow - dags" || http.html:"apache airflow"
      - title="sign in - airflow"
    google-query:
      - intitle:"airflow - dags" || http.html:"apache airflow"
      - intitle:"sign in - airflow"
  tags: panel,apache,airflow,admin,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/login/"
      - "{{BaseURL}}/admin/airflow/login"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Airflow - Login"
          - "Sign In - Airflow"
        condition: or

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