nuclei-templates/http/exposures/configs/exposed-gitignore.yaml

51 lines
1.4 KiB
YAML

id: exposed-gitignore
info:
name: Gitignore Config - Detect
author: TheZakMan,geeknik
severity: info
description: Gitignore configuration information was detected.
reference:
- https://twitter.com/pratiky9967/status/1230001391701086208
- https://www.tenable.com/plugins/was/98595
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cvss-score: 0
cwe-id: CWE-200
metadata:
max-request: 3
tags: exposure,tenable,config,git
http:
- method: GET
path:
- "{{BaseURL}}/.gitignore"
- "{{BaseURL}}/assets/.gitignore"
- "{{BaseURL}}/includes/.gitignore"
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'len(body) > 50'
- 'status_code == 200'
condition: and
- type: word
words:
- "MongoDB over HTTP on the native"
- "application/javascript"
- "application/x-javascript"
- "application/json"
- "application/xml"
- "text/xml"
- "html"
- "<!doctype"
- "<script"
- "<meta"
- "image/"
- "Response xmlns"
part: response
negative: true
condition: or
# digest: 4a0a004730450221009bcf9b45d8b093b90133db0d615bf4de2516c11ee48dfe7607103c981e3ea6e602201ea776296dc9b482bf39d35e599da249442103962cda56efa936d6d980242d11:922c64590222798bb761d5b6d8e72950