DogStark / DogStark/petChain-Frontend

[Frontend] Add secure file-name handling for medical uploads

Open
#955 2 comments 0 reactions 0 assignees View on GitHub
Stellar Wave
Dominant language
TypeScript
Stars
3
Forks
158
Avg merge
3d 6h
Merged PRs (30d)
36

Description

## Problem
User-controlled file names can create misleading UI, unsafe download names, or path-like values in logs and storage keys.
## Acceptance criteria
- Display names are escaped and normalized separately from storage identifiers.
- Path traversal, control characters, and excessive lengths are rejected or safely rewritten.
- Downloads use safe Content-Disposition values and preserve the original name only as metadata.
- Tests cover Unicode, bidi controls, traversal, duplicate names, and long names.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the frontend upload and download handling, then identify how display names, storage identifiers, logs, and Content-Disposition values are currently produced. Done means the stated rejection or rewriting rules are implemented and tests cover Unicode, bidi controls, traversal, duplicates, and long names.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.