Merge pull request #8906 from boy-hack/main
Add go pprof debug and Java web config detection and optimize payload.patch-1
commit
e275e2d501
|
@ -69,7 +69,9 @@ http:
|
|||
- /wp-login.php
|
||||
- /config.php
|
||||
- /config
|
||||
- /const.DB.php.bak
|
||||
- /const.DB.php
|
||||
|
||||
bakext:
|
||||
- ".~"
|
||||
- ".bk"
|
||||
|
|
|
@ -56,6 +56,20 @@ http:
|
|||
- "database"
|
||||
- "Release"
|
||||
- "inetpub"
|
||||
- "temp"
|
||||
- "package"
|
||||
- "tmp"
|
||||
- "db"
|
||||
- "data"
|
||||
- "database"
|
||||
- "ftp"
|
||||
- "output"
|
||||
- "admin"
|
||||
- "upload"
|
||||
- "src"
|
||||
- "conf/conf"
|
||||
- "old"
|
||||
|
||||
EXT:
|
||||
- "tar"
|
||||
- "7z"
|
||||
|
|
|
@ -20,6 +20,7 @@ http:
|
|||
path:
|
||||
- "{{BaseURL}}/.dockerfile"
|
||||
- "{{BaseURL}}/.Dockerfile"
|
||||
- "{{BaseURL}}/Dockerfile"
|
||||
|
||||
matchers-condition: and
|
||||
matchers:
|
||||
|
|
|
@ -17,6 +17,7 @@ http:
|
|||
- "{{BaseURL}}/.travis.sh"
|
||||
- "{{BaseURL}}/install.sh"
|
||||
- "{{BaseURL}}/update.sh"
|
||||
- "{{BaseURL}}/upload.sh"
|
||||
- "{{BaseURL}}/config.sh"
|
||||
- "{{BaseURL}}/build.sh"
|
||||
- "{{BaseURL}}/setup.sh"
|
||||
|
@ -35,6 +36,9 @@ http:
|
|||
- "{{BaseURL}}/local2dev.sh"
|
||||
- "{{BaseURL}}/local2prod.sh"
|
||||
- "{{BaseURL}}/prod2local.sh"
|
||||
- "{{BaseURL}}/rsync.sh"
|
||||
- "{{BaseURL}}/sync.sh"
|
||||
- "{{BaseURL}}/test.sh"
|
||||
|
||||
matchers-condition: and
|
||||
matchers:
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
id: go-pprof-debug
|
||||
|
||||
info:
|
||||
name: Go pprof Debug Page
|
||||
author: w8ay
|
||||
severity: low
|
||||
description: go pprof debug page was exposed.
|
||||
tags: logs,exposure,go,pprof
|
||||
|
||||
http:
|
||||
- method: GET
|
||||
path:
|
||||
- "{{BaseURL}}/debug/pprof/heap?debug=1"
|
||||
- "{{BaseURL}}/pprof/heap?debug=1"
|
||||
|
||||
stop-at-first-match: true
|
||||
matchers-condition: and
|
||||
matchers:
|
||||
- type: word
|
||||
words:
|
||||
- 'heap profile:'
|
||||
- 'Alloc'
|
||||
condition: and
|
||||
|
||||
- type: word
|
||||
words:
|
||||
- "text/plain"
|
||||
part: header
|
||||
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
Loading…
Reference in New Issue