Files
sif/modules/recon/onyx-auth-exposure.yaml
T
TigahandGitHub abcc22de38 feat(modules): detect exposed rag and knowledge apps (#238)
add recon modules for unauthenticated rag/search apps that leak config or health without a key: perplexica, verba, onyx, and fastgpt.
2026-07-02 17:00:44 -07:00

45 lines
991 B
YAML

# Onyx (Danswer) Auth Config Exposure Detection Module
id: onyx-auth-exposure
info:
name: Onyx Auth Config Exposure
author: sif
severity: low
description: Detects an exposed Onyx (formerly Danswer) rag platform; its unauthenticated auth-type endpoint discloses the authentication configuration, including whether anonymous access is enabled and whether any users have been created
tags: [onyx, danswer, llm, ai, rag, search, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/auth/type"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"requires_verification\""
- type: word
part: body
words:
- "\"anonymous_user_enabled\""
- type: word
part: body
words:
- "\"password_min_length\""
extractors:
- type: regex
name: onyx_auth_type
part: body
regex:
- '"auth_type"\s*:\s*"([^"]+)"'
group: 1