diff --git a/src/background/index.js b/src/background/index.js index a027264..55bb12c 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -441,6 +441,13 @@ async function handleRpc(method, params, origin) { ? { method, message: params[0], from: params[1] } : { method, message: params[1], from: params[0] }; + if (method === "eth_sign") { + signParams.dangerWarning = + "\u26a0\ufe0f DANGER: This site is requesting to sign a raw hash. " + + "This can be used to sign transactions that drain your funds. " + + "Only proceed if you fully understand what you are signing."; + } + const decision = await requestSignApproval( origin, hostname, diff --git a/src/popup/index.html b/src/popup/index.html index 653093b..07ddb4d 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -1015,6 +1015,12 @@ wants you to sign a message.
+ +