Skip to content

fix: rebound globals, redeclared parameters and namespaces read by unproven keys (R51-RX8) - #437

Open
Sorte1 wants to merge 15 commits into
mainfrom
fix/r51-rx8
Open

Sorte1 wants to merge 15 commits into
mainfrom
fix/r51-rx8

Conversation

@Sorte1

@Sorte1 Sorte1 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Fixes the three CRITICAL findings of review r3-a25rr6 (R51-RX8).

  1. A run with code text, or with a global-object write whose key the analysis only resolves through call-site literals, now treats script globals as possibly rebound: names a judged code text spells, globals named by writes next to code text, and every unwatched global when such a keyed write lands on a target not proven to be something other than the global object. Both lanes.
  2. A parameter redeclared by var is no longer read as the call's argument (bind_params and never_reassigned). Both lanes.
  3. A computed read by an unproven key, off a holder not proven to be something other than the global object, is pinned like a spelled Reflect or Object. Two key proofs keep it narrow: a well-known Symbol.<name> key off an unwritten Symbol, and a key enumerated from the same holder (for…in, Object.keys/entries, and a function bound to such a key with .bind). Holder proofs: string-array function results and built-in constructor prototypes.

Rows from the review's probes are in rename_a25rr/single/rx8-* plus counter-rows that must still refuse.

Remaining safe-lane losses (reason: namespace read by unproven key, mostly reads keyed by a decoder call before decoding):

  • obfuscator-io pair-cff+debug: 9/10 → 0/10
  • obfuscator-versions: 48 wp4-bundle cells 1/1 → 0/1
  • corpus-npm case-008 (debug protection) keeps its decoder
  • the recursive-helper row in dynamic_reach_rows (walk(n.c[i], f)) now refuses by default

Gates: relayer BASELINE byte-equal; game and Krunker samples byte-identical to main in default, --unsafe and --rename smart, instructions at most +1.1%.

…-key rule too; the mutant test asserts which
…code-text runs, and prove string-array results and built-in prototypes non-global
…older, and judge refined global-object writes after the run

This branch was successfully deployed

1 active deployment
preview — fc9b018f Deployed Nov 18, 2026 by Sorte1 via deploy #1258
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