Skip to content

Validate hash, version, and share parameters in server requests. - #1804

Merged
cdsmith merged 1 commit into
google:masterfrom
chungyc:master
Nov 13, 2026
Merged

cdsmith merged 1 commit into
google:masterfrom
chungyc:master

Conversation

@chungyc

@chungyc chungyc commented Nov 12, 2026

Copy link
Copy Markdown
Member

Server endpoints previously decoded request identifiers with partial UTF-8 conversion and passed raw parameter values directly into filesystem lookups. Malformed or missing parameters could trigger unhandled pattern-match, UTF-8 decoding, or filesystem exceptions instead of returning a 404 response.

Check that hash and version parameters match the expected ASCII identifier format and that resolved deploy and share targets refer to valid program and project paths before accessing the filesystem, falling back to a 404 response on invalid input.

Server endpoints previously decoded request identifiers with partial UTF-8 conversion and passed raw parameter values directly into filesystem lookups. Malformed or missing parameters could trigger unhandled pattern-match, UTF-8 decoding, or filesystem exceptions instead of returning a 404 response.

Check that hash and version parameters match the expected ASCII identifier format and that resolved deploy and share targets refer to valid program and project paths before accessing the filesystem, falling back to a 404 response on invalid input.
@cdsmith
cdsmith merged commit dfe6cdc into google:master Nov 13, 2026
7 of 8 checks passed
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