mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules for unauthenticated gpu serving stacks that leak model info without a key: triton, sglang, and torchserve.
40 lines
752 B
YAML
40 lines
752 B
YAML
# SGLang API Exposure Detection Module
|
|
|
|
id: sglang-api-exposure
|
|
info:
|
|
name: SGLang API Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an exposed SGLang inference server that serves model info and generation without authentication
|
|
tags: [sglang, llm, ai, inference, api, exposure, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/model_info"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"is_generation\""
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"has_image_understanding\""
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: sglang_model
|
|
part: body
|
|
regex:
|
|
- '"model_path"\s*:\s*"([^"]+)"'
|
|
group: 1
|