2021-06-06 14:09:29 +00:00
|
|
|
id: shellscripts
|
|
|
|
|
|
|
|
info:
|
2021-06-07 14:52:33 +00:00
|
|
|
name: Public shellscripts
|
2021-06-06 14:09:29 +00:00
|
|
|
author: panch0r3d
|
2021-06-07 14:52:33 +00:00
|
|
|
severity: low
|
2024-01-02 16:16:15 +00:00
|
|
|
description: This template checks exposure of bash scripts.
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2024-01-29 11:58:34 +00:00
|
|
|
max-request: 27
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: bash,exposure,files
|
2021-06-06 14:09:29 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-06-06 14:09:29 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.build.sh"
|
|
|
|
- "{{BaseURL}}/.jenkins.sh"
|
|
|
|
- "{{BaseURL}}/.travis.sh"
|
|
|
|
- "{{BaseURL}}/install.sh"
|
|
|
|
- "{{BaseURL}}/update.sh"
|
2024-01-04 07:04:42 +00:00
|
|
|
- "{{BaseURL}}/upload.sh"
|
2021-06-06 14:09:29 +00:00
|
|
|
- "{{BaseURL}}/config.sh"
|
|
|
|
- "{{BaseURL}}/build.sh"
|
|
|
|
- "{{BaseURL}}/setup.sh"
|
|
|
|
- "{{BaseURL}}/run.sh"
|
|
|
|
- "{{BaseURL}}/backup.sh"
|
|
|
|
- "{{BaseURL}}/compile.sh"
|
|
|
|
- "{{BaseURL}}/env.sh"
|
|
|
|
- "{{BaseURL}}/init.sh"
|
|
|
|
- "{{BaseURL}}/startup.sh"
|
|
|
|
- "{{BaseURL}}/wp-setup.sh"
|
|
|
|
- "{{BaseURL}}/deploy.sh"
|
|
|
|
- "{{BaseURL}}/aws.sh"
|
2022-07-28 13:10:18 +00:00
|
|
|
- "{{BaseURL}}/reminder.sh"
|
|
|
|
- "{{BaseURL}}/mysqlbackup.sh"
|
|
|
|
- "{{BaseURL}}/dev2local.sh"
|
|
|
|
- "{{BaseURL}}/local2dev.sh"
|
|
|
|
- "{{BaseURL}}/local2prod.sh"
|
|
|
|
- "{{BaseURL}}/prod2local.sh"
|
2024-01-04 07:04:42 +00:00
|
|
|
- "{{BaseURL}}/rsync.sh"
|
|
|
|
- "{{BaseURL}}/sync.sh"
|
|
|
|
- "{{BaseURL}}/test.sh"
|
2021-06-07 14:52:33 +00:00
|
|
|
|
2021-06-06 14:09:29 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2022-10-13 09:36:07 +00:00
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- ".*?bin.*?sh"
|
|
|
|
- ".*?bin.*?bash"
|
|
|
|
condition: or
|
2021-06-07 14:52:33 +00:00
|
|
|
|
2021-06-06 14:09:29 +00:00
|
|
|
- type: word
|
2022-10-13 09:36:07 +00:00
|
|
|
part: header
|
2021-06-06 14:09:29 +00:00
|
|
|
words:
|
2021-06-07 14:52:33 +00:00
|
|
|
- "application/x-sh"
|
2021-06-06 14:09:29 +00:00
|
|
|
- "text/plain"
|
2021-06-07 14:52:33 +00:00
|
|
|
- "text/x-sh"
|
|
|
|
condition: or
|
|
|
|
|
2022-10-13 09:36:07 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-01-29 12:41:50 +00:00
|
|
|
# digest: 4a0a0047304502203eed3f6c9d8e944eff0cc0c62b52a0908a3ec38dfb5ff54cd6245f48b954353d022100a052fe3641894045ffa5a7b4b803d3c6125b63efd513b4edde7b10313b5f01f1:922c64590222798bb761d5b6d8e72950
|