Skip to content

Security: close second-order Telegram parsing boundaries - #1

Merged
Circe22 merged 7 commits into
mainfrom
chatgpt/r2-security-fix
Sep 11, 2026
Merged

Security: close second-order Telegram parsing boundaries#1
Circe22 merged 7 commits into
mainfrom
chatgpt/r2-security-fix

Conversation

@Circe22

@Circe22 Circe22 commented Sep 11, 2026

Copy link
Copy Markdown
Owner

R2 security hardening following review of the Telegram Rich Message trust boundary.

This PR fixes four follow-up issues:

  • scope attach:// / file: semantic checks to actual media/url fields instead of interpreting arbitrary display text;
  • bound JSON-RPC request bytes before json.loads, including string-form blocks before its second parse;
  • make media attachment capability explicit so edit/draft cannot fake media_paths they do not upload;
  • narrow the media-root documentation so it does not claim a race-hard filesystem sandbox against local TOCTOU replacement.

Validation is intentionally two-stage. The first PR CI applies the candidate patch in an ephemeral checkout and runs the full Linux 3.9/3.12/3.13 + Windows suite. Only if all jobs pass does a finalize job materialize the exact patch and permanent regressions onto the branch. Temporary bootstrap files/workflow changes will then be removed atomically, followed by a clean CI run on the final tree before merge.

@Circe22
Circe22 marked this pull request as ready for review September 11, 2026 18:07
@Circe22
Circe22 merged commit 2eac031 into main Sep 11, 2026
4 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