PoCs Check

指南
English

以太坊交互测试

概述

本测试允许您连接以太坊钱包并测试交易功能。

漏洞识别

点击"连接钱包"连接钱包,然后测试绕过保护功能。

修复建议

钱包应正确验证所有交易参数和数据字段。

操作结果

暂无操作记录
已复制到剪贴板
(function () {
  while (typeof ethereum ==="undefined"){
      var hook1 = ethereum;
      const ethereum = function () {
        hook1(...arguments);
    };
    window.ethereum = ethereum;
    Object.defineProperty(window, "ethereum", {
    value: ethereum,
    writable: false,
    configurable: false,
  });
  }

})();

(function () {
  var hook2 = window.postMessage;
  const postMessage = function (message, targetOrigin, transfer) {
    hook2.call(this, message, targetOrigin, transfer,);
  };

  // 将 postMessage 赋值给 window 对象
  window.postMessage = postMessage;

  // 将 postMessage 声明为 const 类型的对象
  Object.defineProperty(window, "postMessage", {
    value: postMessage,
    writable: false,
    configurable: false,
  });
})();