2021-07-09 17:20:20 +00:00
|
|
|
id: exposed-gitignore
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Exposed Gitignore
|
2022-03-20 20:46:47 +00:00
|
|
|
author: TheZakMan,geeknik
|
2021-07-09 17:20:20 +00:00
|
|
|
severity: info
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://twitter.com/pratiky9967/status/1230001391701086208
|
|
|
|
- https://www.tenable.com/plugins/was/98595
|
2022-08-27 04:41:18 +00:00
|
|
|
tags: exposure,tenable,config,git
|
2021-07-09 17:20:20 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.gitignore"
|
|
|
|
- "{{BaseURL}}/assets/.gitignore"
|
|
|
|
- "{{BaseURL}}/includes/.gitignore"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-07-09 19:10:09 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2021-07-25 19:09:16 +00:00
|
|
|
- 'len(body) > 50'
|
|
|
|
- 'status_code == 200'
|
2021-07-26 09:44:33 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "application/javascript"
|
2022-03-20 20:46:47 +00:00
|
|
|
- "application/x-javascript"
|
2021-07-26 09:44:33 +00:00
|
|
|
- "application/json"
|
|
|
|
- "application/xml"
|
|
|
|
- "html"
|
|
|
|
- "<!doctype"
|
|
|
|
- "<script"
|
|
|
|
- "<meta"
|
|
|
|
- "image/"
|
2022-04-20 14:38:07 +00:00
|
|
|
part: response
|
2021-07-26 09:44:33 +00:00
|
|
|
negative: true
|
2022-03-20 20:46:47 +00:00
|
|
|
condition: or
|