mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
* feat(modules): add tfvars, ansible-vault and ci config exposure * chore(modules): trim redundant module header comments drop the top-line comments on the new iac config exposure modules that just restated the id/name fields already in the info block
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
id: gitlab-ci-config-exposure
|
|
info:
|
|
name: Gitlab CI Config Exposure
|
|
author: sif
|
|
severity: low
|
|
description: Detects an exposed gitlab-ci pipeline definition that leaks build stages, deploy scripts and internal registry or host references
|
|
tags: [gitlab, ci, cd, pipeline, info-disclosure, exposure, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/.gitlab-ci.yml"
|
|
- "{{BaseURL}}/.gitlab-ci.yaml"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "script:"
|
|
|
|
- type: word
|
|
part: body
|
|
condition: or
|
|
words:
|
|
- "stages:"
|
|
- "before_script:"
|
|
- "after_script:"
|
|
- "artifacts:"
|
|
- "rules:"
|
|
|
|
- type: word
|
|
part: body
|
|
negative: true
|
|
condition: or
|
|
words:
|
|
- "<!DOCTYPE"
|
|
- "<!doctype"
|
|
- "<html"
|
|
- "<HTML"
|
|
- "<head>"
|
|
- "<title>"
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: ci_image
|
|
part: body
|
|
regex:
|
|
- 'image:\s*["'']?([^\s"'']+)'
|
|
group: 1
|