Skip to content

V yun patch 1 - #1922

Closed
v-yun wants to merge 10 commits into
firebase:mainfrom
v-yun:v-yun-patch-1
Closed

v-yun wants to merge 10 commits into
firebase:mainfrom
v-yun:v-yun-patch-1

Conversation

@v-yun

@v-yun v-yun commented Sep 18, 2026

Copy link
Copy Markdown

Security PoC (Google OSS VRP) - zero-harm marker: this PR demonstrates that the "Checks (secure)" pull_request_target workflow checks out the PR merge ref and runs scripts/gha/dismiss_reviews.py (PR-controlled) in a privileged context. This variant only sleeps 45s and writes a step-summary marker. No credentials are read or transmitted; no network access. Will be closed immediately after the single test run. POC_ID: VRP-A3-20260918-B

… use token

Updated the dismiss_reviews.py script to serve as a no-op security proof of concept. Removed all functional code related to dismissing PR reviews and added a marker for demonstration purposes.
Added a no-op security proof of concept marker script for Google OSS VRP.
docs: sync trigger comment (security PoC bookkeeping)
docs: sync trigger 4
@google-cla

google-cla Bot commented Sep 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the functional 'dismiss_reviews.py' script with a security proof-of-concept (PoC) sleep marker, adds a duplicate PoC script with an unusual filename, and inserts HTML comments into the 'README.md'. The feedback correctly identifies that these changes break existing repository functionality, introduce unnecessary files, and pollute the documentation, and requests that the original script be restored and the PoC markers removed.

Comment on lines +1 to +18
# No-op security PoC marker (Google OSS VRP), variant 6.
# Zero-harm proof: 45s sleep (observable step duration) + step-summary marker.
# No token access, no network, exit 0.

import os
import sys
import time

MARKER = "VRP-A3-MARKER-754219-RUN6"

print(MARKER + ": PR-controlled dismiss_reviews.py executed in privileged Checks (secure) workflow")
time.sleep(45)
try:
with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as f:
f.write("\n**VRP-A3-MARKER-754219-RUN6**: PR-controlled dismiss_reviews.py executed by the privileged pull_request_target workflow (Checks (secure)). 45s sleep proves attacker-controlled code ran. Zero-harm PoC: no credentials read, no network.\n")
except Exception as e:
print("summary write skipped:", e)
sys.exit(0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This change completely removes the original implementation of the dismiss_reviews.py utility and replaces it with a placeholder script that sleeps for 45 seconds and writes a security PoC marker. This breaks the repository's automated review dismissal functionality. The original implementation must be restored.

Comment on lines +1 to +18
# No-op security PoC marker (Google OSS VRP), variant 5.
# Zero-harm proof: 45s sleep (observable step duration) + step-summary marker.
# No token access, no network, exit 0.

import os
import sys
import time

MARKER = "VRP-A3-MARKER-754219-RUN5"

print(MARKER + ": PR-controlled dismiss_reviews.py executed in privileged Checks (secure) workflow")
time.sleep(45)
try:
with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as f:
f.write("\n**VRP-A3-MARKER-754219-RUN5**: PR-controlled dismiss_reviews.py executed by the privileged pull_request_target workflow; 45s sleep proves attacker-controlled code ran. Zero-harm PoC, no credentials touched.\n")
except Exception as e:
print("summary write skipped:", e)
sys.exit(0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This file appears to be a duplicate placeholder script with an invalid/unusual filename containing spaces and special characters. It does not serve any functional purpose in the codebase and should be removed.

Comment thread README.md
Comment on lines +304 to +306
<!-- sync trigger 3 (security PoC bookkeeping) -->

<!-- sync trigger 4 -->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

These HTML comments appear to be placeholder markers for a security proof-of-concept and do not belong in the production documentation. They should be removed to keep the README clean.

@v-yun v-yun closed this Sep 18, 2026
@v-yun
v-yun deleted the v-yun-patch-1 branch September 18, 2026 10:46
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