id: openstack-config

info:
  name: Openstack - Infomation Disclosure
  author: MayankPandey01
  severity: low
  description: |
    Openstack exposing Configuration or settings related to the Swift object storage system.
  reference:
    - https://docs.openstack.org/python-cloudkittyclient/stein/api_reference/info.html
  classification:
    cpe: cpe:2.3:a:openstack:swift:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: openstack
    product: swift
    shodan-query: http.favicon.hash:786533217
  tags: exposure,misconfig,openstack

http:
  - method: GET
    path:
      - "{{BaseURL}}/info"
      - "{{BaseURL}}/v1/info"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '{"formpost"'
          - '"bulk_'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 490a0046304402202bb23d515ed47fb28b0b60fccca9d88645cc8c9ba4804c102df012eb9323a9a6022074c0590415d6c96d8b23a0867f7f4d73b64021ec7acb44e111726e329e0ab660:922c64590222798bb761d5b6d8e72950