mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules for unauthenticated text-generation-inference (tgi) and text-embeddings-inference (tei) servers that leak model info without a key.
40 lines
805 B
YAML
40 lines
805 B
YAML
# Text Embeddings Inference API Exposure Detection Module
|
|
|
|
id: tei-api-exposure
|
|
info:
|
|
name: Text Embeddings Inference API Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an exposed Hugging Face Text Embeddings Inference server that serves model info and embedding requests without authentication
|
|
tags: [tei, embeddings, llm, ai, inference, api, exposure, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/info"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"model_type\""
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"max_batch_tokens\""
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: tei_model
|
|
part: body
|
|
regex:
|
|
- '"model_id"\s*:\s*"([^"]+)"'
|
|
group: 1
|