Skip to content
Info disclosure Write-up Beginner

Whatsapp user’s IP disclosure with Link Preview feature

A researcher showed that WhatsApp's link preview feature fetches a URL from the sender's device, so a page that echoes the requester's address in its preview metadata causes the user's IP address and app version to be sent to the attacker's server. The attacker could then log that address, though Facebook declined to fix it.

Rahul Kankrale Follow

Published on medium.com

Cyber Security

Rahul Kankrale, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the link preview fetcher runs on the user's device and sends the user's own network address to the third-party URL, with no proxy or stripping of that information.

Impact

A user's IP address and app version could be disclosed to whoever controls the linked page, which may help infer their location; the vendor judged the trade-off not worth changing and marked it won't fix.

What the attacker needed

Attacker controls a web server; victim receives the crafted link; link preview enabled

How it was found

  1. Create a PHP page on a server that writes the visitor's address into a log file and places it in the preview description metadata.
  2. Save the PHP file on the server.
  3. Send the page's URL in a WhatsApp chat so a link preview is generated.
  4. Observe the captured address appearing in the server log.

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 write-up has not been written yet. The Original tab links to the source.

When you paste a link into a chat app, the app often fetches the page itself to build a small preview card. Because that fetch comes from your phone, the page's owner sees your phone's network address (IP address), which normally reveals roughly where you are. Here the page was built to write that address into a log file on the attacker's server.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Rahul Kankrale

View all

7 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.