mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules that fingerprint ci/cd pipeline servers via their public version endpoints: concourse /api/v1/info, woodpecker /version (keyed on its source repository) and gocd /go/api/version (keyed on its gocd commit url); each answers without authentication and discloses the server version.
38 lines
807 B
YAML
38 lines
807 B
YAML
# Concourse CI Info Endpoint Exposure Detection Module
|
|
|
|
id: concourse-info-exposure
|
|
info:
|
|
name: Concourse CI Info Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects a Concourse CI server that discloses its server and worker versions and external url over the unauthenticated info api
|
|
tags: [concourse, ci, cd, pipeline, build, fingerprint, version, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/api/v1/info"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"version\""
|
|
- "\"worker_version\""
|
|
- "\"external_url\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: concourse_version
|
|
part: body
|
|
regex:
|
|
- '"version"\s*:\s*"([^"]+)"'
|
|
group: 1
|