id: ruby-rail-storage

info:
  name: Ruby on Rails storage.yml File Disclosure
  author: DhiyaneshDK
  severity: low
  description: Ruby on Rails storage.yml file is disclosed.
  classification:
    cpe: cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: rubyonrails
    product: rails
    google-query: intitle:"index of" storage.yml
  tags: exposure,ruby,devops,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/storage.yml"
      - "{{BaseURL}}/config/storage.yml"
      - "{{BaseURL}}/ruby/config/storage.yml"
      - "{{BaseURL}}/railsapp/config/storage.yml"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'service:'
          - 'local:'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"
          - "text/html"
        negative: true
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ab535cc8b84106f09772f1772d582ceb65c96de0661dd14efd3f594000140246022100c6b5f65d2334385f02c32d205a9c686ce31f9ef76385746a2048df5ec1fb35e0:922c64590222798bb761d5b6d8e72950