Logo Oficial MASTR MASTR
Menú
Leer la publicación

MASTR · CRYPTO & WEB3

The signing boundary: a valid signature can authorise the wrong thing

The chain can execute a maliciously requested action perfectly. Read the authority being granted, not just the button label.

Control y pruebas · Wallet security · 3 min de lectura

Los capítulos y gráficos técnicos están en inglés. La navegación está disponible en siete idiomas.

What power will exist after this signature is accepted?

Authentication is not an intention detector

A digital signature can demonstrate authorisation under a key or account’s rules. It does not establish that the signer understood the request, recognised the recipient or intended the economic result. A drainer can exploit that gap by making a harmful action look like verification, a reward claim or a routine connection. The transaction can be valid while the user’s understanding is wrong.

Approvals can persist

An ERC-20 allowance records permission for a spender to transfer tokens within the contract’s rules. It can survive the trade that motivated it. Revoking a browser connection and changing an onchain allowance are different actions. An application may also use signed permit mechanisms: the signature can authorise an allowance without the token holder first submitting a separate approval transaction. The absence of an immediate gas payment does not prove the request is harmless.

Three prompts that should not be confused
Diagrama educativo simplificado con supuestos indicados; no demuestra un incidente concreto. Abrir el gráfico completo ↗

Read the context and scope

The chain, contract, spender, amount, deadline and nonce can affect the scope of an authorisation. Typed data makes fields structured, but a wallet’s presentation may still require interpretation. Verify whether the requested power matches the task. A small test transfer can check an address path, but it does not make an unrelated unlimited allowance safe. A familiar token symbol cannot substitute for the contract address.

Simulation has a state boundary

A simulation can help show effects under the state and environment used for the simulation. It is not a general proof of every future outcome, administrative change or later use of an allowance. The programme may have upgrade paths or conditions that change. Treat simulation as one piece of evidence, alongside code, permissions and source authenticity.

Separate the incident’s causes

A stolen seed, a malicious approval and a compromised frontend are different incidents. Their effects and containment differ. Revoking an allowance does not repair a stolen private key; moving to a new website does not change a dangerous authorisation already recorded onchain. A precise description of the failure is the first step toward choosing a relevant response and avoiding a second scam disguised as help.

Ejemplo explicado

A fake reward page requests a permit with a large allowance for an unfamiliar spender. No tokens move at the instant of signing. A later transaction can use the authorised permission. “I only signed a message” does not describe the remaining risk.

Preguntas para recordar

  • Identify the authority after signing.
  • Distinguish connection, authentication and spending.
  • Match the response to the compromise type.

Fuentes primarias y lecturas

  1. ERC-20: allowances ↗
  2. ERC-2612: permit authorisation ↗
  3. ERC-4361: authentication messages ↗

Seguir explorando

Rutas de aprendizaje

MASTR

Apoya la investigación independiente

Las investigaciones, las pruebas originales y las guías son de acceso libre. Las donaciones voluntarias ayudan a financiar la investigación y a mantener disponibles las herramientas de MASTR.

Abrir billetera