2022-07-10 00:16:00 +00:00
|
|
|
id: config-rb
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Config Ruby File Disclosure
|
|
|
|
author: DhiyaneshDK
|
|
|
|
severity: medium
|
|
|
|
metadata:
|
|
|
|
verified: true
|
|
|
|
shodan-query: html:"config.rb"
|
|
|
|
tags: ruby,devops,exposure,config
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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:
|
2022-07-12 12:32:35 +00:00
|
|
|
- 'images_dir'
|
2022-07-10 00:16:00 +00:00
|
|
|
- 'css_dir'
|
2022-07-12 12:32:35 +00:00
|
|
|
condition: and
|
2022-07-10 00:16:00 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|