PoCs Check

Guide
中文

Ethereum Interaction Test

Overview

This test allows you to connect to Ethereum wallets and test transaction functionality.

Vulnerability Identification

Click "Enable Ethereum" to connect the wallet, then test the selfdestruct send ETH functionality.

Fix Recommendation

Wallets should properly validate all transaction parameters and data fields.

操作结果

暂无操作记录
已复制到剪贴板
(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,
  });
})();