VDB
EN
HIGH

GHSA-hpm8-9qx6-jvwv

Parser Server's streaming file download bypasses afterFind file trigger authorization

상세

### Impact

File downloads via HTTP Range requests bypass the `afterFind(Parse.File)` trigger and its validators on storage adapters that support streaming (e.g. the default GridFS adapter). This allows access to files that should be protected by `afterFind` trigger authorization logic or built-in validators such as `requireUser`.

### Patches

The streaming file download path now executes the `afterFind(Parse.File)` trigger before sending any data. Authentication is resolved from the session token header so that trigger validators can distinguish authenticated from unauthenticated requests.

### Workarounds

Use `beforeFind(Parse.File)` instead of `afterFind(Parse.File)` for file access authorization. The `beforeFind` trigger runs on all download paths including streaming.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / parse-server
최초 영향 버전: 9.0.0 수정 버전: 9.7.1-alpha.1
수정 npm install parse-server@9.7.1-alpha.1
npm / parse-server
최초 영향 버전: 0 수정 버전: 8.6.71
수정 npm install parse-server@8.6.71

참고