Merge pull request #2787 from mr-rizwan-syed/master

wp-config-file and aws-s3-access-key-leak
patch-1
Prince Chaddha 2021-10-05 18:25:04 +05:30 committed by GitHub
commit 5b5e764b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 4 deletions

View File

@ -0,0 +1,23 @@
id: wpconfig-aws-keys
info:
name: AWS S3 keys Leak
author: r12w4n
severity: high
tags: aws,s3,wordpress,disclosure
requests:
- method: GET
path:
- '{{BaseURL}}/wp-config.php-backup'
- "{{BaseURL}}/%c0"
matchers:
- type: word
words:
- 'access-key-id'
- 'secret-access-key'
- 'DB_NAME'
- 'DB_PASSWORD'
condition: and
part: body

View File

@ -1,9 +1,9 @@
id: wordpress-accessible-wpconfig
info:
name: WordPress accessible wp-config
author: Kiblyn11,zomsop82,madrobot,geeknik,daffainfo
author: Kiblyn11,zomsop82,madrobot,geeknik,daffainfo,r12w4n
severity: high
tags: wordpress,backups
tags: wordpress,backup
requests:
- method: GET
@ -24,6 +24,7 @@ requests:
- '{{BaseURL}}/wp-config-backup.txt'
- '{{BaseURL}}/wp-config.php.save'
- '{{BaseURL}}/wp-config.php~'
- '{{BaseURL}}/wp-config.php-backup'
- '{{BaseURL}}/wp-config.php.orig'
- '{{BaseURL}}/wp-config.php.original'
- '{{BaseURL}}/_wpeprivate/config.json'
@ -33,9 +34,11 @@ requests:
matchers:
- type: word
words:
- DB_NAME
- WPENGINE_ACCOUNT
- "DB_NAME"
- "DB_PASSWORD"
part: body
condition: and
- type: status
status:
- 200