CVE-2021-41129
위험도 높음
- 우선순위 이 사이트의 참고 점수
- 8.15
- 위험도 CVSS 3.1 · 0~10점
- 8.1
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 1.8%
- 공개일 NVD
- 2021-10-06
설명 NVD 원문
Pterodactyl is an open-source game server management panel built with PHP 7, React, and Go. A malicious user can modify the contents of a `confirmation_token` input during the two-factor authentication process to reference a cache value not associated with the login attempt. In rare cases this can allow a malicious actor to authenticate as a random user in the Panel. The malicious user must target an account with two-factor authentication enabled, and then must provide a correct two-factor authentication token before being authenticated as that user. Due to a validation flaw in the logic handling user authentication during the two-factor authentication process a malicious user can trick the system into loading credentials for an arbitrary user by modifying the token sent to the server. This authentication flaw is present in the `LoginCheckpointController@__invoke` method which handles two-factor authentication for a user. This controller looks for a request input parameter called `confirmation_token` which is expected to be a 64 character random alpha-numeric string that references a value within the Panel's cache containing a `user_id` value. This value is then used to fetch the user that attempted to login, and lookup their two-factor authentication token. Due to the design of this system, any element in the cache that contains only digits could be referenced by a malicious user, and whatever value is stored at that position would be used as the `user_id`. There are a few different areas of the Panel that store values into the cache that are integers, and a user who determines what those cache keys are could pass one of those keys which would cause this code pathway to reference an arbitrary user. At its heart this is a high-risk login bypass vulnerability. However, there are a few additional conditions that must be met in order for this to be successfully executed, notably: 1.) The account referenced by the malicious cache key must have two-factor authentication enabled. An account without two-factor authentication would cause an exception to be triggered by the authentication logic, thusly exiting this authentication flow. 2.) Even if the malicious user is able to reference a valid cache key that references a valid user account with two-factor authentication, they must provide a valid two-factor authentication token. However, due to the design of this endpoint once a valid user account is found with two-factor authentication enabled there is no rate-limiting present, thusly allowing an attacker to brute force combinations until successful. This leads to a third condition that must be met: 3.) For the duration of this attack sequence the cache key being referenced must continue to exist with a valid `user_id` value. Depending on the specific key being used for this attack, this value may disappear quickly, or be changed by other random user interactions on the Panel, outside the control of the attacker. In order to mitigate this vulnerability the underlying authentication logic was changed to use an encrypted session store that the user is therefore unable to control the value of. This completely removed the use of a user-controlled value being used. In addition, the code was audited to ensure this type of vulnerability is not present elsewhere.
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 네트워크(원격) AV:N
- 공격 난이도
- 높음(어려움) AC:H
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요 없음 UI:N
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
조치 방법 0행
수집된 조치 정보가 없습니다. 조치가 필요 없다는 뜻은 아닙니다.
살펴볼 장비 초안
분류 대상이 아닙니다 (지금은 KEV 만 분류합니다). 안전하다는 뜻이 아닙니다.
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 0건
KEV·KISA·ASEC 에서 연결된 내용이 없습니다.
자동 추천 장비와 근거 참고용
분류 체계(취약점 종류 CWE → 공격 유형 CAPEC → 공격 기법 ATT&CK) 매핑으로 계산한 후보입니다. 범위가 넓어 관련이 적은 장비가 섞입니다. 해당 장비가 이 공격을 탐지한다고 확인한 것은 아니며, 위의 '살펴볼 장비' 와 단계별 판정에는 쓰지 않습니다.
| 장비 | 방법 | 근거 경로 |
|---|---|---|
| 서버 접근제어 ACCESS | attack | CWE-287 > CAPEC-57 > T1040 > Command Execution |
| 애플리케이션 로그 APPLOG | attack | CWE-287 > CAPEC-94 > T1557 > Application Log Content |
| 엔드포인트 탐지·대응 EDR | attack | CWE-287 > CAPEC-57 > T1040 > Command Execution |
| 방화벽 FW | attack | CWE-287 > CAPEC-94 > T1557 > Network Connection Creation |
| 계정·인증 (AD·LDAP·SSO) IAM | attack | CWE-287 > CAPEC-57 > T1040 > User Account Authentication |
| 침입방지시스템 IPS | attack | CWE-287 > CAPEC-57 > T1040 > Network Traffic Content |
| 네트워크 탐지·대응 / 패킷 분석 NDR | attack | CWE-287 > CAPEC-57 > T1040 > Network Traffic Content |
| 서버 감사 로그 SYSAUDIT | attack | CWE-287 > CAPEC-57 > T1040 > Command Execution |
| VPN VPN | attack | CWE-287 > CAPEC-57 > T1040 > User Account Authentication |
| 웹 방화벽 WAF | attack | CWE-287 > CAPEC-57 > T1040 > Network Traffic Content |
| 웹서버·WAS 로그 WEBLOG | attack | CWE-287 > CAPEC-94 > T1557 > Application Log Content |
취약점 종류 CWE
- 인증 우회 — CWE-287 Improper Authentication
- 역직렬화 — CWE-502 Deserialization of Untrusted Data
- IDOR — CWE-639 Authorization Bypass Through User-Controlled Key
- CWE-807 Reliance on Untrusted Inputs in a Security Decision
영향받는 제품 CPE · 1건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| pterodactyl | panel | 1.0.0 이상 1.6.2 미만 | cpe:2.3:a:pterodactyl:panel:*:*:*:*:*:*:*:* |
참고 링크 8건
- 릴리스 노트 · 제3자 권고 https://github.com/pterodactyl/panel/blob/v1.6.2/CHANGELOG.md#v162
- 패치 · 제3자 권고 https://github.com/pterodactyl/panel/commit/4a84c36009be10dbd83051ac1771662c056e4977
- 릴리스 노트 · 제3자 권고 https://github.com/pterodactyl/panel/releases/tag/v1.6.2
- 제3자 권고 https://github.com/pterodactyl/panel/security/advisories/GHSA-5vfx-8w6m-h3v4
- 릴리스 노트 · 제3자 권고 https://github.com/pterodactyl/panel/blob/v1.6.2/CHANGELOG.md#v162
- 패치 · 제3자 권고 https://github.com/pterodactyl/panel/commit/4a84c36009be10dbd83051ac1771662c056e4977
- 릴리스 노트 · 제3자 권고 https://github.com/pterodactyl/panel/releases/tag/v1.6.2
- 제3자 권고 https://github.com/pterodactyl/panel/security/advisories/GHSA-5vfx-8w6m-h3v4
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
- CVE 취약점 번호
- 공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
- CVSS 위험도 점수
- 취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
- EPSS 악용 가능성
- 앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
- KEV 실제 악용 확인
- 미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- 공격 코드 공개된 PoC
- NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- KB Microsoft 업데이트 번호
- Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.