Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: set more explicit guards for serving bin files#19597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sreya merged 2 commits intomainfromblink/path-injection-sanitization
Aug 28, 2025

Conversation

sreya
Copy link
Collaborator

@sreyasreya commentedAug 27, 2025
edited
Loading

This is done mainly to satisfy CodeQL, the code was already doing a pretty reasonable job.

Add explicit validation to guard against path injection when openingbin files: reject empty, dot, slashes, and invalid fs paths, and ensurename is a single basename. This is defense-in-depth to satisfy CodeQL(go/path-injection) and does not change intended behavior.Add a unit test covering invalid names and a valid case.Co-authored-by: sreya <4856196+sreya@users.noreply.github.com>
@sreyasreya changed the titlesite: sanitize bin metadata path before fs openchore: set more explicit guards for serving bin filesAug 27, 2025
@sreyasreya merged commitbe40b8c intomainAug 28, 2025
33 checks passed
@sreyasreya deleted the blink/path-injection-sanitization branchAugust 28, 2025 02:12
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@aslilacaslilacAwaiting requested review from aslilacaslilac is a code owner

@ParkreinerParkreinerAwaiting requested review from ParkreinerParkreiner is a code owner

Assignees

@sreyasreya

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sreya@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp