Skip to content

Security Advisory: Prompt Injection Risk via Web Content in Authenticated Browser Sessions #1

Description

@joergmichno

Summary

BrowserMCP gives AI assistants control over the user's real Chrome browser profile, including authenticated sessions (banking, email, cloud services). When the AI reads web page content via MCP, any webpage can contain prompt injection payloads that hijack the AI's behavior — with access to the user's authenticated sessions.

Attack Vector

  1. User navigates to a webpage (or AI navigates on user's behalf)
  2. Page contains hidden prompt injection in DOM/text content (invisible to user, visible to AI)
  3. AI reads page content via MCP → injection enters LLM context
  4. Injection instructs AI to navigate to banking/email sites and perform actions using the user's authenticated sessions

Impact

  • Session Hijacking: AI can access any site where the user is logged in (banking, email, cloud dashboards)
  • Financial Fraud: Injected instructions could initiate bank transfers, purchases, or payment approvals
  • Data Exfiltration: AI could read emails, documents, or credentials from authenticated services
  • Account Takeover: AI could change passwords, add MFA devices, or create API keys on authenticated services

OWASP Classification

  • OWASP LLM Top 10: LLM01 (Prompt Injection)
  • OWASP Agentic Top 10: AG01 (Prompt Injection via Tool Results), AG06 (Excessive Permissions)

Recommendation

  1. Add a prominent Security Warning to the README about the risks of browser automation with authenticated sessions
  2. Implement a domain allowlist/blocklist for navigation
  3. Add confirmation prompts before navigating to sensitive domains (banking, email)
  4. Consider a sandboxed browser profile instead of the user's real profile
  5. Implement content sanitization before passing page text to LLM context

References


Free compliance check: Run your own prompts through our EU AI Act compliance scanner — instant results, no account required: prompttools.co/report

Best,
Joerg Michno
ClawGuard — Open-Source AI Agent Security | 225 patterns, 15 languages

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions