Create sphinxsearch-config.yaml

Template to search for sphinx.conf file which contains pgsql/mysql/odb credentials
patch-1
gtrrnr 2024-02-24 06:15:44 +03:00 committed by GitHub
parent 6a5cc64d9a
commit 3e07c91034
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
id: sphinxsearch-config
info:
name: Sphinx Search configuration file containing SQL credentials
author: gtrrnr
severity: high
description: sphinx.conf file contains SQL credentials and is publicly accessible.
impact: |
An attacker can use leaked credentials to gain access to database.
reference:
- https://github.com/manticorp/SphinxSearch/blob/master/sphinx.conf.example
metadata:
max-request: 7
tags: sphinx,sphinxsearch,exposure
http:
- method: GET
path:
- "{{BaseURL}}/config/development.sphinx.conf"
- "{{BaseURL}}/config/production.sphinx.conf"
- "{{BaseURL}}/configs/sphinx.conf"
- "{{BaseURL}}/search/configs/sphinx.conf"
- "{{BaseURL}}/sphinx.conf"
- "{{BaseURL}}/sphinx/sphinx.conf"
- "{{BaseURL}}/sphinxsearch/sphinx.conf"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "sql_user"
- type: status
status:
- 200