Conversation
특정 코드가 포함된 작품 실행 시 prototype pollution을 이용해 Stored XSS가
실행될 수 있는 취약점을 다계층으로 차단한다.
- Entry.Scope.filterReservedKeywords: 키로 사용 시 "__proto__"로 강제 변환되는
배열/객체 형태(예: ["__proto__"])까지 차단하도록 보강
- block_KKMOO: kkmoo_set_frame_time / kkmoo_set_frame / kkmoo_set_motor_degree의
bracket-write 싱크에 정수 인덱스 범위 검증 추가 (NaN/범위초과 키 거부)
- 하드웨어 5종(davinci/microbit/armz/asomebot/asomekit): _merge(Entry.hw.sendQueue,
{[blockId]: data})를 직접 대입으로 교체해 lodash merge의 prototype write-through
가젯 제거. blockId가 매번 고유 해시라 동작은 동일.
(asomebot/asomekit는 lodash 미import로 ReferenceError 상태이던 잠재 버그도 수리)
- lodash 의존성 플로어를 ^4.17.21로 상향해 merge/set 내부 가드가 항상 보장되도록 함
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chanlee
approved these changes
Jun 1, 2026
Collaborator
sendQueue[blockId]에 기존에 값이 있을 경우 동작이 달라져서, 이부분은 샘플로 테스트하면서 체크해 보겠습니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
특정 코드가 포함된 작품 실행 시 prototype pollution을 이용해 Stored XSS가 실행될 수 있는 취약점을 다계층으로 차단한다.