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,discovery

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