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

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