Files
sif/modules/recon/invokeai-runtime-config-exposure.yaml
T
TigahandGitHub b4fae85847 feat(recon): add localai and invokeai exposure modules (#289)
detect anonymously reachable localai /system (backend and loaded-model
disclosure) and invokeai /api/v1/app/runtime_config (host path and
config disclosure). both and json key markers with status 200 and
include secured-instance negatives so 401/403 boxes are not flagged.
2026-07-22 12:46:06 -07:00

45 lines
1.0 KiB
YAML

# InvokeAI Runtime Config Exposure Detection Module
id: invokeai-runtime-config-exposure
info:
name: InvokeAI Runtime Config Exposure
author: sif
severity: medium
description: Detects an exposed InvokeAI instance whose runtime-config api discloses host filesystem paths and generation settings without authentication; InvokeAI has no login gate on this route by default, unlike its admin-only config write endpoint
tags: [invokeai, ai, image, stable-diffusion, api, exposure, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/v1/app/runtime_config"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"set_fields\""
- type: word
part: body
words:
- "\"legacy_conf_dir\""
- type: word
part: body
words:
- "\"custom_nodes_dir\""
extractors:
- type: regex
name: invokeai_models_dir
part: body
regex:
- '"models_dir"\s*:\s*"([^"]+)"'
group: 1