Support archives with known extra fields

Open
#1,723 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend, security

Research direction

Start by tracing the extension archive validation used during publication and find where archives with extra fields are rejected. Review how that validation handles ZIP extra fields and the security concern around parsing differences, especially for UTF filenames. Done means known safe fields such as the timestamp and UID/GID examples can pass while unrecognized extra fields remain rejected; add or run tests covering both cases.

Written by the indexing model from the issue text.

Description

Currently, if an extension archive contains any extra field, publication is rejected.

Extra fields in general are problematic as they enable parsing differential attacks, especially wrt utf filenames.

A common pattern is actually to have UTC modification times as extra fields, some zip tools do that by default:

  The central-directory extra field contains:
  - A subfield with ID 0x5455 (universal time) and 5 data bytes.
    The local extra field has UTC/GMT modification/access times.
  - A subfield with ID 0x7875 (Unix UID/GID (any size)) and 11 data bytes:
    01 04 e8 03 00 00 04 e8 03 00 00.

we should have a whitelist of allowed extra fields and let them pass.

Dominant language
Java
Stars
2.1k
Forks
362
Avg merge
1d 3h
Merged PRs (30d)
44

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-openvsx/openvsx

All issues in eclipse-openvsx/openvsx

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.