/WhatsApp-IP-logger

WhatsApp Privacy bug: Captures IPv4 & IPv6

Primary LanguagePHP

ip-log

WhatsApp Bug

(found and reported by Rahul Kankrale)

  • I personally won't use this information in any ways possible. This is strictly for Educational Purposes only.

HOSTED on 000webhost here

SEE LIVE LOG FILE here

https://crazyzycho.000webhostapp.com/visitors.log

Whatsapp user’s IP disclosure with Link Preview feature

  • Simple php code can disclose Whatsapp users IP and App version and save disclosed information to attackers server.

Step to reproduce:

  1. Clone this repo
$ git clone https://github.com/abhijithvijayan/WhatsApp-IP-logger.git .
  1. Create a new log file 'visitors.log' (Delete the current one)

  2. Upload the php file and log file to the server(within same file dir)

  3. Open WhatsApp and type the php file's URL

eg:

https://kutt.it/Bitcoin-Mining

OR

https://crazyzycho.000webhostapp.com/index.php

and Wait for the Link Preview to generate.

  • You can see IP get captured and at the same time this IP is written over the LOG file on the Server.
  1. OR you can forward the link
https://api.whatsapp.com/send?phone=+91_mobile_no&text=https%3A%2F%2Fkutt.it%2FBitcoin-Mining

and wait for people to click it which then will generate the link preview

Replace +91_mobile_no with your mobile number in the link

SCREENSHOTS

WhatsApp Screenshot of Link Preview gen

Server log for captured IP

iplist

Website on Browser site

  • To avoid such instances, use a trusted VPN service always when visiting unknown websites
  • If the IP is not being written to the log file, Change the file permission of 'visitors.log' to 666.