id: ansible-semaphore-panel

info:
  name: Ansible Semaphore Panel Detect
  author: Yuzhe-zhang-0
  severity: info
  description: An Ansible Semaphore login panel was detected.
  reference:
    - https://ansible-semaphore.com/
    - https://github.com/ansible-semaphore/semaphore
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:ansible-semaphore:ansible_semaphore:*:*:*:*:ansible:*:*:*
  metadata:
    max-request: 1
    shodan-query: http.html:"Semaphore</title>"
    product: ansible_semaphore
    vendor: ansible-semaphore
  tags: panel,ansible,semaphore,cicd,oss

http:
  - method: GET
    path:
      - '{{BaseURL}}/auth/login'

    matchers-condition: or
    matchers:
      - type: word
        words:
          - '<title>Ansible Semaphore</title>'

      - type: regex
        regex:
          - '<title(.*)>Semaphore</title>'
# digest: 4b0a00483046022100a184f7dce264d3a4952e78ff00cd2d48936b9ec8734990c85fad2aa430d0575e022100f0d77921e9f877e57ee0fdaf8b257c01a149323f4e2a02457c6aad8fb43dbcc5:922c64590222798bb761d5b6d8e72950