nuclei-templates/http/exposures/files/db-schema.yaml

39 lines
1001 B
YAML
Raw Normal View History

2021-08-19 09:33:10 +00:00
id: db-schema
2021-08-19 09:30:00 +00:00
info:
name: Discover db schema files
author: geeknik
severity: info
2021-08-19 09:33:10 +00:00
description: This file is auto-generated from the current state of the database.
metadata:
max-request: 3
2023-10-14 11:27:55 +00:00
tags: exposure,backup,files
2021-08-19 09:30:00 +00:00
http:
2021-08-19 09:30:00 +00:00
- method: GET
path:
- "{{BaseURL}}/db/schema.rb"
- "{{BaseURL}}/database/schema.rb"
- "{{BaseURL}}/schema.rb"
matchers-condition: and
matchers:
- type: word
words:
- "This file is auto-generated from the current state of the database."
- "ActiveRecord::Schema.define"
condition: and
2021-08-19 09:33:10 +00:00
2021-08-19 09:30:00 +00:00
- type: status
status:
- 200
2021-08-19 09:33:10 +00:00
2021-08-19 09:30:00 +00:00
extractors:
- type: regex
name: version
part: body
regex:
2021-08-19 09:33:10 +00:00
- 'eRecord::Schema\.define\(version: ([0-9_]+)\) do'
# digest: 490a0046304402206f62e7172c143bd1c9d4857d5183eb783c2f6712d72e886a58dd336cd3b497ec02202dc188f4b7beff9048aa1a4187379cee2191563781c25af84813d2ec712ee902:922c64590222798bb761d5b6d8e72950