🇰🇷 한글 설명
API Platform Core의 JSON:API 및 HAL 아이템 정규화 과정에서 캐시 키 안전성 검증이 누락되어 사용자 간 속성 정보가 유출되는 취약점입니다. 특정 요청에서 계산된 컴포넌트 구조가 캐시에 저장되어, 권한이 낮은 다른 사용자의 요청 시에도 그대로 재사용될 수 있습니다. 이로 인해 보안 규칙에 의해 숨겨져야 할 속성 구조가 노출될 수 있습니다.
💡 쉬운 설명
로그인한 사용자의 개인정보나 권한 정보를 시스템이 임시로 저장해두는 과정에서 실수가 발생했습니다. 이 실수 때문에 권한이 없는 다른 사용자가 남의 데이터 구조를 엿볼 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions from 2.6.0 prior to 4.1.29, 4.2.26, and 4.3.12, a missing isCacheKeySafe gate in the JSON:API and HAL item normalizers causes a cross-user attribute leak. #[ApiProperty(security: ...)] is evaluated per request to decide whether a property is exposed. The componentsCache arrays in ApiPlatform\JsonApi\Serializer\ItemNormalizer and ApiPlatform\Hal\Serializer\ItemNormalizer are keyed on $context['cache_key'], which is set unconditionally before delegating to the parent normalizer. The component structure (attributes, relationships, links) computed for one request can therefore be reused for a subsequent request whose user has a different set of accessible properties. A user with lower privileges may end up seeing the structure of properties that the security predicate would otherwise have hidden for them. This issue has been fixed in versions 4.1.29, 4.2.26, and 4.3.12.
📍 영향받는 시스템
API Platform Core 2.6.0 이상 버전 중 4.1.29, 4.2.26, 4.3.12 미만 버전
⚔️ 공격 벡터
권한이 낮은 사용자가 API 요청을 보낼 때, 이전 사용자의 캐시된 데이터 구조를 통해 숨겨진 속성 정보를 확인하는 방식
🛡️ 대응 방법
API Platform Core를 수정 버전인 4.1.29, 4.2.26 또는 4.3.12 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 취약한 버전 범위(4.1.29, 4.2.26, 4.3.12 미만)에 해당하는지 확인합니다.
composer show api-platform/core | grep versions