Create gitlab-ci-yml.yaml

main
Dhiyaneshwaran 2024-08-01 03:43:12 +05:30 committed by GitHub
parent 28641724a4
commit 95dd646e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
id: gitlab-ci-yml
info:
name: GitLab CI YAML - Exposure
author: DhiyaneshDK
severity: medium
description: |
The gitlab-ci.yml file, used for configuring CI/CD pipelines in GitLab, has been found exposed. This file contains crucial details about the build, test, and deployment processes, and may include sensitive information such as API keys, tokens, environment variables, and other credentials.
impact: |
Unauthorized access to this file can lead to severe security risks and operational disruptions.
reference:
- https://x.com/RootMoksha/status/1816571625388818923/photo/1
metadata:
verified: true
max-request: 2
shodan-query: html:"gitlab-ci.yml"
tags: exposure,config,cicd,gitlab
http:
- method: GET
path:
- "{{BaseURL}}/.gitlab-ci.yml"
- "{{BaseURL}}/gitlab-ci.yml"
stop-at-first-match: true
matchers-condition: or
matchers:
- type: word
part: body
words:
- "variables:"
- "before_script:"
condition: and
- type: word
part: body
words:
- "stage: build"
- "script:"
- "image:"
condition: and