🇰🇷 한글 설명
Apache bRPC 1.5.0 미만 버전에서 발생하는 보안 취약점으로, 공격자가 ServerOptions::pid_file 파라미터를 조작하여 임의의 코드를 실행할 수 있습니다. 공격자는 bRPC 프로세스의 권한을 탈취하여 시스템을 제어할 수 있습니다.
💡 쉬운 설명
프로그램 설정 중 파일 경로를 지정하는 부분을 악용하여 해커가 원하는 명령어를 실행할 수 있는 문제입니다. 이를 통해 해커가 해당 프로그램의 권한을 가지고 컴퓨터를 마음대로 조작할 수 있습니다.
🇺🇸 원문 (English)
Security vulnerability in Apache bRPC <1.5.0 on all platforms allows attackers to execute arbitrary code via ServerOptions::pid_file.
An attacker that can influence the ServerOptions pid_file parameter with which the bRPC server is started can execute arbitrary code with the permissions of the bRPC process.
Solution:
1. upgrade to bRPC >= 1.5.0, download link: https://dist.apache.org/repos/dist/release/brpc/1.5.0/ https://dist.apache.org/repos/dist/release/brpc/1.5.0/
2. If you are using an old version of bRPC and hard to upgrade, you can apply this patch: https://github.com/apache/brpc/pull/2218 https://github.com/apache/brpc/pull/2218
📍 영향받는 시스템
Apache bRPC version < 1.5.0
⚔️ 공격 벡터
ServerOptions::pid_file 파라미터에 조작된 값을 입력하여 임의 코드 실행
🛡️ 대응 방법
bRPC를 1.5.0 이상 버전으로 업그레이드하거나 제공된 패치를 적용하십시오.
🔧 검증 코드
출력된 bRPC 버전이 1.5.0 미만인지 확인하여 취약 여부를 판단합니다.
brpc_version_check=$(brpc_version_command_here 2>/dev/null); echo $brpc_version_check