Skip to content

Fix path traversal in /store endpoint#464

Merged
stefanprodan merged 1 commit intomasterfrom
fix-store-path-traversal
Mar 14, 2026
Merged

Fix path traversal in /store endpoint#464
stefanprodan merged 1 commit intomasterfrom
fix-store-path-traversal

Conversation

@stefanprodan
Copy link
Copy Markdown
Owner

Fix path traversal to prevent spam like CVE-2025-70849

Validate that the hash URL parameter matches the expected SHA1 hex
format (40 lowercase hex characters) before using it in file path
operations.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan changed the title Fix path traversal in /store endpoint Fix path traversal in /store endpoint Mar 14, 2026
@stefanprodan stefanprodan merged commit 06f7cd3 into master Mar 14, 2026
4 checks passed
@stefanprodan stefanprodan deleted the fix-store-path-traversal branch March 14, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant