mirror of
https://github.com/lunchcat/sif.git
synced 2026-08-01 16:27:37 -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.
37 lines
801 B
YAML
37 lines
801 B
YAML
# Dagster Webserver Exposure Detection Module
|
|
|
|
id: dagster-webserver-exposure
|
|
info:
|
|
name: Dagster Webserver Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects a Dagster webserver that discloses its version and exposes a run-launching graphql api without authentication
|
|
tags: [dagster, dagit, data-orchestration, pipeline, mlops, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/server_info"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"dagster_webserver_version\""
|
|
- "\"dagster_version\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: dagster_version
|
|
part: body
|
|
regex:
|
|
- '"dagster_version"\s*:\s*"([^"]+)"'
|
|
group: 1
|