Repository navigation
fix(security): zip-bejegyzésszám-korlát, szigorú fájljogosultság, allowlist-tesztek - #6
Merged
Merged
Conversation
…t cases - extractZip rejects zips with more than 2000 entries (empty entries bypassed the 200 MB size cap) and writes nothing in that case. - Downloaded letters, meta.json, extracted files and index.jsonl are created 0o600, their directories 0o700, instead of relying on umask. - isAllowedHost tests pin uppercase, trailing dot, IDN homoglyph and punycode, userinfo URL and IP-literal hosts. Fixes #2 Fixes #3 Fixes #4 Co-Authored-By: GLM 5.3 (z.ai) <noreply@z.ai> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Review (claude-opus-5.5@high, round 1, fresh context, head Importantnone Nit
Pre-existing
verdict: clean Pre-existing → #7 |
Owner
Author
|
owner-ok — a tulajdonos kérése 2026-10-23-án, a GLM-kvóta prioritáslistája után, az irányító sessionben:
Folytatási utasítás, 2026-10-23:
|
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.
A diffet a GLM 5.3 írta (z.ai, OpenCode-on át), egy Claude-felügyelő ellenőrizte és fogadta el.
extractZipelutasítja a 2000-nél több bejegyzésű zipet (MAX_ENTRIES). Az ellenőrzés az fflate szűrőjében fut, még írás előtt. Teszt: 2001 bejegyzés hibát ad és üres célmappát hagy; pontosan 2000 mind kibomlik.meta.json, a kibontott fájlok és azindex.jsonl0o600 jogosultsággal jönnek létre (src/extract.ts,src/tarhely/inbox.ts,src/store/index.ts). Új jogosultság-tesztek:test/inbox.test.ts,test/index-store.test.ts(alap 022-es umask mellett a forrásváltozás nélkül elbuknának).isAllowedHost-tesztek: nagybetűs host, záró pont, cirill homoglifa és punycode alakja, userinfo URL, IPv4 és IPv6.Fixes #2
Fixes #3
Fixes #4
Tesztterv: 4 fókuszált tesztfájl, 58 teszt zöld helyben, Biome tiszta. A teljes kapu a PR CI-ja.
Nem kész: a #4 opcionális,
launchBrowser-szintű route-tesztje.Review nitek (nem javítjuk automatikusan):
modecsak új fájlra és mappára hat; régebbi telepítés mappái ésindex.jsonl-je 0o755/0o644 marad (chmodSyncvagy README-jelzés kellene).src/extract.ts: a komment („semmi nem kerül a célmappába”) csak a szűrőkorlátokra igaz, írási hibánál félkész kibontás maradhat.effort: high
round: 1
sha: 092cdaa
verdict: clean
context: fresh
findings: important 0, nit 3, pre-existing 1
cost: unknown
🤖 Generated with Claude Code