2020-10-01 18:35:07 +00:00
|
|
|
id: shell-history
|
2022-08-24 09:47:23 +00:00
|
|
|
|
2020-10-01 18:35:07 +00:00
|
|
|
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
|
2022-08-25 08:06:35 +00:00
|
|
|
tags: misconfig
|
2022-08-24 09:47:23 +00:00
|
|
|
|
2020-10-01 18:35:07 +00:00
|
|
|
requests:
|
|
|
|
- method: GET
|
2021-06-06 08:09:16 +00:00
|
|
|
max-redirects: 1
|
2020-10-01 18:35:07 +00:00
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.bash_history"
|
2020-12-02 15:35:28 +00:00
|
|
|
- "{{BaseURL}}/.ksh_history"
|
|
|
|
- "{{BaseURL}}/.sh_history"
|
2020-10-01 18:35:07 +00:00
|
|
|
- "{{BaseURL}}/.zsh_history"
|
2020-10-03 06:22:40 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
2020-10-01 18:35:07 +00:00
|
|
|
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 "
|
2021-06-06 02:06:30 +00:00
|
|
|
- "nano "
|
|
|
|
- "vim "
|
|
|
|
- "pico "
|
|
|
|
- "sudo "
|
|
|
|
- "cd "
|
2021-07-26 05:53:34 +00:00
|
|
|
- "cp "
|
2021-06-06 02:06:30 +00:00
|
|
|
- "ps aux "
|
|
|
|
condition: or
|
2021-06-06 08:09:16 +00:00
|
|
|
|
2021-06-06 02:06:30 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
2021-09-17 15:00:22 +00:00
|
|
|
- "<?xml"
|
|
|
|
- "<env"
|
2021-07-21 17:26:20 +00:00
|
|
|
- "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"
|
2022-04-20 14:38:07 +00:00
|
|
|
part: response
|
2021-06-06 02:06:30 +00:00
|
|
|
negative: true
|
2022-08-25 08:06:35 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|