botrefund.com
← BotRefund 首页 原型与代理一致性

权限查询函数错误

BotRefund 调用 Function.prototype.toString.call(navigator.permissions.query) 以暴露在原生方法验证时抛出 TypeError 的隐身 Proxy 包装器。

检测内容

When navigator.permissions and navigator.permissions.query exist in the browser environment, the prototype integrity probe invokes Function.prototype.toString.call(navigator.permissions.query) inside a try/catch block.

If calling native function serialization throws a TypeError instead of returning the native source representation, the collector flags the target method as tampered and captures the exception message for analysis.

为何重要

Stealth plugins frequently replace navigator.permissions.query with an ES6 Proxy to disguise headless notification defaults. In V8, calling Function.prototype.toString.call(...) on a Proxy wrapping a native method without properly forwarding internal function slots throws TypeError.

Because certain browser privacy extensions also wrap permissions.query to block permission probing, verified human interaction clears this warning on interactive visits while unattended zero-interaction bot sessions throwing TypeError receive strict escalation.

说明

如何解读结果

01 预期结果

未包装的原生浏览器方法

Calling Function.prototype.toString.call(navigator.permissions.query) succeeds natively, returning "function query() { [native code] }" with no exception.

示例结果 Function.prototype.toString.call: "[native code]" • Error: none — Result: native method intact
02 可能的自动化信号

代理陷阱抛出 TypeError

A stealth Proxy wrapper throws TypeError during native string serialization, exposing prototype tampering on unattended sessions.

示例结果 Function.prototype.toString.call: TypeError thrown — Result: likely stealth proxy wrapper

Forensic significance: Strong prototype-tampering evidence on zero-interaction visits, while human interaction protects legitimate visitors running privacy extensions.