id: config-rb

info:
  name: Ruby Configuration File - Detect
  author: DhiyaneshDK
  severity: unknown
  description: Multiple Ruby configuration files were detected.
  metadata:
    verified: true
    max-request: 3
    shodan-query: html:"config.rb"
  tags: ruby,devops,exposure,config,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/config.rb"
      - "{{BaseURL}}/.chef/config.rb"
      - "{{BaseURL}}/assets/config.rb"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'images_dir'
          - 'css_dir'
        condition: and

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