Skip to content

A giant fix#2

Open
indiamonda wants to merge 128 commits into
indiamonda:masterfrom
JimmyQ-R-G:master
Open

A giant fix#2
indiamonda wants to merge 128 commits into
indiamonda:masterfrom
JimmyQ-R-G:master

Conversation

@indiamonda
Copy link
Copy Markdown
Owner

No description provided.

When in-page JS concatenates a chunk name onto a proxied+shuffled URL
(e.g. Google Boq's kernel_loader doing `BASE + "/" + chunkName`), the
position-dependent cipher would mangle the appended bytes on the way
back through unshuffle, sending a garbled URL upstream and producing
404s. This was the root cause of the chosic.com / gimkit.com chunk
load failures and the "Cannot read properties of undefined (reading
'run')" kernel_loader crashes.

The shuffler now emits a length-prefixed v2 format `_rh1<5hex>:<body>`
so the unshuffler knows exactly where the shuffled portion ends and
preserves any verbatim suffix. Legacy `_rhs<body>` URLs still decode
for backward compatibility with already-shipped pages.

Made-with: Cursor
- Remove `awswaf.com` and `challenge.js` from `CF_SKIP_RE` so Hammerhead's AST rewriter processes them and successfully spoofs `window.location`.
- Update `_fSync` regex to match `cw|` (client+window-sync) cookies so `document.cookie` correctly returns the `aws-waf-token` to the challenge script.
- Add `!s` flag to `src` attributes of `<script>` tags in `_liteProcess` and `rwScript` so dynamically loaded scripts are properly identified and rewritten by the proxy.
- Ensure `Origin` header correctly uses `reqOrigin` for cross-origin requests (e.g., from `chat.deepseek.com` to `awswaf.com`) instead of spoofing the destination domain.

Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
indiamonda and others added 30 commits May 16, 2026 18:38
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The [mounts] section requires a pre-created volume. Removing it
allows deployment to proceed without manual volume setup.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Parameter name was shadowing the outer showToast() function, causing
the toast notification to not appear when saving a script.
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