Skip to content
Info disclosure Write-up Beginner

Link Previews: How a Simple Feature Can Have Privacy and Security Risks

Link preview features in several chat apps automatically fetch links, causing privacy leaks such as exposing users' IP addresses, downloading excessive data, and running JavaScript on servers. Attackers could exploit these to learn a victim's approximate location or cause resource exhaustion.

Paras Arora Follow

Published on mysk.blog

2020-10-25by Talal Haj Bakry and Tommy Mysk

Talal Haj Bakry (@parasarora06), Tommy Mysk, on mysk.blog

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

Impact

Attackers could learn a victim's approximate location without any interaction, and servers could be tricked into downloading large files or running malicious JavaScript, potentially causing service disruption or further exploitation.

What the attacker needed

Victim uses a vulnerable chat app; attacker can send a link to the victim

The fix

Apps should avoid automatically fetching links on the receiver's device, limit download sizes, and not execute JavaScript from untrusted links; some apps were fixed after reporting.

How it was found

  1. Set up a server that logs incoming requests and their IP addresses.
  2. Send a link to that server via a chat app that uses receiver-side preview generation.
  3. Observe that the app automatically opens the link, revealing the receiver's IP address.

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 send a link in a chat app, the app may automatically open it to show a preview. If the app does this on your phone without asking, the website you linked to can see your IP address, which can reveal your general location. Some apps also download huge files or run code from the link, which can waste data or create security holes.

What is Info disclosure?

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

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.