Skip to content

Validate the Zoom meeting number before opening a join link - #18386

Open
Ch1Hub wants to merge 2 commits into
omacom:quattrofrom
Ch1Hub:fix/zoom-handler-validation
Open

Ch1Hub wants to merge 2 commits into
omacom:quattrofrom
Ch1Hub:fix/zoom-handler-validation

Conversation

@Ch1Hub

@Ch1Hub Ch1Hub commented Nov 10, 2026 •

Copy link
Copy Markdown

What changes

#19965 hardened omarchy-webapp-handler-zoom: it now strips fragments, rejects control characters, matches the scheme case-insensitively, and URI-encodes the passcode while preserving existing percent escapes. Its meeting-number check is ^[A-Za-z0-9_-]+$, which still depends on the locale: under en_US.UTF-8, [A-Za-z0-9] also matches fullwidth and Arabic-Indic digits, so values like confno=12345678 reach the join path.

This PR narrows that check to a meeting number Zoom could have issued:

field accepted when it does not match
confno ^[0123456789]{1,20}$ — ASCII digits, spelled out because [0-9] also matches fullwidth and Arabic-Indic digits under a UTF-8 locale https://app.zoom.us/wc/home
pwd URI-encoded by the handler, existing %XX escapes preserved —

pwd needs no allowlist. The handler encodes anything outside the URI unreserved set, so a passcode cannot add a query parameter; a raw & still ends the extracted value, and %26 stays data. An allowlist would be harmful: Zoom allows *, and passcodes containing ? or # arrive percent-encoded, so a narrow rule drops passcodes that used to work.

The new cases extend the existing protocol-handler section in test/shell.d/webapp-name-test.sh rather than adding a second Zoom test suite.

Fixes #18385.

Files: bin/omarchy-webapp-handler-zoom, test/shell.d/webapp-name-test.sh.

Verification

  • bash test/shell.d/webapp-name-test.sh — passes under the default locale and en_US.UTF-8.
  • With the current quattro handler substituted, the test fails at the fullwidth-digit case under en_US.UTF-8, so it guards this change rather than restating the base handler.
  • bash test/cli — passes.
  • git diff --check — clean.

Screenshots

No visible change: CLI protocol handler only, nothing in the shell UI.

Copilot AI review requested due to automatic review settings November 10, 2026 18:17
@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the previous finding is fixed and no new actionable issues remain.

Summary

omarchy-webapp-handler-zoom accepts only meeting numbers containing 1–20 ASCII digits and otherwise opens Zoom's home page.

  • Zoom links join only with 1–20 ASCII digits.

Reviews (6) · Last reviewed commit: "Extend the existing webapp tests for Zoo..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed and verified on a disposable Omarchy worker. The meeting-number fix is real and holds. I pushed one commit to your branch, 30caff1, which takes the passcode check back out and pins the digit check to ASCII.

Reproduced. On quattro, confno=../../other-path/ opens https://app.zoom.us/wc/join/../../other-path/?pwd=abc and confno=123?injected=1 opens https://app.zoom.us/wc/join/123?injected=1. With this branch both fall back to https://app.zoom.us/wc/home. Your test fails on quattro at "refuses a meeting number with path segments" and passes here. ./test/cli passes on the worker.

What 30caff1 changes, and why:

  • The passcode allowlist dropped passcodes that worked before. Zoom allows * in passcodes, and passcodes containing ? or # arrive percent-encoded. On quattro, pwd=ab*12 and pwd=Ab%3F9%2312 were passed through. With ^[A-Za-z0-9._@-]{1,64}$ both were dropped, so the user had to type the passcode. The check also guarded nothing. The sed extraction already stops at the first raw &, and inside a query value %26 is data, not a separator: ?pwd=abc%26injected=1 is one pwd parameter whose value is abc&injected=1. The passcode is appended unchanged again, as before. The test that required %26 passcodes to be dropped now checks that pwd=ab*%3F9%2312 is kept. That test fails on the previous head of this branch and passes on 30caff1. Zoom's hashed passcodes (pwd=ZWxW…QT09, pwd=…Mo8.1) were kept before and still are.
  • [0-9] matched more than ASCII digits. In a bash regex under en_US.UTF-8, [0-9] also matches Arabic-Indic and fullwidth digits, so confno=123 still reached wc/join/123. The check is now ^[0123456789]{1,20}$, and that link falls back to the home page. This depends on the runner's locale, so there's no test for it; I checked it directly on the worker under LC_ALL=en_US.UTF-8.

Second opinion: Codex Medium and muse-wonder (thinking high), through omabot's reviewer. Codex found the locale problem. Both found the passcode regression and the false premise of the %26 test. Both re-reviewed 30caff1 and found nothing to act on. muse-wonder also claimed that a multi-line confno could pass the anchored check. I tested that and rejected it: an embedded newline fails the match. Where they agreed with my own reading, independence is not guaranteed.

Left for you, @Ch1Hub:

  • The PR description still says passwords are matched against ^[A-Za-z0-9._@-]{1,64}$ and dropped otherwise. The code no longer does that, so please update the description to match the diff. As it stands, a maintainer can't tell which behaviour is intended.
  • Optional: Omarchy's AGENTS.md asks for tests in proportion to the change. Of the original eight assertions, four also pass on quattro: both happy paths, the raw &action=join case, and the non-Zoom protocol. Trimming to the assertions that fail without the fix, plus one happy path, would keep the file to what guards the change.

After that it goes back to the maintainer for a merge decision.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-verified after your merge of quattro (3a2e792). The merge leaves this PR's own change exactly as it was at 30caff1, with no hand-resolved conflicts. Nothing quattro brought in changes how the handler is reached: Zoom.desktop and the omarchy-launch-webapp call are the same.

On a disposable Omarchy worker, against quattro at c3c8acf: confno=../../other-path/ and confno=123?injected=1 still open the wrong page on quattro and fall back to https://app.zoom.us/wc/home here. Passcodes are kept as before, including ab*12 and Ab%3F9%2312. Your test passes 8 of 8 here and fails at "refuses a meeting number with path segments" with the handler from quattro. ./test/cli passes. The code is labelled verified again at this head.

Second opinion: Codex Medium and muse-wonder (thinking high), through omabot's reviewer, re-reviewed this head and found no defect in the code. Both also noted the stale description below. They agreed with my own reading, so independence is not guaranteed.

Still left for you, @Ch1Hub: the PR description still says passcodes are matched against ^[A-Za-z0-9._@-]{1,64}$ and dropped otherwise. The code passes them through unchanged, and your test checks that it does. Please update that table and the sentence after it to match the diff. The rest of the description still holds. After that it goes to the maintainer.

@Ch1Hub

Ch1Hub commented Nov 17, 2026

Copy link
Copy Markdown
Author

Both taken. Thanks for the reproduction and for the locale catch — that one I would not have found.

Description now matches the diff: confno is ^[0123456789]{1,20}$ (ASCII digits, spelled out for the UTF-8 reason you gave), pwd is passed through unchanged, and the "dropped when it does not match" sentence is gone. It was describing the allowlist you removed.

Test trimmed in 908e08e, eight assertions down to five: the three meeting-number values that reach the wrong page on quattro, one happy path, and the passcode case. The no-password happy path, the raw &action=join case and the non-Zoom protocol are gone — they pass on quattro too.

I kept the passcode assertion although it also passes on quattro, so one more than your "plus one happy path". It is the assertion that fails if an allowlist comes back, and an allowlist is what this branch got wrong once already. Happy to cut it to four if you would rather.

Nothing in the handler changed, so the code you verified at 30caff1 is still there; only the test file and the description moved. bash test/shell.d/webapp-handler-zoom-test.sh is 5/5 at 908e08e, and the trimmed file fails on quattro at "refuses a meeting number with path segments".

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-verified at 908e08e. The description now matches the code, and the trimmed test still guards the fix.

On a disposable Omarchy worker, against quattro at c3c8acf: the quattro handler still opens https://app.zoom.us/wc/join/../../other-path/?pwd=abc and https://app.zoom.us/wc/join/123?injected=1. This head opens https://app.zoom.us/wc/home for both, and a fullwidth 123 meeting number under a UTF-8 locale gets the same fallback. Ordinary links and passcodes, including * and percent-encoded ones, open exactly as they do on quattro. test/shell.d/webapp-handler-zoom-test.sh passes all 5 assertions at this head. With the handler put back to the quattro version, it fails at "refuses a meeting number with path segments". ./test/cli is green.

Second opinion: Codex at medium effort reviewed 908e08e and found no defect. It confirmed that the commit touches only the test file, and that the three meeting-number assertions fail against the quattro handler. It agreed with the findings above, which it had already seen, so its agreement is not a fully independent check.

On the passcode assertion: it passes on quattro too, but it is what fails if an allowlist comes back, so keeping it is reasonable. Whether the test should be four assertions or five is the maintainer's call.

One small thing left for you: the title still says Validate the Zoom meeting number and password, but the passcode is now passed through unchanged. Something like Validate the Zoom meeting number before opening a join link would match what the change does.

Beyond that, this is waiting on the maintainer.

@Ch1Hub Ch1Hub changed the title Validate the Zoom meeting number and password before opening a join link Validate the Zoom meeting number before opening a join link Nov 17, 2026
@Ch1Hub

Ch1Hub commented Nov 17, 2026

Copy link
Copy Markdown
Author

Title updated to "Validate the Zoom meeting number before opening a join link" — you're right that the old one still advertised password validation.

That was the last item from my side. On four versus five assertions I've left it at five with the reasoning above; if the maintainer would rather have four, it's dropping the passcode case and nothing else.

Thanks for the reproductions, the UTF-8 catch and the passcode call. The allowlist regression is the one I'd have shipped unnoticed, and it needed a re-review to find.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 24, 2026
@Ch1Hub
Ch1Hub removed the request for review from Copilot November 24, 2026 14:27
@omarchybot

Copy link
Copy Markdown
Collaborator

The reported path/query injection is now fixed on quattro by #19965 (ec17b203f5), merged today. On a disposable Omarchy worker, meeting numbers containing path segments, a query separator, or encoded separators all fall back to https://app.zoom.us/wc/home with both this head and today's quattro handler. Ordinary links still produce the same join URL.

At unchanged head 908e08e, all five Zoom assertions and ./test/cli pass. With today's quattro handler substituted, four assertions pass; only the passcode assertion fails because * becomes %2A. The decoded passcode is unchanged, so that failure does not show a passcode regression. These checks captured the real handler's URL through a stub launcher; no browser was opened.

This PR still adds the narrower rule of 1–20 ASCII digits. Current quattro permits alphanumeric meeting identifiers and longer values while blocking path/query separators. GitHub now reports a merge conflict, and keeping this older handler wholesale would also lose the fragment stripping, control-character rejection, and mixed-case scheme handling added by #19965. No branch changes were pushed. This remains open for the maintainer to decide whether to carry the narrower rule onto the hardened handler.

GPT-6 in Codex (effort setting not exposed) checked the code and worker results. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the same material and found no additional defect requiring a branch fix. They agreed with the findings above; independence is not guaranteed. Their observation about the exact passcode expectation was checked on the worker as described above.

The hardened handler accepts [A-Za-z0-9_-] in confno, which matches fullwidth and Arabic-Indic digits under a UTF-8 locale. Accept only 1-20 ASCII digits, spelled out so the match does not depend on the locale, and add regression tests for the fallback and passcode paths.
@Ch1Hub
Ch1Hub force-pushed the fix/zoom-handler-validation branch from 908e08e to 99c3012 Compare November 24, 2026 15:11
Copilot AI balanced review requested due to automatic review settings November 24, 2026 15:11

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Reuse the existing protocol-handler launcher stub instead of maintaining a second Zoom test suite. Keep all eight cases and run the invalid meeting-number checks in both C and en_US.UTF-8 when available, so the locale-sensitive digit regression is exercised even when the runner uses C.

The base handler already blocks path and query separators; describe the remaining ASCII restriction without claiming otherwise.

Co-Authored-By: GPT-6 (effort not exposed) <noreply@openai.com>
Co-Authored-By: Greptile (model and effort not exposed) <greptile-apps[bot]@users.noreply.github.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 24, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-verified the updated branch against quattro at 3c295f2754. On a disposable Omarchy worker under en_US.UTF-8, the base handler opens join URLs for fullwidth and Arabic-Indic digits, alphabetic values, and a 21-digit number. This head sends them to the existing home-page fallback. Reverting the guard brings those failures back. Numeric meeting links, both Zoom schemes, encoded passcodes, fragment stripping, mixed-case schemes, and control-character rejection retain their behavior.

I pushed f7327c0ded to address the duplicate test setup: all eight cases now extend webapp-name-test.sh using its existing launcher stub. The invalid-number checks explicitly exercise C and en_US.UTF-8 when available. The focused suite and ./test/cli pass on the worker. Restoring the base guard fails the length check; replacing the ASCII list with [0-9] fails the UTF-8 fullwidth-digit check. The launcher was stubbed to capture the real handler's URL; no browser was opened.

GPT-6 in Codex (effort setting not exposed) checked the source and worker results. Opus 5.5 High and muse-wonder via pi, thinking high reviewed this exact commit and found no further defect requiring a fix. They agreed with these findings; independence is not guaranteed. Greptile reviewed this commit at 5/5 with no new findings. GitHub’s Tests and Check translation structure workflows are awaiting maintainer approval, so CI has not completed and the PR remains verified. It waits on that approval and the resulting CI checks.

@Ch1Hub

Ch1Hub commented Nov 30, 2026

Copy link
Copy Markdown
Author

Friendly ping — the branch is still mergeable against current quattro, Greptile is green, and the only outstanding item is approval of the Tests and Check translation structure workflows. Happy to rebase or adjust anything if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-webapp-handler-zoom builds the join URL from an unvalidated meeting number

3 participants