Skip to content

Fix path traversal issue with storage key#164

Open
sywhang wants to merge 6 commits into
mainfrom
storage-key-traversal-fix
Open

Fix path traversal issue with storage key#164
sywhang wants to merge 6 commits into
mainfrom
storage-key-traversal-fix

Conversation

@sywhang

@sywhang sywhang commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Right now we allow arbitrary paths to be passed as the storage key in all over the place with storage layer. This lets users escape the root path with "../" prefixes which can be a security vulnerability.

Fix this by validating all input sites.

@sywhang sywhang requested review from a team as code owners July 9, 2026 17:32
Comment thread core/storage/storage_test.go Outdated
sywhang added 3 commits July 9, 2026 15:37
Right now we allow arbitrary paths to be passed as the storage
key in all over the place with storage layer. This lets users
escape the root path with "../" prefixes which can be a security
vulnerability.

Fix this by validating all input sites.
@sywhang sywhang force-pushed the storage-key-traversal-fix branch from 9774b7a to 9aed309 Compare July 9, 2026 22:37
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.

2 participants