Skip to content

Security: Potential reverse tabnabbing via window.open with _blank#1190

Open
tuanaiseo wants to merge 1 commit intomodelcontextprotocol:mainfrom
tuanaiseo:contribai/fix/security/potential-reverse-tabnabbing-via-window-
Open

Security: Potential reverse tabnabbing via window.open with _blank#1190
tuanaiseo wants to merge 1 commit intomodelcontextprotocol:mainfrom
tuanaiseo:contribai/fix/security/potential-reverse-tabnabbing-via-window-

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

External links are opened with window.open(url, "_blank") without noopener/noreferrer. A newly opened page can potentially access window.opener and navigate the original inspector window, enabling phishing-style attacks.

Severity: medium
File: client/src/components/AppRenderer.tsx

Solution

Open untrusted URLs using window.open(url, "_blank", "noopener,noreferrer") and/or explicitly set newWindow.opener = null after opening.

Changes

  • client/src/components/AppRenderer.tsx (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

External links are opened with `window.open(url, "_blank")` without `noopener`/`noreferrer`. A newly opened page can potentially access `window.opener` and navigate the original inspector window, enabling phishing-style attacks.

Affected files: AppRenderer.tsx

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
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