nuclei-templates/misconfiguration/shell-history.yaml

52 lines
1.0 KiB
YAML
Raw Normal View History

id: shell-history
info:
name: Shell History
2021-06-09 12:20:56 +00:00
author: pentest_swissky,geeknik
2020-10-03 06:22:40 +00:00
severity: low
2020-12-02 15:35:28 +00:00
description: Discover history for bash, ksh, sh, and zsh
2021-03-12 08:57:14 +00:00
tags: config
requests:
- method: GET
redirects: true
2021-06-06 08:09:16 +00:00
max-redirects: 1
path:
- "{{BaseURL}}/.bash_history"
2020-12-02 15:35:28 +00:00
- "{{BaseURL}}/.ksh_history"
- "{{BaseURL}}/.sh_history"
- "{{BaseURL}}/.zsh_history"
2020-10-03 06:22:40 +00:00
matchers-condition: and
matchers:
- type: word
words:
2021-07-26 05:53:34 +00:00
- "ls"
- "mkdir "
2020-10-03 06:22:40 +00:00
- "chmod "
2021-07-26 05:53:34 +00:00
- "mv "
- "nano "
- "vim "
- "pico "
- "sudo "
- "cd "
2021-07-26 05:53:34 +00:00
- "cp "
- "ps aux "
condition: or
2021-06-06 08:09:16 +00:00
2020-10-03 06:22:40 +00:00
- type: status
status:
2020-12-02 15:35:28 +00:00
- 200
2021-06-06 08:09:16 +00:00
- type: word
words:
- "<?xml"
- "<env"
- "application/javascript"
2021-07-26 05:53:34 +00:00
- "application/json"
- "application/xml"
2021-06-26 14:12:11 +00:00
- "html>"
- "text/html"
part: response
negative: true