mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules for self-hosted data-orchestration webservers that ship no built-in authentication: dagster /server_info discloses the webserver and core versions, and mage /api/status discloses the scheduler status and server repository path; both reach an editor or graphql api on the same instance that can execute arbitrary code.
38 lines
817 B
YAML
38 lines
817 B
YAML
# Mage Data Pipeline Status Exposure Detection Module
|
|
|
|
id: mage-status-exposure
|
|
info:
|
|
name: Mage Data Pipeline Status Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects a Mage data-pipeline server with auth disabled that leaks the scheduler status and the server-side repository path
|
|
tags: [mage, mage-ai, data-orchestration, pipeline, mlops, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/api/status"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"statuses\""
|
|
- "\"scheduler_status\""
|
|
- "\"repo_path\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: mage_repo_path
|
|
part: body
|
|
regex:
|
|
- '"repo_path"\s*:\s*"([^"]+)"'
|
|
group: 1
|