Files
sif/modules/recon/nextchat-config-exposure.yaml
T
TigahandGitHub 9e2965b777 feat(modules): detect exposed llm chat frontends (#237)
add recon modules for unauthenticated chat uis that leak config or allow open signup without a key: open webui, librechat, anythingllm, and nextchat.
2026-07-02 12:55:39 -07:00

45 lines
973 B
YAML

# NextChat (ChatGPT-Next-Web) Config Exposure Detection Module
id: nextchat-config-exposure
info:
name: NextChat Config Exposure
author: sif
severity: medium
description: Detects an exposed NextChat (ChatGPT-Next-Web) deployment whose config endpoint reports no access code set, meaning the proxy relays to provider apis using the operator's keys without any gate
tags: [nextchat, chatgpt-next-web, llm, ai, chat, ui, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/config"
matchers:
- type: status
status:
- 200
- type: regex
part: body
regex:
- '"needCode"\s*:\s*false'
- type: word
part: body
words:
- "\"hideUserApiKey\""
- type: word
part: body
words:
- "\"hideBalanceQuery\""
extractors:
- type: regex
name: nextchat_needcode
part: body
regex:
- '"needCode"\s*:\s*(true|false)'
group: 1