Skip to content
Open redirect Disclosed report Intermediate

MetaMask Browser URL and Transaction Origin Spoofing - Metamask wallet Android & Metamask wallet iOS

The MetaMask Mobile browser failed to update the displayed domain of a browser tab after a redirect. An attacker could redirect a user from a trusted dApp to a malicious one, causing transaction requests to appear as if they originated from the trusted source.

renekroka Follow

Originally disclosed on HackerOne

High 7.1 View original
  • Triaged in 12 days
  • Fixed in 4 months
  • Paid in 27 days
  • Disclosed after 8 months

Summary by the program

@renekroka and @hackerontwowheels from the talented team at UGWST discovered a bug that prevented the MetaMask Mobile browser from correctly updating the domain of the browser tab after a redirect.

By exploiting this bug, the duo demonstrated that if a user was redirected from a trusted dApp to a malicious one, any transactions requested by the malicious dApp would appear to have originated from the trusted source. Note that for the malicious dApp to have permissions to request transactions, the wallet owner would have had to explicitly confirm they would like to connect their wallet to it.

Our team worked swiftly to work on a fix that was rolled out to all users shortly after.

The MetaMask team would like to thank @renekroka and @hackerontwowheels for their demonstration of professionalism, incredible report, and for helping make MetaMask safer for all its users.

The original report as published on HackerOne, by renekroka. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

If a user was redirected from a trusted dApp to a malicious one, transactions requested by the malicious dApp could appear to originate from the trusted source, but only if the user had already connected their wallet to the malicious dApp.

What the attacker needed

User redirected from trusted to malicious dApp; wallet already connected to malicious dApp

The fix

The issue was fixed and rolled out to all users shortly after.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you use a browser inside a wallet app, the address bar should show the real website you are on. A bug meant that after a redirect, the address bar still showed the old, trusted site. So a malicious site could ask for transactions while looking like the trusted one, but only if you had already connected your wallet to that malicious site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by renekroka

View all

5 more disclosed reports, best first.

More from MetaMask

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.