🔍 CVE-2024-28236

7.7
CVSS Score
HIGH
2024-03-12
2026-06-17 07:21
✅ 완료

🇰🇷 한글 설명

Vela CI/CD 프레임워크에서 변수 치환 기능을 악용하여 로그 마스킹을 우회하고 비밀 정보를 노출할 수 있는 취약점입니다. 특히 'no commands' 옵션으로 제한된 환경에서도 이미지나 파라미터 필드의 문자열 조작을 통해 비밀값이 로그에 출력될 수 있습니다.

💡 쉬운 설명

CI/CD 도구가 비밀번호를 숨기려고 노력하지만, 공격자가 교묘한 문자열 조작을 통해 이 숨김 기능을 무력화하고 비밀번호를 로그에 찍히게 만들 수 있는 문제입니다. 이를 통해 중요한 인증 정보가 외부로 유출될 위험이 있습니다.

🇺🇸 원문 (English)

Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. Vela pipelines can use variable substitution combined with insensitive fields like `parameters`, `image` and `entrypoint` to inject secrets into a plugin/image and — by using common substitution string manipulation — can bypass log masking and expose secrets without the use of the commands block. This unexpected behavior primarily impacts secrets restricted by the "no commands" option. This can lead to unintended use of the secret value, and increased risk of exposing the secret during image execution bypassing log masking. **To exploit this** the pipeline author must be supplying the secrets to a plugin that is designed in such a way that will print those parameters in logs. Plugin parameters are not designed for sensitive values and are often intentionally printed throughout execution for informational/debugging purposes. Parameters should therefore be treated as insensitive. While Vela provides secrets masking, secrets exposure is not entirely solved by the masking process. A docker image (plugin) can easily expose secrets if they are not handled properly, or altered in some way. There is a responsibility on the end-user to understand how values injected into a plugin are used. This is a risk that exists for many CICD systems (like GitHub Actions) that handle sensitive runtime variables. Rather, the greater risk is that users who restrict a secret to the "no commands" option and use image restriction can still have their secret value exposed via substitution tinkering, which turns the image and command restrictions into a false sense of security. This issue has been addressed in version 0.23.2. Users are advised to upgrade. Users unable to upgrade should not provide sensitive values to plugins that can potentially expose them, especially in `parameters` that are not intended to be used for sensitive values, ensure plugins (especially those that utilize shared secrets) follow best practices to avoid logging parameters that are expected to be sensitive, minimize secrets with `pull_request` events enabled, as this allows users to change pipeline configurations and pull in secrets to steps not typically part of the CI process, make use of the build approval setting, restricting builds from untrusted users, and limit use of shared secrets, as they are less restrictive to access by nature.

📍 영향받는 시스템

Vela CI/CD framework (version 0.23.2 미만)

⚔️ 공격 벡터

파라미터나 이미지 설정 내 변수 치환 문자열을 조작하여 로그 마스킹을 우회하고 비밀 정보를 출력함

🛡️ 대응 방법

Vela를 최신 버전인 0.23.2 이상으로 업그레이드하십시오.

🔧 검증 코드

명령어 결과에 버전 정보가 출력되면 0.23.2 미만 버전이므로 취약한 상태입니다.

Shell / Script
vela version 2>/dev/null | grep -E '0\.(0|[1-9][0-9])\.(0|[1-9][0-9])' | awk '$2 < "0.23.2"'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

💻 영향받는 소프트웨어

Docker