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

37 lines
808 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'