Files
sif/modules/recon/mage-status-exposure.yaml
T
TigahandGitHub b4dec11a52 feat(modules): add dagster and mage exposure modules (#253)
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.
2026-07-02 12:56:09 -07:00

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