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.0 KiB
YAML
56 lines
1.0 KiB
YAML
id: jenkinsfile-exposure
|
|
info:
|
|
name: Jenkinsfile Exposure
|
|
author: sif
|
|
severity: low
|
|
description: Detects an exposed Jenkinsfile pipeline definition that leaks build stages, agent labels and deploy steps
|
|
tags: [jenkins, ci, cd, pipeline, groovy, info-disclosure, exposure, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/Jenkinsfile"
|
|
- "{{BaseURL}}/jenkinsfile"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
condition: or
|
|
words:
|
|
- "pipeline {"
|
|
- "node {"
|
|
|
|
- type: word
|
|
part: body
|
|
condition: or
|
|
words:
|
|
- "stages {"
|
|
- "stage("
|
|
- "steps {"
|
|
|
|
- type: word
|
|
part: body
|
|
negative: true
|
|
condition: or
|
|
words:
|
|
- "<!DOCTYPE"
|
|
- "<!doctype"
|
|
- "<html"
|
|
- "<HTML"
|
|
- "<head>"
|
|
- "<title>"
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: jenkinsfile_agent
|
|
part: body
|
|
regex:
|
|
- 'agent\s*\{?\s*(\w+)'
|
|
group: 1
|