feat: safely import PDF and DOCX packages - #8
Open
ZZDR1023 wants to merge 3 commits into
Open
Conversation
Owner
Author
|
主控边界复核退回:PDF 最终输出字符数可被分隔符绕过;加密 DOCX 分类不符契约;TargetMode 空白可绕过 external 拒绝;改名 VBA relationship/content type 被接受;非支持文件可绕过 package entry limit。完整复现和必须补的 Red tests 见 Issue #4 最新评论。请通过新的 Orca regression Dispatch 更新本 PR。 |
Owner
Author
当前 head 的主控复核通过
完整复核和人验收步骤在 Issue #4。代码与自动化验证通过,待人验收;请勿在此前合并。 |
This was referenced Aug 13, 2026
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.
Refs #4
Hardens local package ingestion at the PDF, DOCX, ZIP, filesystem, and OOXML metadata trust boundaries. It enforces exact normalized PDF text limits, classifies CFB/OLE DOCX containers as encrypted, rejects normalized external/escaping relationships and VBA/macro/ActiveX indicators, and bounds all traversed package entries and depth. Validation includes focused and full tests, real LibreOffice-generated PDF/DOCX imports, generated encrypted/macro/adversarial DOCX rejection, build, smoke, and audit.