Twenty Year Anniversary

WordPress Facebook With Login 1.0 Cross Site Scripting / SQL Injection

WordPress Facebook With Login 1.0 Cross Site Scripting / SQL Injection
Posted Mar 23, 2016
Authored by CrashBandicot

WordPress Facebook With Login plugin version 1.0 suffers from cross site scripting and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection
MD5 | 85534f4639916e912befef98852a512e

WordPress Facebook With Login 1.0 Cross Site Scripting / SQL Injection

Change Mirror Download
# Exploit Title: Wordpress Plugin Facebook With Login - SQL injection & XSS
# Exploit Author: CrashBandicot
# Date: 2016-03-22
# Google Dork : inurl:/wp-content/plugins/facebook-with-login/
# Vendor Homepage: https://github.com/wp-plugins/facebook-with-login
# Tested on: MSWin32


# 11 SQL Injection & 1 Xss


# Vuln Files:
# /wp-content/plugins/facebookwithlogin/updateprofile.php


11. $id = $_POST['id'];
19. $fname = $_POST['fname'];
20. $lname = $_POST['lname'];
21. $email = $_POST['email'];
22. $url = $_POST['url'];
23. $binfo = $_POST['binfo'];
24. $q = "UPDATE $wpdb->users SET `user_url` = '" . $url . "',`user_email`='" . $email . "' WHERE `ID` = '" . $id . "'";
25. mysql_query($q);
26. $q = "UPDATE $wpdb->usermeta SET `meta_value` = '" . $fname . "' WHERE `user_id` = '" . $id . "' AND `meta_key`='first_name'";
27. mysql_query($q);
28. $q = "UPDATE $wpdb->usermeta SET `meta_value` = '" . $lname . "' WHERE `user_id` = '" . $id . "' AND `meta_key`='last_name'";
29. mysql_query($q);
30. $q = "UPDATE $wpdb->usermeta SET `meta_value` = '" . $binfo . "' WHERE `user_id` = '" . $id . "' AND `meta_key`='description'";
31. mysql_query($q);



# /wp-content/plugins/facebookwithlogin/urlupdate.php


12. $id = $_POST['lid'];
13. $lurl = $_POST['loginurl'];
14. $lourl = $_POST['logouturl'];
16. $q = "UPDATE `fb_custom` SET `api`='".$lurl."',`secret` = '".$lourl."' WHERE `id` ='".$id."' LIMIT 1 ;";
17. mysql_query($q);



# /wp-content/plugins/facebookwithlogin/updatefacebookkey.php



3. $q = "UPDATE `fb_custom` SET `appid` = '".$_POST['appid']."',`api` = '".$_POST['api']."',`secret` = '".$_POST['secretkey']."' WHERE `id` = '".$_POST['fid']."' LIMIT 1 ;";
4. $f = mysql_query($q);



# /wp-content/plugins/facebookwithlogin/stylesheets/updatefacebookkey.php


3. echo $q = "UPDATE `".$wpdb->prefix."fb_custom` SET `appid` = '".$_POST['appid']."',`api` = '".$_POST['api']."',`secret` = '".$_POST['secretkey']."' WHERE `id` = '".$_POST['fid']."' LIMIT 1 ;";
4. $f = mysql_query($q);
5. echo mysql_num_rows($f);



# /wp-content/plugins/facebookwithlogin/exist_mem.php



19. $log = $_POST['log'];
20. $delete_id = $_POST['id'];
25. $query_uname = "select * from $wpdb->users where user_login='" . $log . "'";
26. $result_uname = mysql_query($query_uname);
45. $delete = "Delete from $wpdb->users where ID = '" . $delete_id . "'";
46. mysql_query($delete);




# /wp-content/plugins/facebookwithlogin/custom_check.php



12. $id = $_POST['fid'];
13. $v = $_POST['facebook_setting'];
15. $q = "UPDATE `fb_custom` SET `secret` = '" . $v . "' WHERE `id` ='" . $id . "' LIMIT 1 ;";
16. mysql_query mysql_query($q);



# /wp-content/plugins/facebookwithlogin/changepassword.php


16. $id = $_POST['id'];
22. $q = "UPDATE $wpdb->users SET `user_pass` = '" . $pass . "' WHERE `ID` = '" . $id . "'";
23. mysql_query($q);




# Shootz to Magnom & Samim

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

October 2018

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    26 Files
  • 2
    Oct 2nd
    15 Files
  • 3
    Oct 3rd
    15 Files
  • 4
    Oct 4th
    15 Files
  • 5
    Oct 5th
    15 Files
  • 6
    Oct 6th
    2 Files
  • 7
    Oct 7th
    3 Files
  • 8
    Oct 8th
    23 Files
  • 9
    Oct 9th
    16 Files
  • 10
    Oct 10th
    15 Files
  • 11
    Oct 11th
    19 Files
  • 12
    Oct 12th
    16 Files
  • 13
    Oct 13th
    2 Files
  • 14
    Oct 14th
    2 Files
  • 15
    Oct 15th
    15 Files
  • 16
    Oct 16th
    20 Files
  • 17
    Oct 17th
    19 Files
  • 18
    Oct 18th
    21 Files
  • 19
    Oct 19th
    16 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    0 Files
  • 22
    Oct 22nd
    19 Files
  • 23
    Oct 23rd
    24 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close