Dashboardinstitutional-transition-labFrozen ZIP raw member identity

Frozen ZIP raw member identity

Category: gotcha
Confidence: 1.00
ID: 01a084a4-c951-7f1c-9c72-c5effa35367e
Project ID: 1fa3712f-997f-4884-b7ec-8abb79f9e342
Cross-project: No
Recalled in other projects: 0
Source session: 0yGAnpNlrOvBQqxq2
Created: 2026-09-09 00:46:37
Updated: 2026-09-09 05:29:47

Content

Trap: checking ZipInfo.filename uniqueness looks right because zipfile presents decoded names, but NUL truncation, UTF-8 flags, Unicode-path extras, separators, case, and Unicode normalization can map distinct raw identities to one required member. Fix: inspect central-directory raw filename and extra-field bytes; reject NULs, malformed or duplicate path extras, unsafe paths, and normalized collisions before resolving required members, while retaining archive-count and expansion bounds.

Move to: