botrefund.com
← BotRefund Home BROWSER DETECTION SIGNAL

Playwright ExposeFunction Leak

Inspects global namespace bindings and function string representations for Playwright and Puppeteer driver callback bridges.

What we test

Client detection scans window globals and attached helper functions for serialized RPC callback patterns in toString() output, puppeteer_* global identifiers, '__playwright__binding__', and functions carrying an installed bridge flag (__installed set to true).

Because these artifacts belong exclusively to controller-to-page RPC wiring, detecting any of them immediately marks the session as automated.

Why it matters

Automation APIs such as Playwright exposeFunction or exposeBinding and Puppeteer exposeFunction inject deterministic JavaScript bridges onto window so external Node or Python code can receive DOM event callbacks.

Retail consumer browsers and legitimate third-party widgets never attach __playwright__binding__ or Puppeteer RPC stubs to the global namespace, giving this signal near-zero false positives.

EXPLANATION

Global Bridge Signatures

01 EXPECTED RESPONSE

Global scope free of driver callback bindings

Genuine user sessions contain no exposed RPC bridge functions, __playwright__binding__ entries, or puppeteer_* globals.

Example Browser Output Playwright binding: absent • Puppeteer globals: none — Result: clean global namespace
02 POSSIBLE AUTOMATION SIGNAL

Driver callback bridge serialization found on window

Automation calling exposeFunction or exposeBinding leaves recognizable bridge identifiers or RPC function bodies on the page.

Example Telemetry Result Exposed bridge binding: present • RPC stub matched: yes — Result: Playwright/Puppeteer bridge detected

Forensic significance: Treat exposed Playwright or Puppeteer bindings as decisive standalone proof of browser automation, as ordinary consumer websites and extensions never create these driver callback bridges.