fix(security): KVE-2026-1914/1915/1919 remediation 전건
위임 관리자(부관리자)가 권한·역할·표현식·비밀 콘텐츠 경계를 우회하던 결함군을 계층 대칭성 원칙으로 전건 차단한다. 약한 경로가 정상 응답을 내보내는 것이 유일한 증상이라, 게이트를 생산 지점 한 곳(SSoT)에 두고 같은 데이터를 내보내는 소비 경로 전부가 그 게이트를 경유하도록 맞췄다. - 등급 상한(rank ceiling): 슈퍼관리자 보호·역할/사용자 역할 배정(추가·제거 대칭)·일괄 상태변경·순서변경을 상세 경로와 동일 강도로 재적용. 가드는 DB 쓰기에 선행하여 거부 시 상태 불변. - 레이아웃 표현식: new Function/with 실행을 AST 화이트리스트 평가기로 교체. 비-문자열 computed 키 정규화(normalizeKey)·Object facade(리플렉션 static 제거)·legacy 접근자 차단. 저장측 검증·정적 검사와 3계층 동형. - secret 게이트: 비밀글의 댓글·첨부·문의 독립 경로 재적용, hash 파일서빙 소유권·비밀·발행 상태 검사 통일. - 신뢰 스크립트 호스트: 확장 선언 기반 + same-origin 브라우저 정규화를 런타임·저장측·정적검사 3층 동형화. - 회귀 감지: 단위·Feature·E2E·시나리오 매니페스트 전축 + audit 룰 4종 신설.
This commit is contained in:
1 parent
cd84b63d2b
commit
71abdeaf60
249 files changed
+14354
-1134
No files matched your search
@@ -3,6 +3,9 @@
|
||||
return [
|
||||
// User related exceptions
|
||||
'cannot_delete_super_admin' => 'Super admin cannot be deleted.',
|
||||
'cannot_modify_super_admin' => 'You do not have permission to modify a super admin account or role.',
|
||||
'cannot_grant_unheld_permission' => 'You cannot grant permissions you do not hold or a broader scope than your own.',
|
||||
'cannot_modify_protected_role' => 'You do not have permission to modify a system or extension-owned role.',
|
||||
|
||||
'circular_reference' => 'Layout circular reference detected: :trace',
|
||||
'max_depth_exceeded' => 'Layout nesting depth exceeds maximum allowed depth (:max).',
|
||||
|
||||
@@ -211,6 +211,8 @@ return [
|
||||
|
||||
'invalid_json' => 'Invalid JSON format.',
|
||||
'must_be_array' => 'Layout data must be an array.',
|
||||
'dangerous_expression' => 'The layout contains a disallowed expression: :snippet',
|
||||
'external_resource_url' => 'External resource URLs are not allowed (same-origin paths only): :url',
|
||||
'required_field_missing' => "Required field ':field' is missing.",
|
||||
'version_must_be_string' => 'The version field must be a string.',
|
||||
'layout_name_must_be_string' => 'The layout_name field must be a string.',
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
return [
|
||||
// 사용자 관련 예외
|
||||
'cannot_delete_super_admin' => '슈퍼 관리자는 삭제할 수 없습니다.',
|
||||
'cannot_modify_super_admin' => '슈퍼 관리자 계정 또는 역할은 수정할 권한이 없습니다.',
|
||||
'cannot_grant_unheld_permission' => '본인이 보유하지 않았거나 더 넓은 범위의 권한은 부여할 수 없습니다.',
|
||||
'cannot_modify_protected_role' => '시스템 또는 확장이 소유한 역할은 수정할 권한이 없습니다.',
|
||||
|
||||
'circular_reference' => '레이아웃 순환 참조 감지: :trace',
|
||||
'max_depth_exceeded' => '레이아웃 중첩 깊이가 최대 허용 깊이(:max)를 초과했습니다.',
|
||||
|
||||
@@ -210,6 +210,8 @@ return [
|
||||
|
||||
'invalid_json' => '유효하지 않은 JSON 형식입니다.',
|
||||
'must_be_array' => '레이아웃 데이터는 배열이어야 합니다.',
|
||||
'dangerous_expression' => '허용되지 않는 표현식이 포함되어 있습니다: :snippet',
|
||||
'external_resource_url' => '외부 리소스 URL은 허용되지 않습니다(동일 출처 경로만 허용): :url',
|
||||
'required_field_missing' => "필수 필드 ':field'가 누락되었습니다.",
|
||||
'version_must_be_string' => 'version 필드는 문자열이어야 합니다.',
|
||||
'layout_name_must_be_string' => 'layout_name 필드는 문자열이어야 합니다.',
|
||||
|
||||
Reference in new issue
Block a user