Lucene search
K

Alstrasoft E-Friends 4.96 Local File Inclusion / Shell Upload / SQL Injection

🗓️ 28 Oct 2010 00:00:00Reported by Salvatore FrestaType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

AlstraSoft E-Friends 4.96 Multiple Vulnerabilitie

Code
`AlstraSoft E-Friends 4.96 Multiple Remote Vulnerabilities  
  
Name AlstraSoft E-Friends  
Vendor http://www.alstrasoft.com  
Versions Affected 4.96  
  
Author Salvatore Fresta aka Drosophila  
Website http://www.salvatorefresta.net  
Contact salvatorefresta [at] gmail [dot] com  
Date 2010-10-27  
  
X. INDEX  
  
I. ABOUT THE APPLICATION  
II. DESCRIPTION  
III. ANALYSIS  
IV. SAMPLE CODE  
V. FIX  
  
  
I. ABOUT THE APPLICATION  
________________________  
  
AlstraSoft E-Friends is an online social networking  
software that allows you to start your own site just like  
Friendster and MySpace.  
  
Other versions could be vulnerable.  
  
  
II. DESCRIPTION  
_______________  
  
Many parameters are not properly sanitised before being  
used in SQL queries and from the PHP's upload functions.  
  
  
III. ANALYSIS  
_____________  
  
Summary:  
  
A) Arbitrary File Upload  
B) Multiple Local File Inclusion  
C) Multiple SQL Injection  
  
  
A) Arbitrary File Upload  
________________________  
  
An error in the tribe.php script allows upload of files  
with arbitrary extensions to a folder inside the web  
root when "act" is set to "show" and "trb_id" is set  
to a valid group identification value. The uploaded files   
will be copied into the "groups/group_name" directory,  
where group_name can be obtained from the vulnerable  
page. This can be exploited to execute arbitrary  
PHP code by uploading a PHP file.  
  
Example:  
  
If the vulnerable page is the following:  
  
index.php?mode=tribe&act=show&trb_id=103  
  
and the group_name associated to trb_id 103 is "prcd",  
then the malicious file under the array $_FILE['file']  
will be copied into the groups/prcd directory.  
  
  
B) Multiple Local File Inclusion  
________________________________  
  
Input passed to the "lang" parameter in updatePage.php,  
getStartOptions.php is not properly verified before being  
used to include files. This can be exploited to include  
arbitrary files from local resources via directory   
traversal attacks and URL-encoded NULL bytes.  
  
Successful exploitation requires that register_globlas is  
set to On.  
  
It is very probable that other PHP files are vulnerable  
to local file inclusion vulnerability.  
  
  
C) Multiple SQL Injection  
_________________________  
  
The parameters taken from the cookies are not properly  
sanitised before being used in SQL queries. This can be  
exploited to manipulate SQL queries by injecting  
arbitrary SQL code.  
  
Some parameters are taken from the classic $_POST/$_GET  
array and are not properly sanitised before being used in  
other SQL queries.  
  
Successful exploitation requires that magic_quotes_gpc is  
set to Off.  
  
  
IV. SAMPLE CODE  
_______________  
  
B) Multiple Local File Inclusion  
  
http://site/path/chat/updatePage.php?lang=../../../../../../../../../etc/passwd%00  
http://site/path/chat/getStartOptions.php?lang=../../../../../../../../../etc/passwd%00  
  
  
V. FIX  
______  
  
No fix.  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation