Merge pull request #8906 from boy-hack/main

Add go pprof debug and Java web config detection and optimize payload.
patch-1
Dhiyaneshwaran 2024-01-24 11:53:17 +05:30 committed by GitHub
commit e275e2d501
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 53 additions and 0 deletions

View File

@ -69,7 +69,9 @@ http:
- /wp-login.php
- /config.php
- /config
- /const.DB.php.bak
- /const.DB.php
bakext:
- ".~"
- ".bk"

View File

@ -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"

View File

@ -20,6 +20,7 @@ http:
path:
- "{{BaseURL}}/.dockerfile"
- "{{BaseURL}}/.Dockerfile"
- "{{BaseURL}}/Dockerfile"
matchers-condition: and
matchers:

View File

@ -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:

View File

@ -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