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:
|
|
|
|
max-request: 23
|
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-24 06:25:31 +00:00
|
|
|
# digest: 4b0a0048304602210099b390c9ab70f9637dc20ac5ec9cdc269627f6ce48ae8b4fb4455c4577617676022100ac91a80119582f58d602cf3f7a628c63262ec2aa77616d5a21bee0abda30d77a:922c64590222798bb761d5b6d8e72950
|