exploit the possibilities

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
SHA-256 | 2f3c9ec821c6469b3456f8e8bc410758420a9186932941f949810b1a0ee536be

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
Login or Register to add favorites

File Archive:

May 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close