id: ansible-tower-exposure

info:
  name: Ansible Tower - Detect
  author: pdteam,idealphase
  severity: info
  description: Ansible Tower was detected. Ansible Tower is a commercial offering that helps teams manage complex multi-tier deployments by adding control, knowledge, and delegation to Ansible-powered environments.
  reference:
    - https://docs.ansible.com/ansible-tower/3.8.4/html/administration/
    - https://docs.ansible.com/ansible-tower/latest/html/release-notes/index.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-200
    cpe: cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: redhat
    product: ansible_tower
    shodan-query:
      - title:"Ansible Tower"
      - http.title:"ansible tower"
    google-query:
      - intitle:"Ansible Tower"
      - intitle:"ansible tower"
    fofa-query: title="ansible tower"
  tags: panel,ansible,redhat,discovery

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

    matchers:
      - type: word
        words:
          - "<title>Ansible Tower</title>"
          - "ansible-bootstrap"
        condition: or

    extractors:
      - type: regex
        group: 1
        part: body
        regex:
          - 'href="\/static\/assets\/favicon\.ico\?v=(.+)" \/>'
# digest: 4a0a00473045022052f5c01ec6996978b611cc7d36fdb0620118b824ce3bf2583ee99a8510cb6d96022100bdb3e18260b6650cb50d6e1fdc697add3eb7216daa01c0963e576f47ad03eb8d:922c64590222798bb761d5b6d8e72950